Forum Discussion

Slawek_1's avatar
Slawek_1
New Contributor
12 years ago

Problem with LoadUi Agents

Hi,

I have a problem with LoadUI Agents.
My test environment is: one computer for Ghost LoadUI and two computers for agents.(all computers with installed Windows 7 SP1 on VMware )
I have the SoupUi project which uses certificates to sign requests to server. The certificates are stored on the local disk. This project acts perfectly from SoupUI. I use version SoupUI 4.6.0. I prepared easy scenario in LoadUI (ver. 2.1.2). This scenario consists of Fix Rate generator and SoupUI Runner with my Test Suit. I configured agent’s computers and load files with certificates and other external files locally on each computer. Scenario works perfectly, when I launch it from LoadUI (local mode) on each machine, but when I use Agents (ver 2.1.1 or 2.1.2) and distribute mode scenario failed. The errors are in attachment.

I will appreciate for any assistance.

Slawek

5 Replies

  • Slawek_1's avatar
    Slawek_1
    New Contributor
    Hi,

    May I try to describe my problem in a different way.
    May SoupUI project consists right now only one step. This step sends signed request to the server and server should responds. The step takes certificate from local directory c:\soup_data\keys to sign request.
    The stores with certifications are configured on the project level in the WS-Security Configuration (tab), exactly in the Outgoing WS-Security Configuration and the paths are configured in the Keystores and Truststores tabs. This configuration is implemented in the MY_Step in the Aut (tab), Outgoing WSS field.
    I did the steps:
    1. Keys are in the directory c:\soup_data\keys. I run My_Step form SoupUI – it runs well.
    2. I delete keys directory (I do not have keystore). I run My_Step from SoupUI – it failed with error as below. It is expected result.
    3. Keys are in the directory c:\soup_data\keys again. I run My_Step form LoadUI – it runs well.
    4. I delete keys directory (I do not have keystore). I run My_Step from LoadUI – it failed with the same error as below. It is expected result as well.
    5. Keys are in the directory c:\soup_data\keys again. I run My_Step, on the same machine using LoadUI Agent (distributed mode), which is started from Ghost remote computer – it failed exactly with the SAME ERROR as below. THIS IS MY PROBLEM.
    6. I delete keys directory (I do not have keystore). I run My_Step using LoadUI Agent– it failed with the same error as below.

    ---> My conclusion is Agent cannot find the c:\soup_data\keys path with the certifications. WHY ? Where I should search solution?

    2013-12-05 10:11:56,897 ERROR [errorlog] java.lang.NullPointerException
    java.lang.NullPointerException
    at org.apache.ws.security.message.WSSecSignature.getSigningCerts(WSSecSignature.java:760)
    at org.apache.ws.security.message.WSSecSignature.prepare(WSSecSignature.java:149)
    at org.apache.ws.security.message.WSSecSignature.build(WSSecSignature.java:337)
    at com.eviware.soapui.impl.wsdl.support.wss.entries.SignatureEntry.process(SignatureEntry.java:194)
    at com.eviware.soapui.impl.wsdl.support.wss.OutgoingWss.processOutgoing(OutgoingWss.java:192)
    at com.eviware.soapui.impl.wsdl.submit.filters.WssRequestFilter.filterWsdlRequest(WssRequestFilter.java:58)
    at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.filterAbstractHttpRequest(AbstractRequestFilter.java:37)
    at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.filterRequest(AbstractRequestFilter.java:31)
    at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:185)
    at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
    at com.eviware.soapui.impl.wsdl.WsdlSubmit.submitRequest(WsdlSubmit.java:76)
    at com.eviware.soapui.impl.wsdl.WsdlRequest.submit(WsdlRequest.java:238)
    at com.eviware.soapui.impl.wsdl.teststeps.WsdlTestRequestStep.run(WsdlTestRequestStep.java:417)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:238)
    at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:48)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:147)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:42)
    at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:135)
    at com.eviware.loadui.components.soapui.SoapUISamplerComponent$SoapUITestCaseRunner.run(SoapUISamplerComponent.java:735)
    at com.eviware.loadui.components.soapui.SoapUISamplerComponent.sample(SoapUISamplerComponent.java:577)
    at com.eviware.loadui.impl.component.categories.RunnerBase.doSample(RunnerBase.java:507)
    at com.eviware.loadui.impl.component.categories.RunnerBase.access$700(RunnerBase.java:68)
    at com.eviware.loadui.impl.component.categories.RunnerBase$Worker.run(RunnerBase.java:774)
    at com.eviware.loadui.util.dispatch.CustomThreadPoolExecutor$Worker.run(CustomThreadPoolExecutor.java:198)
    at java.lang.Thread.run(Unknown Source)

    Thanks in advance for any suggestion.
    Slawek
    • PeterKlim's avatar
      PeterKlim
      Contributor

      I didn't at first realize how old this thread was.

       

      Are you still having this issue?  What was your solution?

       

      I'm nost sure if this is what the scenario is:

      You have agents and test data installed on the same PC.  You have multiple PCs set up this way.  Then you have 1 PC with LoadUI Pro (LUIP).   You are trying to get LUIP to run a test onl multpile agent PCs, each PC only using the test data that is on that PC?

       

      Support told me that it does not work that way.  Instead, each PC will ONLY use the data that is in the LUIP PC.

  • The keystore is not replicated automatically to agents. You need to copy it into your agents manually.
  • Slawek_1's avatar
    Slawek_1
    New Contributor
    Thanks for replay,
    I wrote I have the keystors in the same directory on all comps with agents and ghost. All boxes are configured the same way, and on each of them LoadUi can run the test with files from local keystor but agent cannot.

    Regards
    Slawek
  • AWesthoff's avatar
    AWesthoff
    New Contributor
    Hi,
    Do anyone have the solutions for this problem? Please share the solution.
    We are exactly facing the same issue. Soap request is not signed when running through LoadUI Agents.

    Thanks for your time.