- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Debomita Bhattacharjee has Published 867 Articles
Debomita Bhattacharjee
2K+ Views
We can get a value from a nested list in Rest Assured. This is done with the help of the extract method. To grab the item, we have to use the path method(after the extract method) and pass the item in the response we want to obtain.We shall first send ... Read More
Debomita Bhattacharjee
3K+ Views
We can use JsonPath in Rest Assured to extract value. This is done with the help of the jsonPath method (which is a part of the JsonPath class). After that, we need to use the get method and pass the key that we want to obtain from the JSON Response.We ... Read More
Debomita Bhattacharjee
1K+ Views
We can use the then method in Rest Assured. It is mainly used to validate a Response obtained from a request. Thus, most assertions are included within a then method.SyntaxRestAssured.baseURI = "http://dummy.restapiexample.com"; //GET operation with then methods given() .when().get("/api/v1/employees").then() //verify status code as 404 .assertThat().statusCode(404);ExampleCode Implementationimport org.testng.annotations.Test; import ... Read More
Debomita Bhattacharjee
2K+ Views
We can create a Cucumber project template using Maven. This can be done by following the below steps −Step1− Click on the File menu in Eclipse. Then select the option New. Next click on Other.Step2− Click on Maven Project from the Maven folder. Then click on Next.Step3− Proceed with the ... Read More
Debomita Bhattacharjee
654 Views
We need to install the Natural plugin in Eclipse to work with Cucumber. To install it follow the below steps −Step 1 − Click on the Help menu in Eclipse, then select Eclipse MarketplaceStep2 − Enter Natural in the Find field and click on Go. Then click on Install.Step 3 − Proceed with ... Read More
Debomita Bhattacharjee
1K+ Views
The testng.xml file has the numerous uses as listed below −Test cases are executed in groups.Test methods can be included or excluded in the execution.The execution of multiple test cases from multiple java class files can be triggered.Comprises names of the folder, class, method.Capable of triggering parallel execution.Test methods belonging ... Read More
Debomita Bhattacharjee
1K+ Views
The various annotations available in TestNG are listed below −@Test – This is used before every test method in the java class file.@BeforeSuite – This is used to run a particular test method before all the test methods.@AfterSuite – This is used to run a particular test method after all ... Read More
Debomita Bhattacharjee
202 Views
We can perform data parameterization in TestNG. The parameterization in execution in TestNG can be done in the following ways −data parameterization with @Parameters annotation.data parameterization with @DataProvider annotation.ExampleCode Implementation of TestNG xml file with @Parameter annotation. ... Read More
Debomita Bhattacharjee
756 Views
We can skip a particular test method in TestNG. To overlook a particular test method from execution in TestNG enabled helper attribute is used. This attribute has to be set to false to overlook a test method from execution. Code Implementation of Java class file.@Test(enabled=false) public void verifyRepay(){ ... Read More
Debomita Bhattacharjee
1K+ Views
We can group test cases in Pytest. Pytest is a test framework in python. To install pytest, we need to use the command pip install pytest. After installation, we can verify if python has been installed by the command pytest – version. The version of pytest shall be known.Pytest can ... Read More