Severity: Warning
Message: unlink(/home/anhtest2/public_html/application/cache/Category_model_SelectByParentArrayId_Blog.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: 67
Function: query_cache
File: /home/anhtest2/public_html/application/core/MY_Controller.php
Line: 113
Function: SelectByParentArrayId_Blog
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
Severity: Warning
Message: unlink(/home/anhtest2/public_html/application/cache/Config_model_SelectByKeyfacebook.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: 126
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
Severity: Warning
Message: file_get_contents(/home/anhtest2/public_html/application/cache/Config_model_SelectByKeyzalo.cache): failed to open stream: No such file or directory
Filename: drivers/Cache_file.php
Line Number: 275
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: 128
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
Severity: Notice
Message: Trying to access array offset on value of type bool
Filename: drivers/Cache_file.php
Line Number: 277
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: 128
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
Severity: Warning
Message: unlink(/home/anhtest2/public_html/application/cache/Config_model_SelectByKeyfanpage_facebook.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: 131
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
Severity: Warning
Message: unlink(/home/anhtest2/public_html/application/cache/Config_model_SelectByKeygoogle_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: 134
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
Severity: Warning
Message: unlink(/home/anhtest2/public_html/application/cache/Config_model_SelectByKeymeta_title.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: 141
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
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
Severity: Warning
Message: unlink(/home/anhtest2/public_html/application/cache/Config_model_SelectByKeymeta_image.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: 144
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
Selenium là một bộ kiểm thử tự động (mã nguồn mở) miễn phí cho các ứng dụng web trên các trình duyệt và nền tảng khác nhau. Selenium chỉ tập trung vào việc tự động hóa các ứng dụng dựa trên web. Việc kiểm thử được sử dụng bằng công cụ Selenium thường được gọi là Automation Selenium Testing. Selenium không chỉ là một công cụ duy nhất mà nó là một bộ phần mềm, mỗi bộ nó cung cấp các nhu cầu thử nghiệm khác nhau của một tổ chức. Nó có 4 thành phần:
![[Selenium Java] Bài 3: Giới thiệu Selenium Webdriver | Anh Tester](/uploads/lesson/selenium_java/selenium-suite-2022.jpg)
Hiện tại, Selenium RC và Selenium WebDriver được sáp nhập vào một khuôn khổ duy nhất để tạo thành Selenium 2 (Selenium 1 đề cập đến Selenium RC).
Từ Selenium 2 phát triển dần lên Selenium 3 và Selenium 4 là bản mới nhất hiện nay. Tính tới thời điểm hiện tại là 4.4.0 (27/09/2022)
Bản Selenium 3 cuối cùng là 3.141.59 . Chúng ta học thì học bản Selenium 4 mới nhất.
Selenium Integrated Development Environment (IDE) là framework đơn giản nhất trong bộ Selenium và nó là phần dễ nhất để học. Nó là một Browser plugin mà bạn có thể cài đặt dễ dàng như các plugin khác. Tuy nhiên, vì sự đơn giản của nó, nên chỉ sử dụng công cụ IDE làm công cụ tạo mẫu. Nếu bạn muốn các trường hợp kiểm thử nâng cao thì bạn có thể sử dụng Katalon Studio thay thế tool hoặc là Selenium WebDriver kết hợp code với ngôn ngữ lập trình.
Ưu điểm:
Nhược điểm:
Selenium RC là framework kiểm thử hàng đầu của dự án Selenium trong một thời gian dài. Đây là công cụ kiểm tra web tự động đầu tiên cho phép người dung sử dụng ngôn ngữ lập trình mà họ thích. Kể từ phiên bản 2.25.0, RC có thể hỗ trợ các ngôn ngữ lập trình sau:
Ưu điểm:
Nhược điểm:
WebDriver chứng minh rằng nó tốt hơn cả Selenium IDE và Selenium RC ở nhiều khía cạnh. Nó thực hiện một cách tiếp cận hiện đại và ổn định hơn trong việc tự động hóa các hành động của trình duyệt. WebDriver, không giống như Selenium RC, không dựa vào JavaScript cho tự động hóa. Nó kiểm soát trình duyệt bằng cách giao tiếp trực tiếp với nó. Các ngôn ngữ được hỗ trợ giống như ngôn ngữ trong Selenium RC.
Ưu điểm:
Nhược điểm:
Selenium Grid là một công cụ được sử dụng cùng với Selenium RC để chạy thử nghiệm song song trên các máy khác nhau và các trình duyệt khác nhau cùng một lúc. Thực thi song song có nghĩa là chạy nhiều thử nghiệm cùng một lúc.
Đặc điểm:
Đây là cách ta xây dựng một Selenium hub để khởi chạy nhiều hơn các test thông qua các máy cũng như trình duyệt khác nhau trong cùng một thời điểm. Selenium Grid cho phép bạn có thể chạy các trường hợp kiểm tra song song có nghĩa là các trường hợp kiểm tra khác nhau sẽ có thể được chạy tại một thời điểm ở trên các máy từ xa khác nhau.
Điều này sẽ mang lại nhiều lợi thế như:
![[Selenium Java] Bài 3: Giới thiệu Selenium Webdriver | Anh Tester](/uploads/lesson/selenium_java/selenium-grid.jpg)
Do sự khác biệt về kiến trúc, Selenium IDE, Selenium RC và WebDriver hỗ trợ các bộ trình duyệt và môi trường hoạt động khác nhau.![[Selenium Java] Bài 3: Giới thiệu Selenium Webdriver | Anh Tester](https://images.viblo.asia/0e1aa47c-ca4d-4d67-974b-707c562939aa.png)
![[Selenium Java] Bài 3: Giới thiệu Selenium Webdriver | Anh Tester](https://images.viblo.asia/11ab86b2-671e-47c2-b32a-c0fb7eef848e.png)
Toàn bộ Selenium Tool Suite bao gồm bốn thành phần:
Kể từ khoá học tháng 04/2022 thì An đã dạy Selenium 4 và dùng IntelliJ IDEA hoàn toàn.
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