daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Cannot find class in classpath: **packagename**.**classname**
  2. org.apache.maven.surefire.booter.SurefireBooterForkException: There was an
  3. error in the forked process
  4.  
  5. Cannot find class in classpath: **packagename**.**classname**
  6.     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:658)
  7.     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:533)
  8.     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:278)
  9.     at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:244)
  10.     at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1149)
  11.     at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:978)
  12.     at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:854)
  13.     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
  14.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
  15.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
  16.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
  17.     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
  18.     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
  19.     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
  20.     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
  21.     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
  22.     at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
  23.     at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
  24.     at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
  25.     at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:290)
  26.     at org.apache.maven.cli.MavenCli.main(MavenCli.java:194)
  27.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  28.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  29.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  30.     at java.lang.reflect.Method.invoke(Method.java:498)
  31.     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
  32.     at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
  33.     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
  34.     at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
  35.    
  36. <project xmlns="http://maven.apache.org/POM/4.0.0"
  37. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  38. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  39. http://maven.apache.org/xsd/maven-4.0.0.xsd">
  40. <modelVersion>4.0.0</modelVersion>
  41.  
  42. <groupId>src</groupId>
  43. <artifactId>AutomationTestSuit</artifactId>
  44. <version>0.0.1-SNAPSHOT</version>
  45. <packaging>jar</packaging>
  46.  
  47. <name>AutomationTestSuit</name>
  48. <url>http://maven.apache.org</url>
  49.  
  50. <properties>
  51. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  52. </properties>
  53.  
  54. <dependencies>
  55. <!-- https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-
  56. java -->
  57.      <dependency>
  58.          <groupId>org.seleniumhq.selenium</groupId>
  59.          <artifactId>selenium-java</artifactId>
  60.          <version>3.11.0</version>
  61.      </dependency>
  62.  
  63. <!-- https://mvnrepository.com/artifact/org.testng/testng -->
  64.      <dependency>
  65.           <groupId>org.testng</groupId>
  66.           <artifactId>testng</artifactId>
  67.           <version>6.14.2</version>
  68.           <scope>test</scope>
  69.      </dependency>
  70.  
  71.      <dependency>
  72.           <groupId>log4j</groupId>
  73.           <artifactId>log4j</artifactId>
  74.           <version>1.2.17</version>
  75.      </dependency>
  76.  
  77.  <!-- https://mvnrepository.com/artifact/org.apache.poi/poi -->
  78.      <dependency>
  79.          <groupId>org.apache.poi</groupId>
  80.          <artifactId>poi</artifactId>
  81.          <version>3.17</version>
  82.      </dependency>
  83.  
  84.   <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
  85.  
  86.      <dependency>
  87.           <groupId>org.apache.poi</groupId>
  88.           <artifactId>poi-ooxml</artifactId>
  89.           <version>3.17</version>
  90.      </dependency>
  91.  
  92.   <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-examples -->
  93.    <dependency>
  94.         <groupId>org.apache.poi</groupId>
  95.         <artifactId>poi-examples</artifactId>
  96.         <version>3.17</version>
  97.    </dependency>
  98.  
  99.  <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-excelant -->
  100.    <dependency>
  101.        <groupId>org.apache.poi</groupId>
  102.        <artifactId>poi-excelant</artifactId>
  103.        <version>3.17</version>
  104.    </dependency>
  105.  
  106.  <!-- https://mvnrepository.com/artifact/com.relevantcodes/extentreports -->
  107.     <dependency>
  108.          <groupId>com.relevantcodes</groupId>
  109.          <artifactId>extentreports</artifactId>
  110.          <version>2.41.2</version>
  111.     </dependency>
  112.  
  113. <!-- https://mvnrepository.com/artifact/com.saucelabs/sauce_testng -->
  114.    <dependency>
  115.         <groupId>com.saucelabs</groupId>
  116.         <artifactId>sauce_testng</artifactId>
  117.         <version>2.1.23</version>
  118.         <scope>test</scope>
  119.     </dependency>
  120.  
  121. </dependencies>
  122.  
  123. <build>
  124.     <plugins>
  125.         <plugin>
  126.             <artifactId>maven-compiler-plugin</artifactId>
  127.             <version>3.7.0</version>
  128.             <configuration>
  129.                 <source>1.6</source>
  130.                 <target>1.6</target>
  131.             </configuration>
  132.         </plugin>
  133.      <plugin>
  134.             <groupId>org.apache.maven.plugins</groupId>
  135.             <artifactId>maven-surefire-plugin</artifactId>
  136.             <version>2.21.0</version>
  137.              <configuration>
  138.                  <forkCount>0</forkCount>
  139.                  <suiteXmlFiles>              
  140.  
  141.  <suiteXmlFile>C:Users****testng.xml</suiteXmlFile>
  142.                  </suiteXmlFiles>                  
  143.             </configuration>
  144.      </plugin>
  145.  </plugins>
  146.  
  147. </build>
  148.    
  149. <?xml version="1.0" encoding="UTF-8"?>
  150. <!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
  151. <suite name="Suite" verbose="2" parallel="methods" thread-
  152. count="2">    
  153. <test name="Regression" parallel="methods" thread-count="2">
  154.  
  155.     <parameter name="browser" value="chrome"/>
  156.     <parameter name="OS" value="Windows 7"/>
  157.     <parameter name="version" value="64"/>
  158.     <parameter name="sauceLabsUsername" value="**"/>
  159.     <parameter name="accesskey" value="***"/>
  160.     <classes>
  161.         <class name="packagename.classname"/>                    
  162.     </classes>
  163. </test>
  164. </suite>
  165.    
  166. package packagename;
  167. import org.testng.annotations.AfterMethod;
  168. import org.testng.annotations.Test;
  169.  
  170. public class Login extends Remote {
  171.  
  172. @Test
  173.  
  174. public void LoginAndCreateOrder() throws Exception {
  175.  
  176.  
  177. LoginPage.Login_as(ConfigFileReader.getUserName(),
  178. ConfigFileReader.getPassword());
  179. Log.info("User successfully logged on");
  180. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top