Patri
13 years agoNew Contributor
Problem with LoadUi, Custom components and Agents.
Hi,
I've developed several custom components in my project. These components receive parameters by command lines and so i'm executing loadUI. I want to run the test throw an agent.My problem is when the agent is executing the testcase, it never get the command line parameters of my custom components.
Following, the properties definition in my groovy component :
def consoleUser = System.getProperty("userAgent")
def consoleProxyIP = System.getProperty("proxyIp")
def consoleProxyPort = System.getProperty("proxyPort")
def consoleUrlBase = System.getProperty("urlBase")
def consoleRandomUrl = System.getProperty("customRandomUrl")
def consoleParametrizedUrl = System.getProperty("parametrizedUrl")
def consoleOutputBody = System.getProperty("outputBody")
I run the text tiping:
sh loadUI-cmd.sh -p /home/tests/rb-loadtests/loadTest.xml -t VUS-AGENT -a 10.1.1.2 -r /home/tests/reports/ -S -F PDF -DuserAgent="Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10" -DcustomRandomUrl -DoutputBody -DproxyIp="10.1.1.17" -DproxyPort="3128" -DurlBase="http://o.testsite.com/index.php" -L 0:10:5
If i run the test locally (without agents), it works properly, but if i run in a agent with the command above, i clearly see how agent doesn't take the command line parameter.
I guess this is a bug but if it doesn't,please let me know how could i make it works.
Thanks in advance.
I've developed several custom components in my project. These components receive parameters by command lines and so i'm executing loadUI. I want to run the test throw an agent.My problem is when the agent is executing the testcase, it never get the command line parameters of my custom components.
Following, the properties definition in my groovy component :
def consoleUser = System.getProperty("userAgent")
def consoleProxyIP = System.getProperty("proxyIp")
def consoleProxyPort = System.getProperty("proxyPort")
def consoleUrlBase = System.getProperty("urlBase")
def consoleRandomUrl = System.getProperty("customRandomUrl")
def consoleParametrizedUrl = System.getProperty("parametrizedUrl")
def consoleOutputBody = System.getProperty("outputBody")
I run the text tiping:
sh loadUI-cmd.sh -p /home/tests/rb-loadtests/loadTest.xml -t VUS-AGENT -a 10.1.1.2 -r /home/tests/reports/ -S -F PDF -DuserAgent="Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.10" -DcustomRandomUrl -DoutputBody -DproxyIp="10.1.1.17" -DproxyPort="3128" -DurlBase="http://o.testsite.com/index.php" -L 0:10:5
If i run the test locally (without agents), it works properly, but if i run in a agent with the command above, i clearly see how agent doesn't take the command line parameter.
I guess this is a bug but if it doesn't,please let me know how could i make it works.
Thanks in advance.