krenevla
13 years agoContributor
[Resolved] use JWebUnit 3.1 in SoapUI 4.5.2
Hello there,
in my project, I have to (time from time) do something on GUI level during my SOA tests. I have used Selenium for that but due to some reliability issues, I have decided to use JWebUnit but here comes the problem.
I have my own Project in Eclipse where I uses following...
problem is, that these classes are in some JARs SoapUI also uses (they are in /lib) but SoapUI has older versions of those and my code do not work with these.
In Groovy step, I am having something like this
--- something like this works in Eclipse but SoapUI uses it's older JARs by default and I am running into ClassNotFound exceptions
Is there a way, how to tell SoapUI to use specific JARs?
I could "replace" older versions in /lib with newer versions but I am afraid I could broke something else in SoapUI.
Thanks!
in my project, I have to (time from time) do something on GUI level during my SOA tests. I have used Selenium for that but due to some reliability issues, I have decided to use JWebUnit but here comes the problem.
I have my own Project in Eclipse where I uses following...
import static net.sourceforge.jwebunit.junit.JWebUnit.assertFormElementPresent;
import static net.sourceforge.jwebunit.junit.JWebUnit.assertFormPresent;
import static net.sourceforge.jwebunit.junit.JWebUnit.beginAt;
import static net.sourceforge.jwebunit.junit.JWebUnit.clickElementByXPath;
import static net.sourceforge.jwebunit.junit.JWebUnit.getElementByXPath;
import static net.sourceforge.jwebunit.junit.JWebUnit.getTestingEngine;
import static net.sourceforge.jwebunit.junit.JWebUnit.gotoPage;
import static net.sourceforge.jwebunit.junit.JWebUnit.selectOptionByValue;
import static net.sourceforge.jwebunit.junit.JWebUnit.setBaseUrl;
import static net.sourceforge.jwebunit.junit.JWebUnit.setTestingEngineKey;
import static net.sourceforge.jwebunit.junit.JWebUnit.setTextField;
import net.sourceforge.jwebunit.api.IElement;
import net.sourceforge.jwebunit.util.TestingEngineRegistry;
problem is, that these classes are in some JARs SoapUI also uses (they are in /lib) but SoapUI has older versions of those and my code do not work with these.
In Groovy step, I am having something like this
import vladanovo.*
def deliverySiteId = context.expand( '${#TestCase#deliverySiteId}' )
def seleniumUser = context.expand( '${#Project#seleniumUser}' )
def seleniumPassword = context.expand( '${#Project#seleniumPassword}' )
def endPointIP = context.expand( '${#Project#endPointIP}' )
final GUIStuff guistuff = new GUIStuff()
guistuff.doLogIn(endPointIP, seleniumUser, seleniumPassword)
guistuff.executeBatchJob("5683", deliverySiteId, seleniumUser)
--- something like this works in Eclipse but SoapUI uses it's older JARs by default and I am running into ClassNotFound exceptions
Is there a way, how to tell SoapUI to use specific JARs?
I could "replace" older versions in /lib with newer versions but I am afraid I could broke something else in SoapUI.
Thanks!