Robot Framework Beginner Tutorial 10 – Running Tests from the Command Line

Robot Framework Beginner Tutorial 10 – Running Tests from the Command Line

HomeAutomation Step by StepRobot Framework Beginner Tutorial 10 – Running Tests from the Command Line
Robot Framework Beginner Tutorial 10 – Running Tests from the Command Line
ChannelPublish DateThumbnail & View CountDownload Video
Channel AvatarPublish Date not found Thumbnail
0 Views
Today we will learn:
—————————-
1. Run one specific test from cmd
2. How to run some selected tests from cmd
3. 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 go to the location of the project

Step 2: Run a single test
robot -t TestName SuiteFile

Step 3: Run multiple tests
robot -t Test1 -t Test2 Suite file

Step 4: Run tests with TAGS
Add 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
robotsuiteFile

Step 6: Send results to a folder
robot -t Test5 -d Results TestSuite1.txt

Useful tips
Using regular expressions

how to make tags critical/non-critical
e.g
robot -i S* –critical smoketestsuite1.txt
robot -i S* -c SmoketestSuite1.txt
robot -i S* –noncritical Smoke TestSuite1.txt
robot -i S* -n SmoketestSuite1.txt

Command line options guide
https://github.com/robotframework/robotframework/blob/master/doc/userguide/src/Appendices/CommandLineOptions.rst

_______________________________________________________________
Robot Framework Playlist – https://www.youtube.com/playlist?listPLhW3qG5bs-L9l2I8K8dEhw6HXy-Z-33w3

All playlists – https://www.youtube.com/channel/UCTt7pyY-o0eltq14glaG5dg/playlists

Like, share and subscribe

Thank you,
Raghav

________ ONLINE COURSES TO LEARN ________

Visit – http://automationstepbystep.com/

———— To follow ————
Facebook – https://www.facebook.com/automationstepbystep
Twitter – https://twitter.com/automationsbs
Youtube – http://youtube.com/automationstepbystep

Please take the opportunity to connect and share this video with your friends and family if you find it helpful.