Contributions
Re: Getting 400 bad request, but the same test case when executed in a different machine runs successful
Thanksrichie. This is happening because of a header that I didnot populate. The error got resolved after adding a value to the header.4 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.3KViews0likes0CommentsRe: how to write a script to extract field values from response in the form of a comma separated string?
Hi richie, Thanks. I just want to concatenate all the ids into a comma separated string -"123,145,169" . I will compare this string to the input string that present in the datasource(simple grid)4 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews0likes0CommentsGetting 400 bad request, but the same test case when executed in a different machine runs successful
Hi, I am getting 400 bad request. But whenthe same test case is exported (as xml) and executed in a different machine, it runs successfully !! Its really weird. Please help. Thanks, harshaSolved4 years agoPlace ReadyAPI QuestionsReadyAPI Questions4.5KViews0likes3Commentshow to write a script to extract field values from response in the form of a comma separated string?
In the script assertion, I am trying to build a comma-separated string ofIds("129,169,152")so that I can compare it with the data source Sample Response: { "result": { "formula" : [ { "Id" : 129, "formulaName" : "MO172-00-001", }, { "Id" : 169, "formulaName" : "MO172-50-014", } { "Id" : 152, "formulaName" : "MO1212-50-024", } } } Please help. Thanks harshaSolved1.6KViews0likes3CommentsHow to extract and build an array of unique values of a field from an array?
I want to extract a set of unique proceduresId values from the response i.e. [211, 324, 167] Sample response: { "result" : { "propertiesOPC" : [ { "phasePropertyId" : 3890, "proceduresId" : 211 }, { "phasePropertyId" : 3890, "proceduresId" : 211 }, { "phasePropertyId" : 3890, "proceduresId" : 324 }, { "phasePropertyId" : 3890, "proceduresId" : 167 }, { "phasePropertyId" : 3890, "proceduresId" : 167 } } }Solved1.7KViews0likes2CommentsRe: How to validate whether a sub-string is occuring in every object in an array in the response?
I have a problem...contains() is looking for an exact match i.e. case sensitive. If the name contains "Batch", it is failing... How to make the entire name array to lowercase ? or Is there any other solution??nmraoHimanshuTayal4 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.3KViews0likes3CommentsHow to validate whether a sub-string is occuring in every object in an array in the response?
Sample response { "result": { "list": [ { "proceduresId": 280, "name": "new batch workflow 123new batch workflow 123", "templateId": null, "isLocked": 0 }, { "proceduresId": 281, "name": "latest_trendsnew batch workflow 123", "templateId": null, "isLocked": 0 }, { "proceduresId": 282, "name": "dark knightnew batch workflow 123", "templateId": null, "isLocked": 0 } Hi, I am trying to write an assertion to check whether the string "batch" occurs in the name field ? Please help. Thanks harshaSolved4 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.4KViews0likes8Comments