emwillia
12 years agoOccasional Contributor
SoapUI Runner Question
How does this work? It appears that load UI has encapsulated the functionality of SoapUI within it in order to execute the test steps. However, there is clearly a disconnect between those two systems as I am able to execute a Selenium groovy script in SoapUI and not in LoadUI.
I have done the following steps:
1) Ensured that all external dependencies are included in the extension folder of LoadUI
2) Executed the script in SoapUI and verified the behavior.
3) Imported the same script into LoadUI using the SoapUI runner.
This step failed due to a class not found exception on org.apache.commons.httpclient.protocol.ProtocolSocketFactory. This class is included in the external dependency library and I have looked through the bin to ensure that there isn't a duplicate class.
4) Executed the groovy script using the script runner.
This step failed miserably, every execution of any script I've ever done gives me a "cannot bind on null object" exception.
5) Executed the SoapUI Script using IEDriver/FirefoxDriver implementations of webdriver
These worked, however I need it to be HtmlUnit so I can do it without GUI soaking up CPU/RAM usage.
There is clearly something with the classpath where the jar is not being loaded into the same classpath that the soapUI runner is using. Has anybody worked with HtmlUnit in LoadUI? Figured out classpathing issues similar to this? Any help would be greatly appreciated!
I have done the following steps:
1) Ensured that all external dependencies are included in the extension folder of LoadUI
2) Executed the script in SoapUI and verified the behavior.
3) Imported the same script into LoadUI using the SoapUI runner.
This step failed due to a class not found exception on org.apache.commons.httpclient.protocol.ProtocolSocketFactory. This class is included in the external dependency library and I have looked through the bin to ensure that there isn't a duplicate class.
4) Executed the groovy script using the script runner.
This step failed miserably, every execution of any script I've ever done gives me a "cannot bind on null object" exception.
5) Executed the SoapUI Script using IEDriver/FirefoxDriver implementations of webdriver
These worked, however I need it to be HtmlUnit so I can do it without GUI soaking up CPU/RAM usage.
There is clearly something with the classpath where the jar is not being loaded into the same classpath that the soapUI runner is using. Has anybody worked with HtmlUnit in LoadUI? Figured out classpathing issues similar to this? Any help would be greatly appreciated!