Contributions
Re: Load UI Will Not Install/Launch
Is 2.1.2 supposed to address this issue with JavaFX ? I have spent a whole day trying to get LoadUI to work behind a corporate firewall with absolutely no success. It just still tries to download JavaFX and fails. Most (if not all corporate firewalls with proxy use username/password authentication) but LoadUI seems not to support this. I have tried on Windows 7, Windows XP and Linux and all failed. I tried installing it (as per some forum posts) on a windows machine not in the firewall zone and then copying that install to the windows box that was behind the firewall (with JavaFX installed manually) and that did not work either. Seems that this piece of extremely useful software was never designed to work in corporate internets (which is probably where 95% of the usage would have been !). If anyone has managed to get this to work then please let me know how. We have no proxy without authentication so I assume we can never use this tool !. TIA Martin12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews0likes0CommentsRe: Retrieving Response from Test Step using Java API
Ok after some investigation I found the answer which is as simple as expected. The TestStepResult can be cast to an WSDLTestRequestStepResult and then the content can be accessed as follows:- if (thisResult instanceof WsdlTestRequestStepResult) { WsdlTestRequestStepResult wsdlResult = (WsdlTestRequestStepResult ) thisResult; logger.debug("Response Content: " + wsdlResult.getResponseContent(); }1.4KViews0likes0CommentsRetrieving Response from Test Step using Java API
Hi, We are using the java API to invoke WSDL test requests for our web services using the WSDLTestCaseRunner. When the test competes (or fails) we can print out the reason codes or messages but we wish to pick up for the example the web service responses. How can this be achieved ? The code we are using is shown below but we cant seem to figure out how to get the test case step responses so that we can print them to log4j so we can see what is happening when for example the web service call fails or we got soap faults etc, or its successful in which case it would be nice to see the SOAP response ?. project = new WsdlProject(projectName); testSuite = project.getTestSuiteByName(testSuiteName); testCase = testSuite.getTestCaseByName(TEST_CASE_NAME_JUNIT); runner = new WsdlTestCaseRunner(testCase, new StringToObjectMap()); runner.start(false); List results = runner.getResults(); if (results != null && results.size() > 0) { Iterator it = results.iterator(); while (it.hasNext()) { TestStepResult thisResult = (TestStepResult) it.next(); String[] messages = thisResult.getMessages(); if (messages != null && messages.length > 0) { for(String message : messages) { logger.debug("SOAUP UI Message: " + message); } } Throwable error = thisResult.getError(); if (error != null) { Logger.error("Reason Message: " + thisResult.getError()); } } }2.2KViews0likes1Comment