Function to verify the session token

You can discuss for Sogou search engine forum
Post Reply
mitu300
Posts: 1
Joined: Tue Dec 19, 2023 3:19 am

Function to verify the session token

Post by mitu300 »

Token is present in the response body. Add the following test below the previous test Copy As you can see above the request is sent to the target endpoint and the response body is abstracted from the result. Function used to verify whether the key exists in the response body. Then use the.

Note It is important to note that si photo editing servies ilar to password encryption, it is also important to validate the session token using the same function used in . It should return a status code when the provided credentials are invalid. Now you will verify that sending the request body with invalid credentials results in the correct error response.

Image

To reproduce this scenario you simply send a request to the test user with the correct username and incorrect password. Add the following test to replicate the expected status of the response as shown above. Also added an expectation that the response body does not contain attributes since invalid login requests should.
Post Reply