Is 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.205Views1like1CommentHow 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: XXXXXXXXXXXXXXXXXXXXXXXXX23Views0likes0CommentsHow do you reuse your ReadyAPI Groovy scripts if you want to run tests in a pipeline?
"Create custom Groovy classes, embed your reusable Groovy scripts into their methods, save them as separate files with the .groovy extension and voila - your Script Library is ready. You just need to point ReadyAPI where to find it (Preferences>ReadyAPI > Script library). If you change anything in those external classes, ReadyAPI will detect this and reload the classes automatically." Does this work if you're running the tests in a pipeline or from a commandline on your local machine? How would you point your commandline run script to the groovy script library? And where would you recommend keeping this library if it is being used in multiple projects? We have multiple projects but kept within the same repo (not using git's integration with readyapi, as this doesn't allow for multiple projects in the same repo). Ideally what I want is for someone to pull down the tests from git and then just open up readyApi and be able to run the tests. I don't want them to have to do lots of configuration to be able to run the tests.134Views0likes2Commentshow to change test step name when save test results
Hi, I'm trying to save test result into a file with following scripts. def pName = context.currentStep.testCase.testSuite.project.name //get project name def pDate = new Date().format( 'yyyyMMdd' )//get current date def sDate = pDate.toString()//convert date to string def pTestSuite = context.currentStep.testCase.testSuite.name//get TestSuite name def pTestCase = context.currentStep.testCase.name//get TestCase name def filePath = 'E:/Data/Dean Ding/CRD files/CRD_results_test/'+pName+'_'+sDate+'/'+pTestSuite+'/'+pTestCase+'/'//compose the folder path File file = new File(filePath) if (!file.exists()) file.mkdirs()//create the destination folder fos = new FileOutputStream(filePath+ testStepResult.testStep.label + '.txt', true) pw = new PrintWriter( fos ) testStepResult.writeTo( pw ) pw.close() fos.close() but as my test step name contains symbols like : , " such special symbols which not accepted when create txt file due to naming convention, as there are more than 1000 cases it will take such long time to change my test step name,I found script to replace those symbols but don't know how to make it change when use above script to save test results. It will be much appreciated if anyone can provide the scripts.196Views0likes2CommentsTestEngine 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?182Views1like2CommentsSoapUI Groovy to save Requests and Responses in a txt file
How can I save my REST project in SoapUI Open Source all requests and responses that was ran to a txt file divided in sections test by test. I would like to use a Groovy code to do it, Please may someone help me? Example: Test 1 - Title Request code Response code Test 2 - Title Request code Response code I tried to save the Dump File but I need all request and response information with titles and all test steps together in the same file. How can I solve my problem using REST API and save all requests and responses that was ran? Thank you too munch!182Views0likes1CommentRunning api tests in parallel
I am used to creating api tests using nunit and specflow. With this setup, the tests can run in parallel. Tests can be grouped so that, although you are running your tests in parallel, the tests in the group still run in series. For example, lets say one of your tests is to create an object ... well after you create the object, you might want to delete the object (clean up) ... so you would want to run these test in series because there is a dependency.Solved205Views0likes1CommentReadyAPI update REST request body and update test cases
Hi all! I am trying to figure out if there is support in ReadyAPI to update a REST API request body and have the updated parameters being updated in all the test cases in my functional tests where that request is used. I looked quite a bit into this, both in ReadyAPI itself, online and on this forum, but I cannot find a proper way to make it work as I would like. Is ReadyAPI currently supporting this use case? As a workaround for now I am storing the body of my REST API request as a variable and saving it as a custom property on my project. I then invoke that project variable when I need to perform that specific REST API request in my test cases in my functional test. Why do I want to do this in the first place you might ask? The answer is that I want to be able to have all my test cases updated once there is an update in any of my REST API requests. I don't want to go through all the test cases and update manually each of them. It seems to be like an obvious feature to have, but I feel like I am either blind and cannot find how to implement it or there is some kind of restriction in ReadyAPI that does not allow to achieve this for some reason. Looking forward to hearing some feedback from you all, I think and hope I am not the first person with this kind of use case and problem, so I am very curious to see if there is a way to solve it or if I need to accept that it is not possible to handle this in the way I would like.370Views0likes5CommentsUsing a file location stored as a project property in a groovy set up script
I have created a test case that outputs the failed results to a file. I only want the file to be present in the folder if there are failed results to be viewed so Icreated a set up script that deletes the file at the start of each test run. What I want to do is use the folder path set in the project property to avoid it being hardcoded in each test case in the project. I used Get Data to get the project property and it automatically created this: def aPIresultsfolder = context.expand( '${#Project#API results folder}' ) How do I get it to work with this part of the script that I had already set up: new File(folderPath).eachFile (FileType.FILES) { file -> //Delete file if file name contains Forward NDF errors if (file.name.contains('Forward NDF errors')) file.delete() } This is the330Views0likes6Comments