Re: [Dev] [AS] [Tests] Port offset change in test cases where offset values are hardcoded

2015-09-16 Thread Manuri Amaya Perera
Hi,

Thank you for the suggestions.

The property was added as follows.

eg:


localhost


9864
9544


101




On Thu, Sep 3, 2015 at 12:34 PM, Nuwan Wimalasekara  wrote:

> HI Supun,
>
>
> On Thu, Sep 3, 2015 at 12:29 PM, Supun Malinga  wrote:
>
>>
>>
>> On Thu, Sep 3, 2015 at 12:24 PM, Nuwan Wimalasekara 
>> wrote:
>>
>>> Hi Manuri,
>>> There are some test classes which start a new server with a port offset
>>> and those port configuration are kept in automation.xml and referred by a
>>> name.
>>>
>>
>> This is true Nuwan. But the concern is that in the test cases where we
>> use a offset. We have the offset hardcoded. Instead we need to read it from
>> the config file (automation.xml).
>> So what we thought is to put it as a property in the config of the
>> instances.
>> eg:
>> > nonBlockingTransportEnabled="false">
>> 
>> localhost
>> 
>> 
>> 9764
>> 9444
>> 
>> **
>> **
>> **
>> 
>>
> +1. This is better approach.  Then we can read the offset from the config
> property and set
>
> Thanks,
> Nuwanw
>
>>
>> thanks,
>>
>>
>>>
>>
>>> Ex: if the portOffset is 1, then the config is as bellow. Then the test
>>> class refer the post and hot config by referring the name
>>> "appServerInstance0002" and generate the server URLs.
>>>
>>> >> nonBlockingTransportEnabled="false">
>>> 
>>> localhost
>>> 
>>> 
>>> 9764
>>> 9444
>>> 
>>> 
>>>
>>> Now you have to increase the port offset in this classes to be 100 +
>>> portOffset and according to new port offset you have to change the
>>> configuration as well.
>>>
>>> >> nonBlockingTransportEnabled="false">
>>> 
>>> localhost
>>> 
>>> 
>>> 9864
>>> 9544
>>> 
>>> 
>>>
>>> Thanks,
>>> Nuwanw
>>>
>>> On Thu, Sep 3, 2015 at 12:07 PM, Manuri Amaya Perera 
>>> wrote:
>>>
 Adding Dev

 On Thu, Sep 3, 2015 at 11:50 AM, Manuri Amaya Perera 
 wrote:

> Hi,
>
> At the moment, in automation.xml in test modules, the -DportOffset
> parameter has been set to 100 and the port values in relevant instances
> also have been changed accordingly.
>
> But in the test cases where internally a server is set up, the port
> offset values are being hard coded. These values also need to be moved
> forward by 100. A configuration can be added to automation.xml which can 
> be
> read and used to do this.
>
> I'd like to discuss the best way to address this problem.
>
> Thank you.
>
> --
>
> *Manuri Amaya Perera*
>
> *Software Engineer*
>
> *WSO2 Inc.*
>
> *Blog: http://manuriamayaperera.blogspot.com
> *
>



 --

 *Manuri Amaya Perera*

 *Software Engineer*

 *WSO2 Inc.*

 *Blog: http://manuriamayaperera.blogspot.com
 *

>>>
>>>
>>>
>>> --
>>> Nuwan Wimalasekara
>>> Senior Software Engineer - Test Automation
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> phone: +94 71 668 4620
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Supun Malinga,
>>
>> Senior Software Engineer,
>> WSO2 Inc.
>> http://wso2.com
>> email: sup...@wso2.com 
>> mobile: +94 (0)71 56 91 321
>>
>
>
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>


-- 

*Manuri Amaya Perera*

*Software Engineer*

*WSO2 Inc.*

*Blog: http://manuriamayaperera.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] [Tests] Port offset change in test cases where offset values are hardcoded

2015-09-03 Thread Supun Malinga
On Thu, Sep 3, 2015 at 12:24 PM, Nuwan Wimalasekara  wrote:

> Hi Manuri,
> There are some test classes which start a new server with a port offset
> and those port configuration are kept in automation.xml and referred by a
> name.
>

This is true Nuwan. But the concern is that in the test cases where we use
a offset. We have the offset hardcoded. Instead we need to read it from the
config file (automation.xml).
So what we thought is to put it as a property in the config of the
instances.
eg:


localhost


9764
9444

**
**
**


thanks,


>

> Ex: if the portOffset is 1, then the config is as bellow. Then the test
> class refer the post and hot config by referring the name
> "appServerInstance0002" and generate the server URLs.
>
>  nonBlockingTransportEnabled="false">
> 
> localhost
> 
> 
> 9764
> 9444
> 
> 
>
> Now you have to increase the port offset in this classes to be 100 +
> portOffset and according to new port offset you have to change the
> configuration as well.
>
>  nonBlockingTransportEnabled="false">
> 
> localhost
> 
> 
> 9864
> 9544
> 
> 
>
> Thanks,
> Nuwanw
>
> On Thu, Sep 3, 2015 at 12:07 PM, Manuri Amaya Perera 
> wrote:
>
>> Adding Dev
>>
>> On Thu, Sep 3, 2015 at 11:50 AM, Manuri Amaya Perera 
>> wrote:
>>
>>> Hi,
>>>
>>> At the moment, in automation.xml in test modules, the -DportOffset
>>> parameter has been set to 100 and the port values in relevant instances
>>> also have been changed accordingly.
>>>
>>> But in the test cases where internally a server is set up, the port
>>> offset values are being hard coded. These values also need to be moved
>>> forward by 100. A configuration can be added to automation.xml which can be
>>> read and used to do this.
>>>
>>> I'd like to discuss the best way to address this problem.
>>>
>>> Thank you.
>>>
>>> --
>>>
>>> *Manuri Amaya Perera*
>>>
>>> *Software Engineer*
>>>
>>> *WSO2 Inc.*
>>>
>>> *Blog: http://manuriamayaperera.blogspot.com
>>> *
>>>
>>
>>
>>
>> --
>>
>> *Manuri Amaya Perera*
>>
>> *Software Engineer*
>>
>> *WSO2 Inc.*
>>
>> *Blog: http://manuriamayaperera.blogspot.com
>> *
>>
>
>
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>


-- 
Supun Malinga,

Senior Software Engineer,
WSO2 Inc.
http://wso2.com
email: sup...@wso2.com 
mobile: +94 (0)71 56 91 321
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] [Tests] Port offset change in test cases where offset values are hardcoded

2015-09-03 Thread Nuwan Wimalasekara
Hi Manuri,
There are some test classes which start a new server with a port offset and
those port configuration are kept in automation.xml and referred by a name.

Ex: if the portOffset is 1, then the config is as bellow. Then the test
class refer the post and hot config by referring the name
"appServerInstance0002" and generate the server URLs.



localhost


9764
9444



Now you have to increase the port offset in this classes to be 100 +
portOffset and according to new port offset you have to change the
configuration as well.



localhost


9864
9544



Thanks,
Nuwanw

On Thu, Sep 3, 2015 at 12:07 PM, Manuri Amaya Perera 
wrote:

> Adding Dev
>
> On Thu, Sep 3, 2015 at 11:50 AM, Manuri Amaya Perera 
> wrote:
>
>> Hi,
>>
>> At the moment, in automation.xml in test modules, the -DportOffset
>> parameter has been set to 100 and the port values in relevant instances
>> also have been changed accordingly.
>>
>> But in the test cases where internally a server is set up, the port
>> offset values are being hard coded. These values also need to be moved
>> forward by 100. A configuration can be added to automation.xml which can be
>> read and used to do this.
>>
>> I'd like to discuss the best way to address this problem.
>>
>> Thank you.
>>
>> --
>>
>> *Manuri Amaya Perera*
>>
>> *Software Engineer*
>>
>> *WSO2 Inc.*
>>
>> *Blog: http://manuriamayaperera.blogspot.com
>> *
>>
>
>
>
> --
>
> *Manuri Amaya Perera*
>
> *Software Engineer*
>
> *WSO2 Inc.*
>
> *Blog: http://manuriamayaperera.blogspot.com
> *
>



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


Re: [Dev] [AS] [Tests] Port offset change in test cases where offset values are hardcoded

2015-09-03 Thread Nuwan Wimalasekara
HI Supun,


On Thu, Sep 3, 2015 at 12:29 PM, Supun Malinga  wrote:

>
>
> On Thu, Sep 3, 2015 at 12:24 PM, Nuwan Wimalasekara 
> wrote:
>
>> Hi Manuri,
>> There are some test classes which start a new server with a port offset
>> and those port configuration are kept in automation.xml and referred by a
>> name.
>>
>
> This is true Nuwan. But the concern is that in the test cases where we use
> a offset. We have the offset hardcoded. Instead we need to read it from the
> config file (automation.xml).
> So what we thought is to put it as a property in the config of the
> instances.
> eg:
>  nonBlockingTransportEnabled="false">
> 
> localhost
> 
> 
> 9764
> 9444
> 
> **
> **
> **
> 
>
+1. This is better approach.  Then we can read the offset from the config
property and set

Thanks,
Nuwanw

>
> thanks,
>
>
>>
>
>> Ex: if the portOffset is 1, then the config is as bellow. Then the test
>> class refer the post and hot config by referring the name
>> "appServerInstance0002" and generate the server URLs.
>>
>> > nonBlockingTransportEnabled="false">
>> 
>> localhost
>> 
>> 
>> 9764
>> 9444
>> 
>> 
>>
>> Now you have to increase the port offset in this classes to be 100 +
>> portOffset and according to new port offset you have to change the
>> configuration as well.
>>
>> > nonBlockingTransportEnabled="false">
>> 
>> localhost
>> 
>> 
>> 9864
>> 9544
>> 
>> 
>>
>> Thanks,
>> Nuwanw
>>
>> On Thu, Sep 3, 2015 at 12:07 PM, Manuri Amaya Perera 
>> wrote:
>>
>>> Adding Dev
>>>
>>> On Thu, Sep 3, 2015 at 11:50 AM, Manuri Amaya Perera 
>>> wrote:
>>>
 Hi,

 At the moment, in automation.xml in test modules, the -DportOffset
 parameter has been set to 100 and the port values in relevant instances
 also have been changed accordingly.

 But in the test cases where internally a server is set up, the port
 offset values are being hard coded. These values also need to be moved
 forward by 100. A configuration can be added to automation.xml which can be
 read and used to do this.

 I'd like to discuss the best way to address this problem.

 Thank you.

 --

 *Manuri Amaya Perera*

 *Software Engineer*

 *WSO2 Inc.*

 *Blog: http://manuriamayaperera.blogspot.com
 *

>>>
>>>
>>>
>>> --
>>>
>>> *Manuri Amaya Perera*
>>>
>>> *Software Engineer*
>>>
>>> *WSO2 Inc.*
>>>
>>> *Blog: http://manuriamayaperera.blogspot.com
>>> *
>>>
>>
>>
>>
>> --
>> Nuwan Wimalasekara
>> Senior Software Engineer - Test Automation
>> WSO2, Inc.: http://wso2.com
>> lean. enterprise. middleware
>>
>> phone: +94 71 668 4620
>>
>>
>>
>>
>
>
> --
> Supun Malinga,
>
> Senior Software Engineer,
> WSO2 Inc.
> http://wso2.com
> email: sup...@wso2.com 
> mobile: +94 (0)71 56 91 321
>



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


Re: [Dev] [AS] [Tests] Port offset change in test cases where offset values are hardcoded

2015-09-03 Thread Manuri Amaya Perera
Adding Dev

On Thu, Sep 3, 2015 at 11:50 AM, Manuri Amaya Perera 
wrote:

> Hi,
>
> At the moment, in automation.xml in test modules, the -DportOffset
> parameter has been set to 100 and the port values in relevant instances
> also have been changed accordingly.
>
> But in the test cases where internally a server is set up, the port offset
> values are being hard coded. These values also need to be moved forward by
> 100. A configuration can be added to automation.xml which can be read and
> used to do this.
>
> I'd like to discuss the best way to address this problem.
>
> Thank you.
>
> --
>
> *Manuri Amaya Perera*
>
> *Software Engineer*
>
> *WSO2 Inc.*
>
> *Blog: http://manuriamayaperera.blogspot.com
> *
>



-- 

*Manuri Amaya Perera*

*Software Engineer*

*WSO2 Inc.*

*Blog: http://manuriamayaperera.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] [Tests] Port offset change in test cases where offset values are hardcoded

2015-09-03 Thread Manuri Amaya Perera
Hi Nuwan,

In this case shifting the values in automation.xml would suffice but where
offsets are hard coded we have to look for some other solution right?

On Thu, Sep 3, 2015 at 12:24 PM, Nuwan Wimalasekara  wrote:

> Hi Manuri,
> There are some test classes which start a new server with a port offset
> and those port configuration are kept in automation.xml and referred by a
> name.
>
> Ex: if the portOffset is 1, then the config is as bellow. Then the test
> class refer the post and hot config by referring the name
> "appServerInstance0002" and generate the server URLs.
>
>  nonBlockingTransportEnabled="false">
> 
> localhost
> 
> 
> 9764
> 9444
> 
> 
>
> Now you have to increase the port offset in this classes to be 100 +
> portOffset and according to new port offset you have to change the
> configuration as well.
>
>  nonBlockingTransportEnabled="false">
> 
> localhost
> 
> 
> 9864
> 9544
> 
> 
>
> Thanks,
> Nuwanw
>
> On Thu, Sep 3, 2015 at 12:07 PM, Manuri Amaya Perera 
> wrote:
>
>> Adding Dev
>>
>> On Thu, Sep 3, 2015 at 11:50 AM, Manuri Amaya Perera 
>> wrote:
>>
>>> Hi,
>>>
>>> At the moment, in automation.xml in test modules, the -DportOffset
>>> parameter has been set to 100 and the port values in relevant instances
>>> also have been changed accordingly.
>>>
>>> But in the test cases where internally a server is set up, the port
>>> offset values are being hard coded. These values also need to be moved
>>> forward by 100. A configuration can be added to automation.xml which can be
>>> read and used to do this.
>>>
>>> I'd like to discuss the best way to address this problem.
>>>
>>> Thank you.
>>>
>>> --
>>>
>>> *Manuri Amaya Perera*
>>>
>>> *Software Engineer*
>>>
>>> *WSO2 Inc.*
>>>
>>> *Blog: http://manuriamayaperera.blogspot.com
>>> *
>>>
>>
>>
>>
>> --
>>
>> *Manuri Amaya Perera*
>>
>> *Software Engineer*
>>
>> *WSO2 Inc.*
>>
>> *Blog: http://manuriamayaperera.blogspot.com
>> *
>>
>
>
>
> --
> Nuwan Wimalasekara
> Senior Software Engineer - Test Automation
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> phone: +94 71 668 4620
>
>
>
>


-- 

*Manuri Amaya Perera*

*Software Engineer*

*WSO2 Inc.*

*Blog: http://manuriamayaperera.blogspot.com
*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [AS] [Tests] Port offset change in test cases where offset values are hardcoded

2015-09-03 Thread KasunG Gajasinghe
Hi,

We can introduce a parameter, say, defaultPortOffset, in to the
automation.xml. This should be set to 100 in the case of AS. Then, the test
cases that need to spin up servers should set the port offset value as
"defaultPortOffset + X" where the X could range from 1-100.

On Thu, Sep 3, 2015 at 12:07 PM, Manuri Amaya Perera 
wrote:

> Adding Dev
>
> On Thu, Sep 3, 2015 at 11:50 AM, Manuri Amaya Perera 
> wrote:
>
>> Hi,
>>
>> At the moment, in automation.xml in test modules, the -DportOffset
>> parameter has been set to 100 and the port values in relevant instances
>> also have been changed accordingly.
>>
>> But in the test cases where internally a server is set up, the port
>> offset values are being hard coded. These values also need to be moved
>> forward by 100. A configuration can be added to automation.xml which can be
>> read and used to do this.
>>
>> I'd like to discuss the best way to address this problem.
>>
>> Thank you.
>>
>> --
>>
>> *Manuri Amaya Perera*
>>
>> *Software Engineer*
>>
>> *WSO2 Inc.*
>>
>> *Blog: http://manuriamayaperera.blogspot.com
>> *
>>
>
>
>
> --
>
> *Manuri Amaya Perera*
>
> *Software Engineer*
>
> *WSO2 Inc.*
>
> *Blog: http://manuriamayaperera.blogspot.com
> *
>



-- 

*Kasun Gajasinghe*Senior Software Engineer, WSO2 Inc.
email: kasung AT spamfree wso2.com
linked-in: http://lk.linkedin.com/in/gajasinghe
blog: http://kasunbg.org
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev