Contributions
- 5 years agoPlace ReadyAPI QuestionsReadyAPI Questions7KViews0likes3Comments
Re: How to add a field to JSON Request using Groovy Script.
Hi nmrao, Thanks for the help, Actually what is the scenario is, Dev team added extra field to the RQ, We have test cases 12, test steps are more than 1500, It is difficult to update each Test step to the test case, That's why I want to Automate this process. Please help me in this. Here is the steps for scenario, 1. I have a test case in that I have 1500 test steps(RQ). 2. I need to add the Generation time field to each RQ. 3. Is there any way to display in the RQ that field. Thanks in Adavance.5 years agoPlace ReadyAPI QuestionsReadyAPI Questions7KViews0likes4CommentsRe: How to add a field to JSON Request using Groovy Script.
Thanks JustinM89, I have 200 Test cases, That's have differenent types of test data. How can I handle this, What I am looking for is I have to write a script that has to update all the request, with generation time field, Regards, Karthik5 years agoPlace ReadyAPI QuestionsReadyAPI Questions7.2KViews0likes8CommentsHow to add a field to JSON Request using Groovy Script.
Team, I have scenario like I need to add highlighted json field to Request. Can anyone please help me in this. { "lastMessage":${Properties#lastMessage_F}, "generationTime":"2016-01-26T16:07:07Z", } Regards, KarthikSolved5 years agoPlace ReadyAPI QuestionsReadyAPI Questions7.7KViews0likes10CommentsRe: Calling Another Test Step Groovy script into another Test Case using Groovy.
Below are the Script I have used, It is executing but not updating the endpoints. def stage1 = testRunner.testCase.testSuite.getPropertyValue( "STAGE1" ); def testcases = testRunner.getTestCase() //Environment Selection Staging 1 testcases.each { testcase -> def teststeps = testcase.getTestStepList() teststeps.each { teststep -> teststep.setPropertyValue('Endpoint',stage1) } } def testing = testRunner.testCase.testSuite.project.getTestSuiteByName("Logging Availability_STAGE").getTestCaseByName("INFO_ESBLOGS_STAGE").getTestStepByName("Staging1") testing.run(testRunner, context)5 years agoPlace ReadyAPI QuestionsReadyAPI Questions3KViews0likes2CommentsCalling Another Test Step Groovy script into another Test Case using Groovy.
Hi Team I have a scenario I need to call a Groovy script test script into another Groovy script. Both are in the different test cases. Please find the attached screen shot.5 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.1KViews0likes6CommentsHow to hide Information Popup
Hi Team, How to disable below Popup after running Groovy Script. Regards, KarthikSolved5 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.2KViews0likes3Comments