Unable to execute DriveScript class | Selenium Forum
S
Saurabh Posted on 19/11/2020

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.


A
Ashish 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.


A
Ashish Replied on 19/11/2020

This was a known issue in testng

Please use 7.0 version


S
Saurabh Replied on 20/11/2020

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.

 


S
Saurabh Replied on 20/11/2020

Forgot to add errros: The error is pulled from Error Log.

  1. Invalid input url:platform:/plugin/org.eclipse.team.cvs.ui/icons/full/eview16/rep_editors_view.gif
  2. Unable to resolve plug-in "org.eclipse.team.cvs.ui".
  3. Invalid input url:platform:/plugin/org.eclipse.team.cvs.ui/icons/full/eview16/rep_editors_view.gif


A
Ashish Replied on 20/11/2020

Not from logs.

Do you see anything from console?

Any error coming in console?


S
Saurabh Replied on 20/11/2020

Do not see aby specific error, see attached console result


S
Saurabh Replied on 22/11/2020

Hello Ashish, can u please suggest


S
Saurabh Replied on 25/11/2020

Hi Ashish,

Can u please look into this


A
Ashish Replied on 25/11/2020

Yes I am checking


A
Ashish Replied on 25/11/2020

Please send me your xls as well

 


S
Saurabh Replied on 25/11/2020

Here's the xls


A
Ashish Replied on 26/11/2020

Ok .. This also looks good.

 

Goto your project.

Zip entire project and send it across as it is


S
Saurabh Replied on 26/11/2020

Thanks Ashish for ur time, see attached Zip.


S
Saurabh Replied on 01/12/2020

Hi Ashish , a reminder to review this when u get a chance.


A
Ashish 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


S
Saurabh Replied on 03/12/2020

 I remember you have repeatedly mentioned in your lectures to keep both of these identical. Many many thanks for looking into it!


Related Posts