Hi guys!!I want to run my Selenium Webdriver Maven tests in Jenkins. I've followed the tutorial: https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html and https://www.safaribooksonline.com/library/view/jenkins-the-definitive/9781449311155/ch04s06.htmlBut now, I want to run each of hundreds tests that I've written in Selenium Webdriver with Eclipse.I use Maven to create testng.xml (where I have my Maven projects to can execute a list of tests in the same execution).I use Eclipse to write Java to create tests in Selenium Webdriver.
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ae45e3c6-ce98-4e49-b32d-683d89d7bdc2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
R u running through server or local machine
On 14 Aug 2017 2:11 pm, <ama...@bufetedemarketing.com> wrote:
Hi guys!!--I want to run my Selenium Webdriver Maven tests in Jenkins. I've followed the tutorial: https://www.guru99.com/maven-jenkins-with-selenium-complete-tutorial.html and https://www.safaribooksonline.com/library/view/jenkins-the-definitive/9781449311155/ch04s06.htmlBut now, I want to run each of hundreds tests that I've written in Selenium Webdriver with Eclipse.I use Maven to create testng.xml (where I have my Maven projects to can execute a list of tests in the same execution).I use Eclipse to write Java to create tests in Selenium Webdriver.I don't know if I'm right to ask it here, or I have to do it in another web page, sorry, I'm pretty new here.Could anybody help me with this issue?Thanks so much!!!!
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
+ cd /cua/Researches/Filtro Afinidad Entidades - Anual y Trimestral - Ppales Entidades/ /tmp/hudson2620945203684152183.sh: 2: cd: can't cd to /cua/Researches/Filtro Afinidad Entidades - Anual y Trimestral - Ppales Entidades/ Build step 'Execute shell' marked build as failure Finished: FAILURE Does anybody know why it returns an error? Thanks so much! |
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe@googlegroups.com.
To post to this group, send email to selenium-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/9708d857-9e24-4bd4-9409-85d4ce92e167%40googlegroups.com.
cd Researches/Filtro_Afinidad_Entidades_Anual_y_Trimestral_Ppales_Entidades/java -cp /cua/Researches/Filtro_Afinidad_Entidades_Anual_y_Trimestral_Ppales_Entidades/lib/*;/cua/Researches/Filtro_Afinidad_Entidades_Anual_y_Trimestral_Ppales_Entidades/bin org.testng.TestNG testng.xml
+ cd Researches/Filtro_Afinidad_Entidades_Anual_y_Trimestral_Ppales_Entidades/ + java -cp /cua/Researches/Filtro_Afinidad_Entidades_Anual_y_Trimestral_Ppales_Entidades/lib/* Usage: java [options] <mainclass> [args...] (to execute a class) or java [options] -jar <jarfile> [args...] (to execute a jar file) or java [options] -m <module>[/<mainclass>] [args...] java [options] --module <module>[/<mainclass>] [args...] (to execute the main class in a module) Arguments following the main class, -jar <jarfile>, -m or --module <module>/<mainclass> are passed as the arguments to main class. where options include: -d32 Deprecated, will be removed in a future release -d64 Deprecated, will be removed in a future release -cp <class search path of directories and zip/jar files> -classpath <class search path of directories and zip/jar files> --class-path <class search path of directories and zip/jar files> A : separated list of directories, JAR archives, and ZIP archives to search for class files. -p <module path> --module-path <module path>... A : separated list of directories, each directory is a directory of modules. --upgrade-module-path <module path>... A : separated list of directories, each directory is a directory of modules that replace upgradeable modules in the runtime image --add-modules <module name>[,<module name>...] root modules to resolve in addition to the initial module. <module name> can also be ALL-DEFAULT, ALL-SYSTEM, ALL-MODULE-PATH. --list-modules list observable modules and exit -d <module name> --describe-module <module name> describe a module and exit --dry-run create VM and load main class but do not execute main method. The --dry-run option may be useful for validating the command-line options such as the module system configuration. --validate-modules validate all modules and exit The --validate-modules option may be useful for finding conflicts and other errors with modules on the module path. -D<name>=<value> set a system property -verbose:[class|module|gc|jni] enable verbose output -version print product version to the error stream and exit --version print product version to the output stream and exit -showversion print product version to the error stream and continue --show-version print product version to the output stream and continue --show-module-resolution show module resolution output during startup -? -h -help print this help message to the error stream --help print this help message to the output stream -X print help on extra options to the error stream --help-extra print help on extra options to the output stream -ea[:<packagename>...|:<classname>] -enableassertions[:<packagename>...|:<classname>] enable assertions with specified granularity -da[:<packagename>...|:<classname>] -disableassertions[:<packagename>...|:<classname>] disable assertions with specified granularity -esa | -enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system assertions -agentlib:<libname>[=<options>] load native agent library <libname>, e.g. -agentlib:jdwp see also -agentlib:jdwp=help -agentpath:<pathname>[=<options>] load native agent library by full pathname -javaagent:<jarpath>[=<options>] load Java programming language agent, see java.lang.instrument -splash:<imagepath> show splash screen with specified image HiDPI scaled images are automatically supported and used if available. The unscaled image filename, e.g. image.ext, should always be passed as the argument to the -splash option. The most appropriate scaled image provided will be picked up automatically. See the SplashScreen API documentation for more information @argument files one or more argument files containing options -disable-@files prevent further argument file expansion To specify an argument for a long option, you can use --<name>=<value> or --<name> <value>. Build step 'Execute shell' marked build as failure Finished: FAILURE
So... it doesn't do anything... why??
I've executed the following in Jenkins: cd Researches/Filtro_Afinidad_Entidades_Anual_y_Trimestral_Ppales_Entidades/ java -cp /cua/Researches/Filtro_Afinidad_Entidades_Anual_y_Trimestral_Ppales_Entidades/lib/testng-6.11.jar:/cua/Researches/Filtro_Afinidad_Entidades_Anual_y_Trimestral_Ppales_Entidades/bin org.testng.TestNG testng.xml It returns: + cd Researches/Filtro_Afinidad_Entidades_Anual_y_Trimestral_Ppales_Entidades/ + java -cp /cua/Researches/Filtro_Afinidad_Entidades_Anual_y_Trimestral_Ppales_Entidades/lib/testng-6.11.jar:/cua/Researches/Filtro_Afinidad_Entidades_Anual_y_Trimestral_Ppales_Entidades/bin org.testng.TestNG testng.xml Error: Could not find or load main class org.testng.TestNG Caused by: java.lang.ClassNotFoundException: org.testng.TestNG Build step 'Execute shell' marked build as failure Finished: FAILURE