Contributions
Bug in Selenium support in soapUI groovy script
Hi , I did so many test, to make this working , and unfortunately was unsuccessful for new soapUI versions. It works fine in older ones (like v 4.0.0) Steps to reproduce defect : 1 - load jars in ext : \bin\ext\geb-ast-0.10.0.jar] to extensions classpath \bin\ext\geb-core-0.10.0.jar] to extensions classpath \bin\ext\geb-spock-0.10.0.jar] to extensions classpath \bin\ext\geb-waiting-0.10.0.jar] to extensions classpath \bin\ext\gson-2.3.1.jar] to extensions classpath \bin\ext\ivy-2.1.0.jar] to extensions classpath \bin\ext\jna-4.1.0.jar] to extensions classpath \bin\ext\platform-3.4.0.jar] to extensions classpath \bin\ext\selenium-api-2.46.0.jar] to extensions classpath \bin\ext\selenium-chrome-driver-2.46.0.jar] to extensions classpath \bin\ext\selenium-firefox-driver-2.46.0.jar] to extensions classpath \bin\ext\selenium-ie-driver-2.46.0.jar] to extensions classpath \bin\ext\selenium-remote-driver-2.46.0.jar] to extensions classpath \bin\ext\selenium-server-2.46.0.jar] to extensions classpath \bin\ext\selenium-support-2.46.0.jar] to extensions classpath \bin\ext\spock-core-1.0-groovy-2.4.jar] to extensions classpath >>>> for testing in v.4.0.0 , please add guava-18.0.jar as well - update lib jars \lib\groovy-all-2.4.3.jar \lib\httpcore-4.4.1.jar \lib\httpclient-4.5.jar \lib\guava-18.0.jar 2- execute groovy script : import geb.Browser def browser = new Browser() browser.drive({ go "http://www.google.com/" }) 3 - result : The browser is launched for a second , and killed with error: org.openqa.selenium.remote.UnreachableBrowserException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. Build info: version: '2.46.0', revision: '61506a4624b13675f24581e453592342b7485d71', time: '...........' System info: host: '........', ip: '........', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_55' Driver info: driver.version: FirefoxDriver error at line: 3 -If you make the same setup in version 4.0.0 the test PASSES. -tested with chromedriver.exe , and same results I cannot make any assumptions as they will be wrong for sure :) Can someone fix this issue :) . I am waiting for this fix for a loooong time, and it would be nice to fix this as we would be able to cover web automations in soapUI. same issue : http://stackoverflow.com/questions/30397043/selenium-unreachablebrowserexception-could-not-start-a-new-session-in-soapui2KViews0likes6CommentsRe: Getting the submit error message from assertions
Hi Marek, Thanks a lot for the response. This seems to work fine as long as the test cases are executed with the GUI. Thank you for this. My curiosity now is to see if there is an additional way to get this info when running test case with the testrunner? Thanks, klusht737Views0likes0CommentsGetting the submit error message from assertions
Hi , Is there any way to reach the submit error message from a groovy script assertion ? I would like to use that information to create checks. for more additional details , I am referring to the message that is posted to error log tab, or under the request window , for example the: " Error getting respose; javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake ". This is a legit test case and would like to parse the message and use it. Thanks. klusht1KViews0likes2Commentssupport.UISupport on right click conetext menu dialog suppor
Hi , I am baste my head for one day to figure out a solution for this. I have build a custom dialog that should pop up on a key prees when having the WsdlTestCase focused, and because I dont make the dialog modal, the frame is not showing up. I have the following : JprogressFrame = UISupport.getMainFrame() ; // define the owner here tried :UISupport.getMainFrame().getFrames()[0] dialog = new JDialog(JprogressFrame); // define the 1 top level frame //dialog.setAlwaysOnTop(true) // does not work... dialogContentPane = dialog.getContentPane();// get container dialogContentPane.setLayout(new BorderLayout(10, 10)); // set layout dialogContentPane.setPreferredSize(new Dimension(300, 45)); dialog.add(progressBar, BorderLayout.NORTH); // add the progress bar component to the content pane ( container ) dialog.pack(); dialog.setLocationRelativeTo(null) UISupport.showDialog(dialog) // this is setting the visibility to true as well (plus center on screen) dialog.setVisible(true); When building this from a groovy step the getMainFrame is not null. and hence is displayed as expected. but when I add this class as a plugin and fier the call from the context menu, the UI main frame is null, so no window is visible until an error is displayed ( which has the modal set to true). ( I don't wish to make it modal , as this is a simple progress bar, so no confirmation is required ) it is true I am novice in swing classes, so I need some help for this, as Google didn't help much. Thanks in advance, klusht1.2KViews0likes0CommentsScript library plus function class
Hi all , I need to make my scripts world wide available , and I need to find a nice way to make the scripts available for anyone in a less effort approach, and also be flexible enough. I created a jar file with a class full of static functions, and after I deploy it in ext folder, I can use those like valx = new functions.F(log).time() ( package functions , class F with constructor F(log4j.Logger log) to be used in the class , and method time() ). But it is ugly, and I need to initialize this class ( functions.F(log) ) under a nicer shorter name, like context.setProperty("f", new functions.F(log)) ( then to be used as context.f.time()). So I nee a place where to put this initialization step, and where soapUI executes this line at sturt-up , or before lunching each the testRunner. I've try ed to put in the project "custom property" something like :addFunctions = ${=context.setProperty("f", new functions.F(log))} but is not executed by default, so is available only if I run this statement inside the testStep. Can you suggest me a second place where I can put statements that are run before each test step... Also , is there a way to put a script precondition IN the testStep. like an "pre assertion"12 years agoPlace ReadyAPI QuestionsReadyAPI Questions6.1KViews0likes3Comments