Hi, now we will see how to create test cases for create users APA. Right click new test case create users uses our test case is created. We can see both manual and script method here. In manual method, we are going to add a web service keyword send request and we are parsing the object. Here we are parsing create new user object and I am selecting ok and clicking this OK button. I am going to script mode here I am assigning or defining on variable def space create you as our create user SQL two and I am saving it and am adding this very fe status response score in the script in next line and I am passing this create user object in this method and then verifying its status reporting Score is 200 are not actually the AP REST request has will return the status code us to not one.
So, if it returns to not one, our test case is passed. So, here I am giving their their status request response code is 200 or not two not one or not I am verifying that I'm saving it and I am going to manual mode and I see like verify response status score manual method is also created with create user under to not one input and I am running it you can either run by from script mode or manual. Let me run here and our test case is launching begins to run. Let us wait for a few seconds to see there is Yeah, it started raining here you can see and in a very fade it status response code is two not one. Let us fail this test case. Let me tell the core verify whether it has status code is 200 or not and I am passing or running the script.
Now, our test case should fail because the actual response score will be two, not one We are asking the Corps to verify whether it is 200 or not. No, it will verify and it will throw a failed message. It is running. Yeah. In the Send request, you can see it is paused in very free status score. You can see like, it is failed in the error message you can see status code is 200 expected status code is here you can see like expected status code is 200 but actual status code is 201.
This is how we can verify our test cases.