Skip to content

ptttrang315/MarsAir-Automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ensure Python is installed in your system (Tested in Python version 3.12)

Install Poetry

pip install poetry

Install dependencies needed for the project

poetry install

Build the test library

poetry build

Activate the virtual environment in project

.venv/Scripts/activate

Install the test library to the virtual environment

pip install --force-reinstall --find-links=dist trangptt_test_library

Install Playwright dependencies

rfbrowser init

Command to execute all test cases with tag "MarsAir"

robot --include MarsAir --outputdir reports --variable configuration_base:tests/resources/configurations/global.yaml ./

We just change the tag after "--include" to run test cases in each user story.For User Story 1, we can use the following command.

robot --include US1 --outputdir reports --variable configuration_base:tests/resources/configurations/global.yaml ./

To run the same test with different browser, you can use the following command with input --variable BROWSER_NAME:chromium or --variable BROWSER_NAME:firefox

robot --include MarsAir --outputdir reports --variable configuration_base:tests/resources/configurations/global.yaml --variable BROWSER_NAME:firefox ./

Moreover, I also add more tags for some specific test, you can use them to run test img.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published