filmov
tv
Robot Framework Beginner Tutorial 10 - How to run Tests from Command Line

Показать описание
Today we will learn:
------------------------------
1. How to run one specific Test from cmd
2. How to run few selected Tests from cmd
3. How to run tests with TAGS from cmd
4. How to run all Tests in a Suite from cmd
5. How to send RESULTS to a specific folder
Useful TIPS
______________________________________________________________
Step 1 : Open cmd and goto the location of project
Step 2 : Run single test
robot -t TestName SuiteFile
Step 3 : Run multiple tests
robot -t Test1 -t Test2 SuiteFile
Step 4 : Run Tests with TAGS
Include TAGS
robot --include tagName SuiteFile
robot -i tagName SuiteFile
robot -i tagName -i tagName SuiteFile
robot -i S* SuiteFile
Exclude TAGS
robot --exclude tagName SuiteFile
robot -e tagName SuiteFile
robot -e tagName -e tagName SuiteFile
robot -e S* SuiteFile
Step 5 : Run all tests in a test suite
robot suiteFile
Step 6 : Send results to a folder
Useful TIPS
Using regular expressions
how to make tags critical / non-critical
e.g.
Command line options guide
______________________________________________________________
Like, Share and Subscribe
Thanks,
Raghav
________ ONLINE COURSES TO LEARN ________
------------ Follow ------------
------------------------------
1. How to run one specific Test from cmd
2. How to run few selected Tests from cmd
3. How to run tests with TAGS from cmd
4. How to run all Tests in a Suite from cmd
5. How to send RESULTS to a specific folder
Useful TIPS
______________________________________________________________
Step 1 : Open cmd and goto the location of project
Step 2 : Run single test
robot -t TestName SuiteFile
Step 3 : Run multiple tests
robot -t Test1 -t Test2 SuiteFile
Step 4 : Run Tests with TAGS
Include TAGS
robot --include tagName SuiteFile
robot -i tagName SuiteFile
robot -i tagName -i tagName SuiteFile
robot -i S* SuiteFile
Exclude TAGS
robot --exclude tagName SuiteFile
robot -e tagName SuiteFile
robot -e tagName -e tagName SuiteFile
robot -e S* SuiteFile
Step 5 : Run all tests in a test suite
robot suiteFile
Step 6 : Send results to a folder
Useful TIPS
Using regular expressions
how to make tags critical / non-critical
e.g.
Command line options guide
______________________________________________________________
Like, Share and Subscribe
Thanks,
Raghav
________ ONLINE COURSES TO LEARN ________
------------ Follow ------------
Комментарии