Simple script to batch edit multiple groovy scripts
Question How to batch edit multiple groovy scripts? Here is my solution. Answer import com.eviware.soapui.impl.wsdl.teststeps.WsdlGroovyScriptTestStep def testSuite = 'testsuitename' String textToSearch = """text""" def replacementText = """text""" def tSuite = context.testCase.testSuite.project.testSuites[testSuite] def testcases = tSuite.testCaseList.toArray() testcases.each() {Case -> for( testSteps in Case.testStepList ) { if( testSteps instanceof WsdlGroovyScriptTestStep && testSteps.getScript().contains(textToSearch)) { log.info(Case.getName().toString() + " - " + testSteps.getScript().toString()) String newString = testSteps.getScript().toString().replace(textToSearch, replacementText) testSteps.setScript(newString) } } }586Views3likes0CommentsHow to connect to Azure blob storage in Ready API
How to connect to Azure blob storage Ready API if i have container-sas-url: https://test.window.net/container-name?tx=XXXX container-name: test container credential: client-id: XXXXXXXXXX client-secret: XXXXXXXXXXXXXXXXXXXXXX profile: tenant-id: XXXXXXXXXXXXXXXXXXXXXXXXX35Views1like0CommentsTestEngine external JAR files - error - unable to resolve class
Background - We have test engine hosted on some linux server and we execute tests suing CURL cmd or POSTMAN. Given some external JARs When we add external JARs in /bin/ext folder of test engine server and re-start the test engine And run the tests using curl command from locally or using POSTMAN Then it throws error for groovy script test step saying unable to resolve class <className present in external JARs> on import statement itself. We have also configured .vmoptions of test engine server to read ext JARs but still it throws error. Locally, In ReadyAPI, we are placing those JARs in /bin/ext/ folder and it works perfectly fine. Any solution to this problem?206Views1like2CommentsIs it possible to integrate the Azure TestPlan Test cases and the ReadyAPI tests ?
I have created manual test cases in Azure devops Test Plan. I have automated the manual test case functionality using ReadyAPI. Now i want to link the Azure Test Plan test cases while running the ReadyAPI tests via the Azure pieplines. Is it possible to do so ? I am using the Azure devops extension named "ReadyAPI Test for Azure Devops" and "Publish Test Results" in my pipeline.209Views1like1CommentHow are you securing secrets for storing your projects in github?
We're trying to migrate our ReadyAPI suites into github and I'm getting a little stuck with ReadyAPI's documentation on how to encrypt passwords we use to test our application, I'm hoping someone has a simple answer they can share. Our application passwords are stored in auth manager or request properties, when this project is converted to a composite project and pushed into github those values are visible so I have followed documentation to try and mask them without success. 1. Encrypt the project - this stops the project being a composite project so we're back to single use for upgrades and preventing people from making changes and keeping them in a branch. Doesn't seem like this fits. 2. Password protect the project - doesn't obsfucate the passwords anywhere. 3. Move the passwords to encrypted properties - Feels very hacky and clunky, makes the auth manager redundant and isn't very user friedly. I haven't been able to find any other in application solutions other than the above, I was looking at keystores/ truststores but neither seem to fit the requirement. This has left us with the only option we can see which is to write a groovyscript to pull the passwords out of an encrypted keepass kdbx file to use at runtime. This is not my preferred approach as I would rather use in built features with ReadyAPI support documentation... If anyone knows of other things to attempt or can share how they managed it in their project that would be appreciated.Solved707Views1like4Commentsready-api-soapui-testrunner does not pass global properties
Hi I'm usingready-api-soapui-testrunner:3.47.0 Docker image to run my tests But global properties used in -e COMMAND_LINE are not passed to the project file and tests are failing. E.g. -Gmy.jdbc.url=jdbc:mysql://remote-server:6446/databasename?user=username&password=plainpassword222 givesjava.sql.SQLException: Access denied for user ''@'remote-server' which indicates that username that I have provided is not known to the testrunner. Using Readyapi or command line using testrunner.bat works without any problem. Tests run and are passed. So what is the reason to failure when running the Docker image?444Views1like3CommentsWhy I dont see GraphQL tab in Endpoints& Environment Section in ReadyAPI?
Why I dont see GraphQL tab in Endpoints& Environment Section in ReadyAPI? We are using 3 different ReadyAPI licenses that supports virtualization, Functional Test, Performance Testing. When looking for GraphQL tab under Endpoints and Environment section to support Functional/Performance testing of GraphQL, we do not see GraphQL tab? do we need to have any additional license for it? can we do GraphQL endpoint validation without this tab? are there any video/webinar links that demo GraphQL endpoint functional/performance testing. Thank you!317Views1like1Comment3.44 issue with java.net.SocketTimeoutException: Read timed out
test step is failing due to "java.net.SocketTimeoutException: Read timed out", we tried increasing the socket timeout but it is still failing after the default 1 minute time. this project and test step is working fine when using 3.41 readyapi version but same test is failing in 3.44 and the latest 3.45 versions. please let us know what need to be done here as this impacting our regression testsSolved1.4KViews1like2CommentsQuestion regarding gRPC protocol.
Hello, I have a question regarding new gRPC test step, does it support streaming? If not, will it be in the future? I need to test streaming service using gRPC protocol and i tried to import .proto file, but it keeps throwing me an error. Ive tried to import other non-streaming service and its worked. Some info from internet: "gRPC uses the HTTP/2 network protocol to do inter-service communications. One key advantage of HTTP/2 is thatit supports streams. Each stream can multiplex multiple bidirectional messages sharing a single connection" Thank you in advance for any information regarding this question.352Views1like0CommentsBehavior when a test step fails
I have a collection of test cases, each with several groovy-script test steps. When a test-step fails, the method testrunner.fail() is called. This has the effect of ending that current test step, and not running all subsequent test steps in that test case -- is that the intended behavior? Question: Is it possible to have the subsequent test steps still run? Or if I want that behavior, is it better to separate the logic into a discrete test case? All the best, -MdarSolved983Views1like2Comments