TestNG] INVOKING: "test" - testscripts.LoginTest.loginWithValidCredentialsTest()
[Invoker 1915058446] Invoking testscripts.LoginTest.loginWithValidCredentialsTest
2018-01-22 15:09:25 INFO testpages.LoginPage:46 - clicked on skip button
2018-01-22 15:09:27 INFO testpages.LoginPage:50 - clicked on log in button
2018-01-22 15:09:27 INFO testpages.LoginPage:96 - Enter user name and password
java.io.FileNotFoundException: src/test/resources/LoginPage.json (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
Please help me, i am facing this issue from last 2-3 days. Not found any solution yet.
I was able to solve above problem. Simply we have to keep the files under resources directory. like in the below image
Now add the following dependency to the pom.xml :
Use following code and you are ready to test it on AWS ;
My test.json file is structured as below :