Beruflich Dokumente
Kultur Dokumente
Selenium Questions -
1. How you are going to validate success response for Get method ?
First validate status code for request, 200 success code will get in Get request. With the help
of response will validate all object from response using Json path.
3. In RestAssured how you are validating Json response with schema, which method you are
using from RestAssured library ?
Suppose there is get request for Employee records and we want to use Json path to verify
Address then we can drill down till ‘Address’ object
$.Emp.address
5. If response contain Array object then how will write Json Path to fetch 10th record.
$.emp[10].address
Post is for adding and PUT is for Updating. Patch is for partial updates.
Questions on Java-
1. Can you write Java program to find out second largest number from Integer Array?
We can get them into a sorted array and take second element from the array.
Int I = str.lenght();
Int n =1;
If(!hm.containsKey(Str.CharAt(j))
hm.Put(Str.charAt(j), 1);
else
We need to extend Abstract class and create object of abstract class, so using that object we
can access Abstract class method.
We need to Implement interface with class and using object of that class we can access that
method from Interface.
1. How you are going to validate success response for Get method ?
First validate status code for request, 200 success code will get in Get request. With the help
of response will validate all object from response using Json path.
3. In RestAssured how you are validating Json response with schema, which method you are
using from RestAssured library ?
Suppose there is get request for Employee records and we want to use Json path to verify
Address then we can drill down till ‘Address’ object
$.Emp.address
5. If response contain Array object then how will write Json Path to fetch 10th record.
$.emp[10].address
Post is for adding and PUT is for Updating. Patch is for partial updates.
Questions on Java-
1. Can you write Java program to find out second largest number from Integer Array?
We can get th