Re: [Dev] [Integration Tests] Running test cases one by one

2015-06-29 Thread Krishantha Samaraweera
You need to include all testNG listeners in command line. Please refer
original TestNG documentation [1] and search for -listener

Thanks,
Krishantha.

[1]http://testng.org/doc/documentation-main.html

On Tue, Jun 30, 2015 at 10:29 AM, Nirmal Fernando  wrote:

> When I use -Dtest, test case failed since the Carbon server isn't started
> up. How to fix it please?
>
> On Tue, Jun 30, 2015 at 10:18 AM, Mahesh Chinthaka 
> wrote:
>
>> Hi Nuwan,
>> Thats exactly  I wanted. Thank you.
>>
>> On Mon, Jun 29, 2015 at 6:49 PM, Nuwan Wimalasekara 
>> wrote:
>>
>>> Hi Mahesh,
>>>
>>> You can use -Dtest parameter to define the test classes which need to
>>> run.
>>>
>>> mvn clean install  -Dtest=TestClassName
>>>
>>> Thanks,
>>> Nuwanw
>>>
>>> On Mon, Jun 29, 2015 at 6:13 PM, Mahesh Chinthaka 
>>> wrote:
>>>
 Hi all,

 Suppose I have declared some test cases in testng.xml file , is there a
 way that I could run one by one with each time i run mvn clean install.

 At the moment what we do is comment out rest of the test cases leaving
 required one enabled. Then run mvn clean install. Repeat the same for all
 the cases.

 Is there an another way to do without commenting out test cases in
 testng.xnl file ?  May be giving a parameter or something.

 mvn clean install -D



 thanks.

 --
 *Mahesh Chinthaka Vidanagama* | Software Engineer
 WSO2, Inc | lean. enterprise. middleware.
 #20, Palm Grove, Colombo 03, Sri Lanka
 Mobile: +94 71 63 63 083 | Work: +94 112 145 345
 Email: mahe...@wso2.com | Web: www.wso2.com

 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev


>>>
>>>
>>> --
>>> Nuwan Wimalasekara
>>> Senior Software Engineer - Test Automation
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> phone: +94 71 668 4620
>>>
>>>
>>>
>>>
>>
>>
>> --
>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>> Email: mahe...@wso2.com | Web: www.wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
> Thanks & regards,
> Nirmal
>
> Associate Technical Lead - Data Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Krishantha Samaraweera
Senior Technical Lead - Test Automation
Mobile: +94 77 7759918
WSO2, Inc.; http://wso2.com/
lean . enterprise . middleware.
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Integration Tests] Running test cases one by one

2015-06-29 Thread Nirmal Fernando
When I use -Dtest, test case failed since the Carbon server isn't started
up. How to fix it please?

On Tue, Jun 30, 2015 at 10:18 AM, Mahesh Chinthaka  wrote:

> Hi Nuwan,
> Thats exactly  I wanted. Thank you.
>
> On Mon, Jun 29, 2015 at 6:49 PM, Nuwan Wimalasekara 
> wrote:
>
>> Hi Mahesh,
>>
>> You can use -Dtest parameter to define the test classes which need to
>> run.
>>
>> mvn clean install  -Dtest=TestClassName
>>
>> Thanks,
>> Nuwanw
>>
>> On Mon, Jun 29, 2015 at 6:13 PM, Mahesh Chinthaka 
>> wrote:
>>
>>> Hi all,
>>>
>>> Suppose I have declared some test cases in testng.xml file , is there a
>>> way that I could run one by one with each time i run mvn clean install.
>>>
>>> At the moment what we do is comment out rest of the test cases leaving
>>> required one enabled. Then run mvn clean install. Repeat the same for all
>>> the cases.
>>>
>>> Is there an another way to do without commenting out test cases in
>>> testng.xnl file ?  May be giving a parameter or something.
>>>
>>> mvn clean install -D
>>>
>>>
>>>
>>> thanks.
>>>
>>> --
>>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>>> WSO2, Inc | lean. enterprise. middleware.
>>> #20, Palm Grove, Colombo 03, Sri Lanka
>>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>>> Email: mahe...@wso2.com | Web: www.wso2.com
>>>
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Nuwan Wimalasekara
>> Senior Software Engineer - Test Automation
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> phone: +94 71 668 4620
>>
>>
>>
>>
>
>
> --
> *Mahesh Chinthaka Vidanagama* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
> Email: mahe...@wso2.com | Web: www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Thanks & regards,
Nirmal

Associate Technical Lead - Data Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Integration Tests] Running test cases one by one

2015-06-29 Thread Mahesh Chinthaka
Hi Nuwan,
Thats exactly  I wanted. Thank you.

On Mon, Jun 29, 2015 at 6:49 PM, Nuwan Wimalasekara  wrote:

> Hi Mahesh,
>
> You can use -Dtest parameter to define the test classes which need to run.
>
> mvn clean install  -Dtest=TestClassName
>
> Thanks,
> Nuwanw
>
> On Mon, Jun 29, 2015 at 6:13 PM, Mahesh Chinthaka 
> wrote:
>
>> Hi all,
>>
>> Suppose I have declared some test cases in testng.xml file , is there a
>> way that I could run one by one with each time i run mvn clean install.
>>
>> At the moment what we do is comment out rest of the test cases leaving
>> required one enabled. Then run mvn clean install. Repeat the same for all
>> the cases.
>>
>> Is there an another way to do without commenting out test cases in
>> testng.xnl file ?  May be giving a parameter or something.
>>
>> mvn clean install -D
>>
>>
>>
>> thanks.
>>
>> --
>> *Mahesh Chinthaka Vidanagama* | Software Engineer
>> WSO2, Inc | lean. enterprise. middleware.
>> #20, Palm Grove, Colombo 03, Sri Lanka
>> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
>> Email: mahe...@wso2.com | Web: www.wso2.com
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>


-- 
*Mahesh Chinthaka Vidanagama* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 63 63 083 | Work: +94 112 145 345
Email: mahe...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [Integration Tests] Running test cases one by one

2015-06-29 Thread Nuwan Wimalasekara
Hi Mahesh,

You can use -Dtest parameter to define the test classes which need to run.

mvn clean install  -Dtest=TestClassName

Thanks,
Nuwanw

On Mon, Jun 29, 2015 at 6:13 PM, Mahesh Chinthaka  wrote:

> Hi all,
>
> Suppose I have declared some test cases in testng.xml file , is there a
> way that I could run one by one with each time i run mvn clean install.
>
> At the moment what we do is comment out rest of the test cases leaving
> required one enabled. Then run mvn clean install. Repeat the same for all
> the cases.
>
> Is there an another way to do without commenting out test cases in
> testng.xnl file ?  May be giving a parameter or something.
>
> mvn clean install -D
>
>
>
> thanks.
>
> --
> *Mahesh Chinthaka Vidanagama* | Software Engineer
> WSO2, Inc | lean. enterprise. middleware.
> #20, Palm Grove, Colombo 03, Sri Lanka
> Mobile: +94 71 63 63 083 | Work: +94 112 145 345
> Email: mahe...@wso2.com | Web: www.wso2.com
>
> ___
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Nuwan Wimalasekara
Senior Software Engineer - Test Automation
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

phone: +94 71 668 4620
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [Integration Tests] Running test cases one by one

2015-06-29 Thread Mahesh Chinthaka
Hi all,

Suppose I have declared some test cases in testng.xml file , is there a way
that I could run one by one with each time i run mvn clean install.

At the moment what we do is comment out rest of the test cases leaving
required one enabled. Then run mvn clean install. Repeat the same for all
the cases.

Is there an another way to do without commenting out test cases in
testng.xnl file ?  May be giving a parameter or something.

mvn clean install -D



thanks.

-- 
*Mahesh Chinthaka Vidanagama* | Software Engineer
WSO2, Inc | lean. enterprise. middleware.
#20, Palm Grove, Colombo 03, Sri Lanka
Mobile: +94 71 63 63 083 | Work: +94 112 145 345
Email: mahe...@wso2.com | Web: www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev