Contributions
Re: NoClassDefFoundError
This is the SoapUI error log. I use the QCRest class for Selenium so I know it works fine. It seems to be a Soap Groovy script issue. Tue Dec 01 12:00:12 CST 2015:ERROR:java.lang.NoClassDefFoundError: java/util/Base64 java.lang.NoClassDefFoundError: java/util/Base64 at qcrestapi.QCRest.QCLogin(QCRest.java:139) at qcrestapi.QCRest.QCLogin(QCRest.java:115) at qcrestapi.QCRest$QCLogin.call(Unknown Source) at Script13.run(Script13.groovy:4) at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:92) at com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep.run(WsdlGroovyScriptTestStep.java:141) at com.eviware.soapui.impl.wsdl.panels.teststeps.GroovyScriptStepDesktopPanel$RunAction$1.run(GroovyScriptStepDesktopPanel.java:250) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)8.4KViews0likes6CommentsNoClassDefFoundError
Hello, I'm trying to import and invoke a Java class which will connect to the Quality Center rest api. The import to my class seems fine as I'm able to print a message to a popup window. But I'm getting the NoClassDefFoundError for java/util/Base64 as it trys to encode a string. Java code: byte[] credBytes = (username + ":" + password).getBytes(); JOptionPane.showMessageDialog(null, "CredBytes", "InfoBox: Login", JOptionPane.INFORMATION_MESSAGE); String credEncodedString = "Basic " + Base64.getEncoder().encodeToString(credBytes); The java.util.Base64 is imported as a part of my Class. my soapui groovy script: import qcrestapi.QCRest QCRest qcRest = new QCRest() qcRest.QCLogin("USER","*******")Solved8.4KViews0likes8CommentsHandle errors and move to next iteration
I am trying to determine the best way to handle errors and then move on to the next iteration of a DDT script. For example, if we get an object not found error that makes the current iteration unrecoverable. At this point I would like to close the application(Terminate if need be) and begin a new iteration with the next row of data. I'm looking for process. ie. things to check, methods, etc. Thanks- Chuck11KViews0likes1Commentfunction library
I have looked at the help files concerning calling functions from other projects/units but I'm still not sure how they work. For example I'll have a common "Logon" function that takes Username & Password. How do I build the file that contains this function? How do I call that function from my "Main" script?28KViews0likes6Commentsdynamic object names
I have just started the evaluation of TC yesterday. I'm having problems with a few controls that names with each iteration. Here is an example: Afx2 changes to Afx3. Aliases["pmlaunch"]["frmConversation"]["vsvViewPort_2"]["picPictureBox_2"]["AfxOleControl42"]["Afx2"]["Edit"] Aliases["pmlaunch"]["frmConversation"]["vsvViewPort_2"]["picPictureBox_2"]["AfxOleControl42"]["Afx3"]["Edit"] Is there some way to use a "wildcard" in the object name?13KViews0likes2Comments