Can ReadyAPI (SoapUI Pro) annotate the Project, Test Suite, Test Case, Step ?
I currently use SoapUI Pro in ReadyAPI 2.8.2 to run many tests against evolving API services. I would like to document changes to various parts of the tests but cannot seem to find a built in annotation function to record changes against the Project, the Test Suite, the Test Case, Steps, Assertions etc. I did not want to pollute the SQL, the Requests etc. with comments but was looking for a consistent annotation function. That allowed for broad explanation at the higher levels and more detailed explanations at the lower levels. At present I use long descriptive Step names, SQL comments, comments in the Requests etc., but this does have it's limitations and is not consistent. A notation feature added to all stages of the testing process would be very useful. Maybe with a date/time stamp. Maybe in the form of a chronological log. Does anyone have any suggestions on how to annotate tests? Thank you.Solved1KViews1like1CommentRun two copies of ReadyAPI (SoapUI Pro) simultaneously
Hello I am trying to run two copies of ReadyAPI (SoapUI Pro) simultaneously I am trying to run them side-by-side so that I can compare tests, requests and responses without having to perform a lengthy process of switching Workspaces and rerunning the tests again and again. Back in 2018 the advice was that it is not recommended, because the dashboard might get corrupted. (See: 'Running 2 ReadyAPI simultaneously') Indeed this can cause corruption of the Workspace if I try this. (ReadyAPI v2.8.2) For newer versions, has this advice changed? Have there been advances in ReadyAPI / SoapUI Pro that means we can now run two instances, on the same machine, using the same user account, using the same license, side-by-side ? Thank you.970Views0likes3CommentsData Generator - Change "duplicate each value" property through Groovy
Hello all, I have used a DataSource with DataGenerator type selected, in one of my test cases and I'm trying to set the "duplicate each value" property through a Groovy step. What I'm trying to achieve here is to set this value from a project-level custom property. The test case is setup as shown below and I have managed to go as far as this in my Groovy step: def valueRepetition = context.expand('${#Project#repeatValue}') def objDsStep = context.testCase.testSteps["Data Generator"] // objDsStep is a com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep def objSource = objDsStep.getDataSource() // objSource is a com.eviware.soapui.impl.wsdl.teststeps.datasource.DataGenerator.UI.DataGeneratorDataSource object log.info(objSource.toString()) I've looked through the API documentation but I cannot find which method to call in order to retrieve the generator's properties and update the 'repetitionCount' method . Can anyone provide some help on this? Thanks in advance!964Views0likes2CommentsUpdated the Ready API from 3.2.5 to 3.3.1, Facing org.codehaus.groovy.control.MultipleCompilationErr
Hi, Recently I've updated the ReadyAPI from 3.2.5 to 3.3.1 and when we are executing our groovy scripts, we are facing the below error: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script2.groovy: 357: unable to resolve class log.info @ line 357, column 11. log.info Pass=(context.expand('${RNL_MTA_ALL#ID}') + "|" + context.expand( '${RNL_MTA_ALL#Renewal Offer}' ) + "|" + payment + "|" + product_type + "|" + context.expand( '${RNL_MTA_ALL#ExCover_type}' ) + "|" + name + "|" + element + "| " + RadarValue ) ^ org.codehaus.groovy.syntax.SyntaxException: unable to resolve class log.info @ line 357, column 11. at org.codehaus.groovy.ast.ClassCodeVisitorSupport.addError(ClassCodeVisitorSupport.java:262) at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:349) at org.codehaus.groovy.control.ResolveVisitor.resolveOrFail(ResolveVisitor.java:456) at org.codehaus.groovy.control.ResolveVisitor.transformVariableExpression(ResolveVisitor.java:1143) at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:888) at org.codehaus.groovy.control.ResolveVisitor.transformDeclarationExpression(ResolveVisitor.java:1292) at org.codehaus.groovy.control.ResolveVisitor.transform(ResolveVisitor.java:892) at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitExpressionStatement(ClassCodeExpressionTransformer.java:108) at org.codehaus.groovy.ast.stmt.ExpressionStatement.visit(ExpressionStatement.java:40) at org.codehaus.groovy.ast.CodeVisitorSupport.visitBlockStatement(CodeVisitorSupport.java:86) at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitBlockStatement(ClassCodeVisitorSupport.java:164) at org.codehaus.groovy.control.ResolveVisitor.visitBlockStatement(ResolveVisitor.java:1564) at org.codehaus.groovy.ast.stmt.BlockStatement.visit(BlockStatement.java:69) at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClassCodeContainer(ClassCodeVisitorSupport.java:138) at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitConstructorOrMethod(ClassCodeVisitorSupport.java:111) at org.codehaus.groovy.ast.ClassCodeExpressionTransformer.visitConstructorOrMethod(ClassCodeExpressionTransformer.java:66) at org.codehaus.groovy.control.ResolveVisitor.visitConstructorOrMethod(ResolveVisitor.java:293) at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitMethod(ClassCodeVisitorSupport.java:106) at org.codehaus.groovy.ast.ClassNode.visitMethods(ClassNode.java:1108) at org.codehaus.groovy.ast.ClassNode.visitContents(ClassNode.java:1101) at org.codehaus.groovy.ast.ClassCodeVisitorSupport.visitClass(ClassCodeVisitorSupport.java:52) at org.codehaus.groovy.control.ResolveVisitor.visitClass(ResolveVisitor.java:1473) at org.codehaus.groovy.control.ResolveVisitor.startResolving(ResolveVisitor.java:261) at But the script was working perfectly before the update. I've verified the \ReadyAPI-3.3.1\bin\ext folder and i could see the below jar files. please let me if anything needs to add. Thanks in AdvanceSolved2.1KViews0likes5CommentsControlling FTPTestStep from groovy
Hello there I am currently stuck trying to transfer files with the FTP-Step provided in SoapUI Pro. The files are generated before sending, and there may be a large amount of files to send. The amount of files to send are determined after generation, I currently use a loop to iterate through all the files and add their information to the FTP-Step and then run it. Basically boiled down it's the following code: new File(path).listFiles().each{ ftpStep.setLocalPath(it.getPath()) ftpStep.setFileName(it.getName()) ftpStep.run(testRunner, context) } Sadly the transfer seems to fail every time, providing the following error: Unable to upload the file: null Looks to me like the testRunner gets confused and is unable to apply the filePath properly. testRunner and context are passed down from the invoked variables. If I execute the FTP-Step without any modifications afterwards, it sends the previously configured file to the server without problems, so I can only assume that something with the run() function is not working properly. I would appreciate any sort of help or workaround - but just confirming my problem would be sufficient for me to create a bug ticketSolved2.2KViews0likes10CommentsHow can I include dependencies from an external jar file into a groovy script test step
Hello Community, I am using the ready-api maven plugin. I have my dependency in the pom.xml. The depedency is being downloaded. My question is how can I use the classes in this jar file in a groovy test step. I have tried using an import statement, but the script does not know where to locate the jar. As a side note, we do not have admin rights on our local machines so I cannot install the jar file to the soapUi install directory. So, I need a way to tell SoapUi how to find the Jar file. I pulled my code out into intelliJ and it works, but I cannot get it to work inside of soapUi.Solved3.6KViews0likes5CommentsReadyAPI 2.8.0 getting 401 error when attempting to send the request
When we attempt to send a request to an endpoint that requires kerberos authentication I keep getting a 401 error Request RAW: POST http://matrix-133-cdi.matrix.sjrb.ad/customers HTTP/1.1 Connection: close Accept-Encoding: gzip,deflate X_SHAW_TRANSACTION_ID: 00005557 User-Agent: Fiddler X_SHAW_ORIGINATING_IP_ADDRESS: 10.15.184.88 X_SHAW_ORIGINAL_MODULE_ID: NetCracker X_SHAW_ORIGINATING_HOST_NAME: devcoreoeml017.matrix.SJRB.AD Content-Type: application/vnd.shaw.customer+xml X_SHAW_ORIGINATING_USER_ID: lruser003 Content-Length: 1697 Host: matrix-133-cdi.matrix.sjrb.ad <Customer xmlns="http://services.sjrb.ad/customer"> <Identity> <Title>Mr</Title> <FirstName>Nate</FirstName> <MiddleNameInitial>M</MiddleNameInitial> <LastName>Phone</LastName> </Identity> <IsOrganization>False</IsOrganization> <Status>New</Status> <SalesLeads> <SalesLead>1</SalesLead> </SalesLeads> <CustomerAlerts> <CustomerAlert>1</CustomerAlert> </CustomerAlerts> <PrivacyRequested>True</PrivacyRequested> <Credentials> <Password>1112</Password> <MembershipNumber>121213</MembershipNumber> <DriversLicense>233334</DriversLicense> </Credentials> <CreditScore>Netural</CreditScore> <CreditScoreDate>2010-04-14T00:00:00Z</CreditScoreDate> <BillingPreferences> <BillingLevelOfDetail>Detail</BillingLevelOfDetail> <BillingDeliveryMethod>Paper</BillingDeliveryMethod> <BillingLanguage>English</BillingLanguage> <BillingDeliveryFormat>Normal</BillingDeliveryFormat> <BillingEmails> <BillingEmail> <Address>hello@here.com</Address> </BillingEmail> </BillingEmails> <BillingAddresses> <BillingAddress> <AisId>272272</AisId> </BillingAddress> </BillingAddresses> </BillingPreferences> <ContactInformation> <ContactEmail> <Address>john.doe@domain.ca</Address> </ContactEmail> <PhoneNumbers> <PhoneNumber> <IsPrimary>True</IsPrimary> <PhoneType>Home</PhoneType> <Number>4032223334</Number> <Extension>78</Extension> </PhoneNumber> <PhoneNumber> <IsPrimary>False</IsPrimary> <PhoneType>Home</PhoneType> <Number>4033332222</Number> <Extension>1</Extension> </PhoneNumber> </PhoneNumbers> </ContactInformation> <Accounts></Accounts> </Customer> Response RAW: HTTP/1.1 401 Unauthorized Content-Type: text/html; charset=us-ascii Server: Microsoft-HTTPAPI/2.0 WWW-Authenticate: Negotiate oXwweqADCgEBoQsGCSqGSIb3EgECAqJmBGRgYgYJKoZIhvcSAQIC Date: Thu, 01 Aug 2019 22:52:11 GMT Connection: close Content-Length: 341 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> <HTML><HEAD><TITLE>Not Authorized</TITLE> <META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD> <BODY><h2>Not Authorized</h2> <hr><p>HTTP Error 401. The requested resource requires user authentication.</p> </BODY></HTML> I followed the document for kerberos that smartbear has, added the following to vmoptions.txt -Djavax.security.auth.useSubjectCredsOnly=false -Djava.security.auth.login.config=/Users/nmowbray/Documents/Kerberos_SoapUI/login.conf -Djava.security.krb5.conf=/Users/nmowbray/Documents/Kerberos_SoapUI/krb5.conf Custom Properties Follow Redirects true Follow 302 Redirect with GET false Username user01 Password password Domain shaw Using the exact same setup in ReadyAPI 2.6.0 this request works with no issuesSolved2.2KViews0likes3Comments