Showing posts with label Test automation tools. Show all posts
Showing posts with label Test automation tools. Show all posts

Wednesday, February 5, 2020

Robot framework executing tests in command prompt

set root=C:\Project\pradeep\qa_automation_tfs_working
pushd %root%
robot -t "TestCase_P2_PCS_Voyage_Creation" -d .//reportfolder -s vesseloperation -o output.xml .
pause



Run Full Suite:

set root=C:\Project\qa_automation_tfs
pushd %root%
robot -i f -i fr -d .//report_temp1 -s suiteName1 -o output.xml .
robot -i f -i wh -d .//report_temp2 -s suiteName2 -o output.xml .
pause


Run Full Suite:

set root=C:\Project\testfolder
pushd %root%
robot --include f -d .//ReportFolder1 -s xyzTestSuiteName-o Output.xml TestSuite & CD Report & rebot --name [All-Modules] *.xml & CD ..
pause


Multiple Tags
set root=C:\Project\testfolder
pushd %root%
robot -i tagname1 -i tagname2 -d .//report_temp1 -s margo_fr -o output.xml .
robot -i tagname1 -i tagname2 -d .//report_temp2 -s margo_wh -o output.xml .
pause


Tag Name:
set root=C:\TestProjectfolder
pushd %root%
robot -i T2211111 -d .//report_temp -s suiteName -o output.xml .
pause


Test Case Name:
set root=C:\TestProjectfolder
pushd %root%
robot -t "testname" -d .//reportfolder -s suiteName -o output.xml .
pause


Import Python Class in Robot Class or File
https://stackoverflow.com/questions/27603242/how-to-import-and-use-user-defined-classes-in-robot-framework-with-python



https://www.blazemeter.com/blog/robot-framework-the-ultimate-guide-to-running-your-tests/

https://www.google.com/search?q=run+robot+framework+from+cmd&rlz=1C1GCEA_enIN832IN832&oq=run+robot+fr&aqs=chrome.3.0j69i57j0l5j69i60.9209j0j4&sourceid=chrome&ie=UTF-8#kpvalbx=_soJJXvm0EoqmUMS8nPgC19


open command and goto the location of project

run single test
robot -t testname suitefile

run multiple tests
robot -t test1 -t test2 suitefile

run tests with tags
robot --include tagname suitefile
robot -i tagName suitefile

run all tests in a test suitefile
robot suitefile.robot



JMeter Simple Controller

  Simple Controller is just a  container  for user request.