[英]How to run a PyCharm project while passing environment variables from command line
I have an automation test framework built using Jython intertpreter in Pycharm. 我有一个在Pycharm中使用Jython解释器构建的自动化测试框架。 I'm using Sikuli and Selenium in this framework and I want to eventually start running this project from Jenkins.
我在此框架中使用Sikuli和Selenium,并且我最终希望从Jenkins开始运行该项目。 In order to do that, I want to get this running via command line first.
为了做到这一点,我想首先通过命令行运行它。 But when I try running this via command line, I get this error.
但是,当我尝试通过命令行运行此命令时,出现此错误。 Does anyone know how to pass in environment variables via command line?
有谁知道如何通过命令行传递环境变量?
Debug config screenshot & running via command line 调试配置屏幕截图并通过命令行运行
现在,我已经找到了一种方法,可以在Windows中设置这些环境变量,然后通过C:\\jython2.7.0\\bin\\jython.exe -Dpython.path=C:\\uiautomation C:/uiautomation/TestRunner/test_runner.py
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.