Contributions
Change Mock Service Port
We are building test harness. The harness needs to be able to configure the mock server port number. I would like to do this under program control (i.e. ${#Project#mockPort} ) or some other method. Editing the mock service properties to have a custom variable doesn't appear to be supported/ Ideas? Marty1.3KViews0likes0CommentsRe: Log Output from script not appearing in script log
I expected that anything put to the "Log Output" pane in the script editor/runner would appear in overall "script log". This is normally the case but it seems not only. I want all content that I write using log.info to appear in "script log". Any ideas?1.9KViews0likes0CommentsLog Output from script not appearing in script log
I have a groovy script that produces content in the Log Output pane of the script but it doesnt appear in the script log below. Sounds like a simple error I am making. Any help? def project = testRunner.testCase.testSuite.project def tc= testRunner.testCase.testSuite.project.testSuites['Library'].testCases['RunCommand']; def sslhost = project.getPropertyValue( "authorizationServer" ); def opensslCmd = project.getPropertyValue("opensslCmd"); sslport="443"; tc.setPropertyValue("path","."); tc.setPropertyValue("timeout","2"); tc.setPropertyValue("cmd", "echo Q | " + opensslCmd + " " + "s_client -connect " + sslhost + ":" + sslport); tc.run(new com.eviware.soapui.support.types.StringToObjectMap(), false); String strResult = tc.getPropertyValue("stdout"); //log.info tc.getPropertyValue("cmd"); //log.info strResult; //strResult.eachLine { // line -> log.info(line); //}; if(strResult.contains("Protocol : TLSv1.2")){ log.info("TLS 1.2 implemented"); assert true; } else { testRunner.fail( "TLS 1.2 not implemented" ); }2KViews0likes3CommentsIn test step cloned from Resources, how do you override
My project has a resources folder. When I define a test step, I have to select from that list of resources. I want to override one or more of the properties of that message. When I try, SOAPUI resets them back to their defaults in the resources folder. Is there an appropriate way to do these overrides? Thanks, Marty561Views0likes0Commentspath environment variable running shell script from groovy
When running a Groovy script step, I run a bash script with foo.execute(). In my particular script a curl statement is invoked. However, the curl command is not found. If I run from a terminal window (that is not within SOAPUI) the curl command is found and the script succeeds. If I print out the environment from within groovy, it shows the contents of /etc/environment and not the current path on my platform. What is the proper way to configure SOAPUI so it uses the current environment of the user it is run under? Thanks1.5KViews0likes1CommentRe: [Resolved] Use selenium webdriver across steps
I believe the problem is that the selenium web driver instance lives for the life of a script/test step. So you could not implement the scenario I identified where the browser session is kept alive from step to step. Am I missing something? Marty1.3KViews0likes0CommentsRe: [Resolved] Use selenium webdriver across steps
I am using SOAPUI for all my testing. The web services we are working on have a mix of "gui" interfaces, and, REST APIs. What I would like to do is organize the following test steps into a test suite: 1) a driver start step - this would be a groovy step opening the web driver instance, 2) a logon test step - this would be a groovy step that exercises the logon screen of a gui, 3) a do some stuff set of steps, -- this might be a mix of steps that do groovy and REST API 4) a logoff step, -- this would be a groovy step logging off the server 5) and a driver close step. -- this would be a groovy step closing the web driver The challenge I have is how to create the driver in step 1 and allow the other groovy steps to use it. Currently I have this all in a single groovy script step. However, as you can imagine each of these steps could be a re-usable part that I could use with other similar tests. Now i have to duplicate all the code each time. Thanks for any help. Marty1.3KViews0likes0Comments[Resolved] Use selenium webdriver across steps
I am looking to see if anyone knows how to persist a webdriver session across steps. I am looking to modularize my tests. I would like to have, for example, a driver start script, a logon test script, a do some stuff set of steps, a logoff script, and a driver close script. Any ideas would be appreciated. Thanks, Marty2.6KViews0likes7Comments