The following method is provided to use the abort option

public void useAbortOnException(boolean isUse)

You need to switch to 0.8.0 core snapshot:

http://maven.kungfuters.org/content/repositories/snapshots/org/telluriumsource/tellurium-core/0.8.0-SNAPSHOT/tellurium-core-0.8.0-20101004.155111-32.jar

Example:

class GoogleDataDrivenTest  extends TelluriumDataDrivenTest{

    String data = """
    ##Data test for "Google Search"
    ##TEST | INPUT
    DoGoogleSearch | tellurium testing
    DoFeelingLuckySearch | aost groovy
    DoGoogleSearch | data driven testing"""

    public void testDataDriven() {

        includeModule org.telluriumsource.ddt.GoogleDataDrivenModule.class

        //load String
        useData data

        connectSeleniumServer()

        useAbortOnException(true)

        //read each line and run the test script until the end of the file
        stepToEnd()

        //close file
        closeData()
    }
}

Hope this helps.

Thanks,

Jian


On Mon, Oct 4, 2010 at 9:27 AM, Jian Fang <[email protected]> wrote:

> Right now, Tellurium does not support that. But it is pretty easy to add a
> flag to indicate
> whether to abort the tests when error happens. Will add that to 0.8.0
> snapshot and let you know
> soon.
>
> Thanks,
>
> Jian
>
>
> On Mon, Oct 4, 2010 at 8:54 AM, yca <[email protected]> wrote:
>
>> Hello,
>>
>> I have a request from one of my teams: how to abort the Data Driven
>> Test execution when one test (one line in the data driven test),
>> fails?
>>
>> With an xml output that could contain something like:
>>
>>  <Total>5</Total>
>>  <Succeeded>2</Succeeded>
>>  <Failed>1</Failed>
>>
>> meaning:
>>
>>  Skipped>2</Skipped>
>>
>> Please note that they want this behavior for all their DDT (and not
>> for 'some' DDT).
>>
>> Thanks a lot for your help and, btw, for your very nice tool.
>>
>> Yves.
>>
>> --
>> 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]<tellurium-users%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/tellurium-users?hl=en.
>>
>>
>

-- 
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