Steps to build the project: Import the project in IntelliJ or Eclipse. If you encounter errors related to Rest Assured:
-
Open the pom.xml file.
-
Right click on it and choose the maven option, from maven option will get an option of download resource and reload project.
-
After clicking on download resource reload the project. Once issue is resolved try to build the project, after building it would look like the following:
Running all the testcase from the class: • To execute the desired class, right-click on it, and you will find the 'Run' option in the menu, as demonstrated:
The test case commences execution as follows:
• To run an individual test case from any class, you need to explicitly select that test case and execute it as follows: