A PHP Error was encountered

Severity: Warning

Message: unlink(/home/anhtest2/public_html/application/cache/Category_model_SelectMainMenu.cache): No such file or directory

Filename: drivers/Cache_file.php

Line Number: 279

Backtrace:

File: /home/anhtest2/public_html/application/core/MY_Model.php
Line: 25
Function: get

File: /home/anhtest2/public_html/application/models/Category_model.php
Line: 53
Function: query_cache

File: /home/anhtest2/public_html/application/core/MY_Controller.php
Line: 106
Function: SelectMainMenu

File: /home/anhtest2/public_html/application/controllers/frontend/Post.php
Line: 9
Function: __construct

File: /home/anhtest2/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: unlink(/home/anhtest2/public_html/application/cache/Config_model_SelectByKeyemail.cache): No such file or directory

Filename: drivers/Cache_file.php

Line Number: 279

Backtrace:

File: /home/anhtest2/public_html/application/core/MY_Model.php
Line: 25
Function: get

File: /home/anhtest2/public_html/application/models/Config_model.php
Line: 42
Function: query_cache

File: /home/anhtest2/public_html/application/core/MY_Controller.php
Line: 121
Function: SelectByKey

File: /home/anhtest2/public_html/application/controllers/frontend/Post.php
Line: 9
Function: __construct

File: /home/anhtest2/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: unlink(/home/anhtest2/public_html/application/cache/Config_model_SelectByKeyicon.cache): No such file or directory

Filename: drivers/Cache_file.php

Line Number: 279

Backtrace:

File: /home/anhtest2/public_html/application/core/MY_Model.php
Line: 25
Function: get

File: /home/anhtest2/public_html/application/models/Config_model.php
Line: 42
Function: query_cache

File: /home/anhtest2/public_html/application/core/MY_Controller.php
Line: 125
Function: SelectByKey

File: /home/anhtest2/public_html/application/controllers/frontend/Post.php
Line: 9
Function: __construct

File: /home/anhtest2/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: unlink(/home/anhtest2/public_html/application/cache/Config_model_SelectByKeyapp_id.cache): No such file or directory

Filename: drivers/Cache_file.php

Line Number: 279

Backtrace:

File: /home/anhtest2/public_html/application/core/MY_Model.php
Line: 25
Function: get

File: /home/anhtest2/public_html/application/models/Config_model.php
Line: 42
Function: query_cache

File: /home/anhtest2/public_html/application/core/MY_Controller.php
Line: 133
Function: SelectByKey

File: /home/anhtest2/public_html/application/controllers/frontend/Post.php
Line: 9
Function: __construct

File: /home/anhtest2/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: unlink(/home/anhtest2/public_html/application/cache/Config_model_SelectByKeymeta_description.cache): No such file or directory

Filename: drivers/Cache_file.php

Line Number: 279

Backtrace:

File: /home/anhtest2/public_html/application/core/MY_Model.php
Line: 25
Function: get

File: /home/anhtest2/public_html/application/models/Config_model.php
Line: 42
Function: query_cache

File: /home/anhtest2/public_html/application/core/MY_Controller.php
Line: 142
Function: SelectByKey

File: /home/anhtest2/public_html/application/controllers/frontend/Post.php
Line: 9
Function: __construct

File: /home/anhtest2/public_html/index.php
Line: 315
Function: require_once

[Cucumber TestNG] Bài 7: Thiết lập mô hình code theo Page Object Model trong Cucumber | Anh Tester 

[Cucumber TestNG] Bài 7: Thiết lập mô hình code theo Page Object Model trong Cucumber

✅ Cách thiết lập mô hình code theo Page Object Model trong Cucumber Framework

Lưu ý:

  • Dùng các class step definitions để thiết kế Test Cases
  • Không có dùng các Annotation như @BeforeMethod từ BaseTest của TestNG thuần
  • Không dùng được Parameters từ TestNG thuần
  • Tạo hàm xử lý bên Page dựa vào các Step Definitions để đặt tên hàm và thiết kế từng hàm cho phù hợp
  • Trong step definitions không dùng các Annotation của TestNG thuần (@BeforeTest, @BeforeClass,...)
  • Anh Tester

    Đường dẫu khó chân vẫn cần bước đi
    Đời dẫu khổ tâm vẫn cần nghĩ thấu