I am trying to a script for my of .Its a Lengthy one.So please patient and try to help on this,

When I try to run my Specific testng class without maven install, by creating test suite ..The error is,

ERROR SAME AS THIS
https://stackoverflow.com/questions/42546110/no-plugin-found-for-prefix-c-in-the-current-project-and-in-the-plugin-groups .But this link answer is not working for me.Thanks in advance.

enter image description here

I have wrote my batch script like this,

set projectLocation=C:UsersMaeclipse-workspaceprojectname

cd %projectLocation%

set classpath=%projectLocation%bin;%projectLocation%lib*

call mvn org.testng.TestNG %projectLocation%mytestngsuitefile.xml

pause

Even after deploy relevant(i think) dependencies , I have error on maven install also like this…

[ERROR]package org.testng.annotations does not exist

[ERROR] package com.jayway.jsonpath does not exist

[ERROR] cannot find symbol
symbol: class ExpectedConditions
location: package org.openqa..support.ui

[ERROR] package org.testng.annotations does not exist

[ERROR] cannot find symbol
symbol: class BeforeTest
location: class name

[ERROR]cannot find symbol variable JsonPath

how to overcome this.



Source link https://sqa.stackexchange.com/questions/34710/how-to-execute-batch--of-testng-class-of-maven-project

LEAVE A REPLY

Please enter your comment!
Please enter your name here