Road to execution of SoapUI Project using maven

In my previous post “Click” I have posted how to create JUnit test for SoapUI project. In this post I will show you how to execute SoapUI-JUnit project using maven
Create java maven project as following directory.

SampeProject
                    src/main/java
                    ******** com/ maven/ example
                    **************************
                    src/test/java
                    ******** com/maven/example/
                    ********************** SopUIJunitTest.java
                    pom.xml


Put all your JUnit SoapUI script into “src/test/java” source folder with in package and add suffix with “Test” in your every Junit test scripts.
Below are the pom.xml :

     4.0.0
     com.soapuimaven
     soapuimaven
     jar
     1.0.0-SNAPSHOT
     soapuimaven
     http://maven.apache.org

     
        UTF-8
     

     
        
           commons-lang
           commons-lang
           2.4
           test
        

        
           junit
           junit
           4.5
           test
        

        
           commons-beanutils
           commons-beanutils
           1.7.0
           test
        
        
           commons-collections
           commons-collections
           3.2.1
           test
        
        
           log4j
           log4j
           1.2.8
           test
        
        
           commons-cli
           commons-cli
           1.0
           test
        
        
           saxon
           saxon-dom
           9.1.0.8j
           test
        
        
           javax.jms
           jms
           1.1
           test
        
        
           javax.mail
           mail
           1.4
           test
        
        
           org.mortbay.jetty
           servlet-api
           2.5-20081211
           test
        
        
           wsdl4j
           wsdl4j
           1.6.2
           test
        
        
           eviware
           soapui
           4.5.1
           test
        
        
           eviware
           soapui-xmlbeans
           4.5.1
           test
        
        
           xmlbeans
           xbean_xpath
           2.4.0
           test
        
        
           xmlbeans
           xbean
           fixed-2.4.0
           test
        
        
           org.apache.httpcomponents
           httpclient
           4.1.1
           test
        
        
           fife
           rsyntaxtextarea
           2.0.1
           test
        
        
            xerces
            xercesImpl
            2.9.1
            test
        
        
            bouncycastle
            bcprov-jdk15
            144
            test
        
        
             xmlunit
             xmlunit
             1.2
             test
        
        
             amf
             flex-messaging-common
             1.0
             test
        
        
             amf
             flex-messaging-core
             1.0
             test
        
          
        
             eviware
             soap-xmlbeans
             1.2
             test
        
        
             saxon
             saxon
             9.1.0.8j
             test
        
        
             jetty
             jetty
             6.1.26
             test
        

        
             jetty
             jetty-util
             6.1.26
             test
         

         
             org.apache.maven.plugins
             maven-surefire-report-plugin
             2.5
             maven-plugin
         
      

      
         
             
                 maven-antrun-plugin
                     
                            
                                test-reports
                                test
                                
                                    
                                         
                                            
                                                
                                                
                                             
                                             
                                             
                                         
                                    
                                
                                
                                    run
                                
                            
                         
             
         
       
      
           
                 eviware
                 http://www.soapui.org/repository/maven2
           
      



Execution:
Run following commands to execute test.

       mvn clean
       mvn install

Report:
Go to folder “target\surefire-reports” open “index.html” file.



No comments:

Post a Comment

Leave your comments, queries, suggestion I will try to provide solution