Looping script test API by katalon

a dhiyaul asikin
1 min readAug 20, 2019

--

Hello, we meet in my stories again.

Current time, we will discuss the looping script test API by katalon.

JsonSlurper slurper = new JsonSlurper()
def parsedJson = slurper.parseText(response.getResponseText())
String A = parsedJson.data.data.categories.name
String[] arrayResponse = [A]
assertThat(arrayResponse).containsOnly(A)
assertThat(arrayResponse).containsOnlyElementsOf(Arrays.asList(A))

def expectedSize = jsonResponse.data.size()
for(int i = 0; i < expectedSize; i++) {
println(‘data’ + [i])
}

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

a dhiyaul asikin
a dhiyaul asikin

No responses yet

Write a response