November 2018
Intermediate to advanced
388 pages
9h 5m
English
Now, let's assert the response by invoking the getOrg() function by passing the token returned from the getToken() function:
@Testfun testGetOrg() { var response = getOrg(getToken()) assertNotNull(response) assertNotNull(response.get("orgName")) assertNotNull(response.get("orgId"))}
Let's run this test case and see what happens:

As we can see, this integration test is able to invoke the APIs, and then the assertions are passed.
Read now
Unlock full access