Hi Ashish,
My code does not run DriverScript class, when I run my LoginTest it does product result but skip functions listed in DriverScript. It does not open up browser and execute other code. It used to run successfully before implementing DataProvider. Here I am attaching some files for you to take a look, Let me know if u need more details.
Instructor
Ashish Thakur Replied on 19/11/2020
Make sure that the names of keywords in the xls file are same as the driverscript
Upper and lower case matter. This happens majorly when the names are not same.
Instructor
Ashish Thakur Replied on 19/11/2020
This was a known issue in testng
Please use 7.0 version
it's running on TestNG verison 7.3. Checked all the keywords in DriverScript and do not see any difference. See attached sheet "Test Cases" and property file. I really need to resolve this in order to move forward.
Forgot to add errros: The error is pulled from Error Log.
Instructor
Ashish Thakur Replied on 20/11/2020
Not from logs.
Do you see anything from console?
Any error coming in console?
Do not see aby specific error, see attached console result
Hello Ashish, can u please suggest
Hi Ashish,
Can u please look into this
Instructor
Ashish Thakur Replied on 25/11/2020
Yes I am checking
Instructor
Ashish Thakur Replied on 25/11/2020
Please send me your xls as well
Here's the xls
Instructor
Ashish Thakur Replied on 26/11/2020
Ok .. This also looks good.
Goto your project.
Zip entire project and send it across as it is
Thanks Ashish for ur time, see attached Zip.
Hi Ashish , a reminder to review this when u get a chance.
Instructor
Ashish Thakur Replied on 02/12/2020
Looked at the project
The tesname defined in java file should be same at the xls file name
In LoginTest java file you have test name as - String testcase = "Login";
In xls file you have Login Test
This is the issue.
Make both same
I remember you have repeatedly mentioned in your lectures to keep both of these identical. Many many thanks for looking into it!