Goodmornning ,
Well my problem is that, i’m looking for a way to add an author argument to robot line command and to model it to my project. An example of what I want to do :
Robot –u unitary_test --include tag1 tag2 tag3 –exclude tag4 tag7 --file_log=c:\file_log / functionality /subfonctionality
import argparsefrom robot import run_cliparser = argparse.ArgumentParser(prefix_chars="+")parser.add_argument("+f", "++firefox", action="store_true",help="use firefox")args, remaining_args = parser.parse_known_args()# hard-code some arguments:new_args = ["--outputdir", "./results"]# translate custom arguments into something pybot understandsif args.firefox:new_args.extend(["--variable", "BROWSER:firefox"])
else:
new_args.extend(]"--variable", "BROWSER:chrome"])
# run with our new arguments and all the remaining argumentsrun_cli(new_args + remaining_args)
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-users+unsub...@googlegroups.com.
To post to this group, send email to robotframework-users@googlegroups.com.
Visit this group at https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.