Changes as per Live Test guidelines
This commit is contained in:
		
							parent
							
								
									2f1ea093c4
								
							
						
					
					
						commit
						cef8adfdae
					
				| @ -20,14 +20,34 @@ | |||||||
|                 <artifactId>maven-surefire-plugin</artifactId> |                 <artifactId>maven-surefire-plugin</artifactId> | ||||||
|                 <version>2.19.1</version> |                 <version>2.19.1</version> | ||||||
|                 <configuration> |                 <configuration> | ||||||
|                     <testSourceDirectory></testSourceDirectory> |                     <testFailureIgnore>true</testFailureIgnore> | ||||||
|                     <includes> |                     <excludes> | ||||||
|                         <include>Test*.java</include> |                         <exclude>**/*LiveTest.java</exclude> | ||||||
|                     </includes> |                     </excludes> | ||||||
|  |                     <systemPropertyVariables></systemPropertyVariables> | ||||||
|                 </configuration> |                 </configuration> | ||||||
|             </plugin> |             </plugin> | ||||||
|         </plugins> |         </plugins> | ||||||
|     </build> |     </build> | ||||||
|  |     <profiles> | ||||||
|  |         <profile> | ||||||
|  |             <id>live</id> | ||||||
|  |             <build> | ||||||
|  |                 <plugins> | ||||||
|  |                     <plugin> | ||||||
|  |                         <groupId>org.apache.maven.plugins</groupId> | ||||||
|  |                         <artifactId>maven-surefire-plugin</artifactId> | ||||||
|  |                         <configuration> | ||||||
|  |                           <includes> | ||||||
|  |                             <include>**/*LiveTest.java</include> | ||||||
|  |                           </includes> | ||||||
|  |                         </configuration> | ||||||
|  |                     </plugin> | ||||||
|  |                 </plugins> | ||||||
|  |             </build> | ||||||
|  |         </profile> | ||||||
|  |     </profiles> | ||||||
|  | 
 | ||||||
|     <dependencies> |     <dependencies> | ||||||
|         <dependency> |         <dependency> | ||||||
|             <groupId>org.seleniumhq.selenium</groupId> |             <groupId>org.seleniumhq.selenium</groupId> | ||||||
|  | |||||||
| @ -9,7 +9,7 @@ import org.junit.AfterClass; | |||||||
| import org.junit.BeforeClass; | import org.junit.BeforeClass; | ||||||
| import org.junit.Test; | import org.junit.Test; | ||||||
| 
 | 
 | ||||||
| public class TestSeleniumWithJUnit { | public class SeleniumWithJUnitLiveTest { | ||||||
| 
 | 
 | ||||||
|     private static SeleniumExample seleniumExample; |     private static SeleniumExample seleniumExample; | ||||||
|     private String expecteTilteAboutBaeldungPage = "About Baeldung | Baeldung"; |     private String expecteTilteAboutBaeldungPage = "About Baeldung | Baeldung"; | ||||||
| @ -9,7 +9,7 @@ import org.testng.annotations.AfterSuite; | |||||||
| import org.testng.annotations.BeforeSuite; | import org.testng.annotations.BeforeSuite; | ||||||
| import org.testng.annotations.Test; | import org.testng.annotations.Test; | ||||||
| 
 | 
 | ||||||
| public class TestSeleniumWithTestNG { | public class SeleniumWithTestNGLiveTest { | ||||||
| 
 | 
 | ||||||
|     private SeleniumExample seleniumExample; |     private SeleniumExample seleniumExample; | ||||||
|     private String expecteTilteAboutBaeldungPage = "About Baeldung | Baeldung"; |     private String expecteTilteAboutBaeldungPage = "About Baeldung | Baeldung"; | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user