Guest User

Untitled

a guest
Jan 7th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. import org.junit.runner.RunWith;
  2. import cucumber.api.CucumberOptions;
  3. import cucumber.api.junit.Cucumber;
  4. import cucumber.api.testng.AbstractTestNGCucumberTests;
  5.  
  6. //@RunWith(Cucumber.class)
  7. @CucumberOptions(features = "feature/resource.feature", plugin = { "html:target/treport/" }, glue = { "testCase" })
  8. public class TestRunner extends AbstractTestNGCucumberTests{
  9. }
  10.  
  11. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  12. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  13. <modelVersion>4.0.0</modelVersion>
  14. <groupId>MavenProject</groupId>
  15. <artifactId>MavenProjectArtifact</artifactId>
  16. <version>0.0.1-SNAPSHOT</version>
  17.  
  18. <build>
  19. <plugins>
  20. <plugin>
  21. <groupId>org.apache.maven.plugins</groupId>
  22. <artifactId>maven-complier-plugin</artifactId>
  23. <version>3.6.1</version>
  24. <configuration>
  25. <source>1.7</source>
  26. <target>1.7</target>
  27. </configuration>
  28. </plugin>
  29. <plugin>
  30. <groupId>org.apachen.maven.plugins</groupId>
  31. <artifactId>maven-surefire-plugin</artifactId>
  32. <version>2.20</version>
  33. <configuration>
  34. <includes>
  35. <include>**/*TestRunner.java</include>
  36. </includes>
  37. </configuration>
  38. </plugin>
  39. </plugins>
  40. </build>
  41.  
  42. <dependencies>
  43. <dependency>
  44. <groupId>org.seleniumhq.selenium</groupId>
  45. <artifactId>selenium-java</artifactId>
  46. <version>3.4.0</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.testng</groupId>
  50. <artifactId>testng</artifactId>
  51. <version>6.11</version>
  52. <scope>test</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>info.cukes</groupId>
  56. <artifactId>cucumber-java</artifactId>
  57. <version>1.2.5</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>info.cukes</groupId>
  61. <artifactId>cucumber-jvm-deps</artifactId>
  62. <version>1.0.5</version>
  63. <scope>test</scope>
  64. </dependency>
  65. <dependency>
  66. <groupId>info.cukes</groupId>
  67. <artifactId>cucumber-testng</artifactId>
  68. <version>1.2.5</version>
  69. <scope>compile</scope>
  70. </dependency>
  71. <dependency>
  72. <groupId>info.cukes</groupId>
  73. <artifactId>cucumber-core</artifactId>
  74. <version>1.2.5</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>net.masterthought</groupId>
  78. <artifactId>cucumber-reporting</artifactId>
  79. <version>3.7.0</version>
  80. </dependency>
  81. </dependencies>
Add Comment
Please, Sign In to add comment