ContributionsMost RecentMost LikesSolutionsRe: Getting 400 bad request, but the same test case when executed in a different machine runs successful Thanks richie . This is happening because of a header that I didnot populate. The error got resolved after adding a value to the header. Re: Getting 400 bad request, but the same test case when executed in a different machine runs successful Can you please help me with this weird error ? HimanshuTayal nmrao groovyguy Thanks, harsha Re: 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) Getting 400 bad request, but the same test case when executed in a different machine runs successful Hi, I am getting 400 bad request. But when the same test case is exported (as xml) and executed in a different machine, it runs successfully !! Its really weird. Please help. Thanks, harsha Solvedhow 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 of Ids( "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 harsha SolvedHow 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 } } } SolvedRe: 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?? nmrao HimanshuTayal Re: How to validate whether a sub-string is occuring in every object in an array in the response? Thanks HimanshuTayal !! Re: How to validate whether a sub-string is occuring in every object in an array in the response? Thanlks nmrao ! How 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 harsha Solved