简体   繁体   中英

How to change URL from CI/CI in Gitlab on Automation Testing using Robot Framework

I have 3 env (dev/test/prod) and I want to change the URL from the gitlab-ci.yml so I can choose from CI/CD which env I want to run the tests. Currently I run:

- robot -v BROWSER:Chrome -d results/Chrome test/test.robot

I can't find any info on this. Is it possible?

您可以通过命令行传递 URL,请尝试以下解决方案

- robot -v url:http://your_url -v BROWSER:Chrome -d results/Chrome test/test.robot

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM