'Maven project is not working after import
I have imported the Maven project(RestAssured API) and did the Maven--> Update project. But when I run this I don't see the TestNG option in Run as. Also, Dependency is not updated because of code level. throwing me a warning as shown in the picture.
#Note: The same project was working fine before because my laptop is corrupted I reinstalled everything after that it's not working.
Solution 1:[1]
Maybe can you try checking the Build Path and check the Jre is Configured properly or not.
And try Running the Java main class i.e Run the BasicFirst class directly instead of running the whole project.
Solution 2:[2]
In Eclipse go to Project > Properties > Libraries > [Add Library] > TestNG > Finish.
This might fix your problem.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | chatla harishwar |
Solution 2 | vijay atm |