Thanks Jian, this one was really helpful. I am able to run data driven 
testcases using maven.


Thanks,

Renuka Kale

Desk :  +91 20 6641 6341
Cell    :  +91 9822824443



Jian Fang <[email protected]> 
Sent by: [email protected]
07/30/2009 12:23 PM
Please respond to
[email protected]


To
[email protected]

cc


Subject
Re: Tellurium - Data Driven Testcases using Maven





 

Here,

http://code.google.com/p/aost/wiki/TelluriumTestProjectMavenSamplePom

Also included in the user guide pdf file. I really suggest you read 
through the user guide if you have time.

If you use Tellurium Maven archetypes to create you tellurium project, the 
pom is automatically
generated for you. But, of course, you need to customize it a bit. For 
example, to include Groovy
test file suffix  in the surefire plugin in your case.

Thanks,

Jian

On Thu, Jul 30, 2009 at 2:44 AM, <[email protected]> wrote:

Hi Jian, 

I am using Maven 2.0.9. 
The pom which I am using is as follows : 

<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="
http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd
"> 

    <modelVersion>4.0.0</modelVersion> 

    <groupId>com.company</groupId> 
    <artifactId>project</artifactId> 
    <name>Example Project</name> 
    <version>1.0</version> 

    <dependencies> 
        <dependency> 
            <groupId>org.codehaus.groovy.maven.runtime</groupId> 
            <artifactId>gmaven-runtime-1.6</artifactId> 
            <version>1.0</version> 
        </dependency> 
        
        <dependency> 
            <groupId>junit</groupId> 
            <artifactId>junit</artifactId> 
            <version>3.8.1</version> 
            <scope>test</scope> 
        </dependency> 
    </dependencies> 

    <build> 
        <plugins> 
            <plugin> 
                <groupId>org.codehaus.groovy.maven</groupId> 
                <artifactId>gmaven-plugin</artifactId> 
                <version>1.0</version> 
                <executions> 
                    <execution> 
                        <goals> 
                            <goal>generateStubs</goal> 
                            <goal>compile</goal> 
                            <goal>generateTestStubs</goal> 
                            <goal>testCompile</goal> 
                        </goals> 
                    </execution> 
                </executions> 
            </plugin> 
        </plugins> 
    </build> 
</project> 

Can you provide me the exact modified pom file? I tried adding your 
plugin, but it is throwing syntax error. 

Thanks in Advance,

Renuka Kale

Desk :  +91 20 6641 6341
Cell    :  +91 9822824443 


Jian Fang <[email protected]> 
Sent by: [email protected] 
07/30/2009 11:43 AM 


Please respond to
[email protected]


To
[email protected] 

cc


Subject
Re: Tellurium - Data Driven Testcases using Maven 







  

Hi Renuka,

Groovy Test case extends JUnit test case and thus, it is the same as JUnit 
test case.
To run Groovy test case, you need to specify maven-surefire-plugin to pick 
up which
test files. For example, in your POM, you can have

            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <includes>
                        <include>**/*_UT.groovy</include>
                        <include>**/*TestCase.groovy</include>
                    </includes>
                </configuration>
            </plugin>

Please let us know if this works for you.

Thanks,

Jian

On Wed, Jul 29, 2009 at 9:57 AM, <[email protected]> wrote: 

Hi, 

I need help for executing Testcases that deal with Data Driven testing 
using Maven. 

Basically the Module file  and Test Case file in case of Data Driven 
testing, is written in Groovy. I do not have any idea of running Groovy 
testcases using Maven. 
I can understand that when we do not use Data Driven Testing, we can 
execute JUnit Testcases. But I am interested in executing Data Driven 
Groovy test cases. 

Do we have any example link? 

Thanks in Advance,

Renuka Kale

Desk :  +91 20 6641 6341
Cell    :  +91 9822824443 





To:        [email protected] 
cc:         
From:        [email protected] 

**********************************************************************
This e-mail transmission and any attachments that accompany it may 
contain information that is privileged, confidential or otherwise 
exempt from disclosure under applicable law and is intended solely for
the use of the individual(s) to whom it was intended to be addressed.
If you have received this e-mail by mistake, or you are not the
intended recipient, any disclosure, dissemination, distribution, 
copying or other use or retention of this communication or its 
substance is prohibited.  If you have received this communication in
error, please immediately reply to the author via e-mail that you 
received this message by mistake and also permanently delete the 
original and all copies of this e-mail and any attachments from your
computer. Thank you.
**********************************************************************









To:     [email protected]
cc:      
From:   [email protected]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to