Contributions
How to create html file in groovy script and how to use dynamic values from response to html code
How to create html file in groovy script and how to use dynamic values from response to html code Basic HTML code in groovy will be little helpful for me and dynamically need to change value in html code which I will get from API responses Please respond anything is fine Thanks in advance AlexKaras Marsha_R @richieSolved7.8KViews0likes7CommentsCompare multiple values from database against API response
Consider I am having one API which asks id as input.that id I can fetch from database and I can iterating the same request with multiple Id from database. It will produce response as per the id mentioned in request.now I am taking some other values from database (age,name) but these values not act as input parameter for API request.can I validate the name and age which is coming for each response with the database (it needs to match with age and name of the current Id input). Can I use outline in response,to check for contains assertion ,how the actual value will get dynamically changed and compared against particular database row values? Can I do this without groovy scripting? tristaanogre AlexKarasSolved4 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.9KViews0likes1Commentcustom authorization in groovy script .need explanation for each in body section?
defauthProfileName = "Name of your profile"; defproject = testRunner.getTestCase().getTestSuite().getProject(); defauthProfile = project.getAuthRepository().getEntry(authProfileName); authProfile.setUsername("newUsername"); authProfile.setPassword("newPassword"); authProfile.setDomain("newDomain"); //Set to true for pre-emptive authentication //Set to false for using global preference authProfile.setPreemptive(true); defstep = testRunner.testCase.getTestStepByName("Name of your request").getHttpRequest(); step.setSelectedAuthProfile(authProfileName); nmraorupert_anderson top contributors please help845Views0likes2Comments