Home  >  Article  >  Backend Development  >  Test automation

Test automation

PHPz
PHPzOriginal
2024-08-10 06:59:03475browse

Automação de testes

Initial Settings

  1. Download Python Python is a programming language. It can be downloaded from https://www.python.org/downloads/.

1.1 Activate the virtual environment
In a directory of your choice type
python -m venv venv
And to activate it
venv/Scrpts/Activate.ps1

  1. Download Robot Framework
    In the terminal type
    pip install robotframework
    And with that we will have the latest version of the Robot Framework

  2. Download Selenium
    In the terminal type
    pip install robotframework-seleniumlibrary
    And with that we will have the latest version of the Selenium library

  3. Download Gecko Driver
    https://github.com/mozilla/geckodriver/releases
    Access the page and download the latest version, once downloaded, take the geckdriver.exe file to the C://Windows

  4. folder
  5. Run an initial test
    I created a file that has the extension .robot

The above is the detailed content of Test automation. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn