1. Commonly used commands to execute specific use cases :
robot --pythonpath . --test testname tc, tc is the home directory of all use cases;
2. Commonly used commands to execute specific packages:
robot --pythonpath . --suite suitename tc;
3. Name the test report:
robot --pythonpath . --name smoke test tc;
4. Keyword test case:
By default, when RF executes tests, each test case is treated as a keyword test case;
We can specify whether the test case is a keyword test case by adding the tag name after --critical(-c) and --noncritical(-n);
--critical cd specifies that only use cases with the cd label are keyword use cases
--noncritical cd specifies that use cases without the cd label are keyword use cases
--critical cd* --noncritical gz* Specifies that use cases starting with cd but not gz are keyword test cases;
5. Select the test case according to the tag name:
--include foo execute the use case that includes the label foo;
--exlude foo execute use cases that do not contain the foo tag;
--include oneAND "web test" Execute the use case that includes both one and web test tags, pay attention to AND capitalization, if there is a space between the tag names, use quotation marks;
--include oneNOTtwo execute use cases that include the label one but not two;
--include w*w executes the use case with the tag format w*w;
6. Specify the generated report directory: (-d report dir)
robot --pythonpath . -d reportdir tc;
7: Make the generated report not overwritten: -T parameter;