Hi Tharindu,

On Tue, Mar 10, 2015 at 2:50 PM, Tharindu Dharmarathna <[email protected]>
wrote:

> Hi Dimuthu,Iqbal,
>
> I tried this  two codes given by both of you . But that codes does not
> consist giving seperate configurations to the individual servers.
>
> *Test Case Scenario To do*
>
> 1. Run 4 servers with different api-manager configurations and different
> port offsets.
> 2. During the test cases have to stop servers individually. and do the
> tests.
>

Do you want to setup distributed APIM setup with four nodes ? we don't
recommend to start four server in the same host. In Jenkins build
environment this would cases intermittent problems due to resource
consumption.

Can you elaborate more about the scenario you are going to test. If it is
fail over scenario, then you can use ServerAdmin API to shut down the
instances ( Not applicable to workers) but stating the same instance again
would not be possible (if it is remote)

Correct way to achieve this is using a configuration management tool (such
as puppet) to setup the nodes and then execute tests. We have done a
project on deployment automation which is currently on hold.


> Since This have to do as a UI test Is there any workaround to do this ?
>

You can combine backend and UI tests together.

Thanks,
Krishantha.


> Thanks and Regards
>
> Tharindu
>
>
> On Wed, Feb 4, 2015 at 5:12 PM, Tharindu Dharmarathna <[email protected]>
> wrote:
>
>> Hi dimuthu,iqbal,
>>
>> Thanks for examples I'll look into this.
>>
>> Regards
>> On Feb 4, 2015 4:20 PM, "Irham Iqbal" <[email protected]> wrote:
>>
>>> Hi Tharindu,
>>>
>>> You can use MultipleServersManager to start multiple servers and 
>>> ServerConfigurationManager
>>> to load configurations using test framework as shown in example[1]
>>>
>>> [1]
>>> https://github.com/wso2/product-as/blob/master/modules/integration/tests-integration/tests/src/test/java/org/wso2/appserver/integration/tests/ciphertool/H2DBPasswordEncryptionTestCase.java
>>>
>>> Thanks,
>>> Iqbal
>>>
>>> On Wed, Feb 4, 2015 at 3:54 PM, Dimuthu De Lanerolle <[email protected]>
>>> wrote:
>>>
>>>> Hi Tharindu,
>>>>
>>>> You can follow [1] as a guide.
>>>>
>>>> [1]
>>>> https://github.com/wso2/product-apim/blob/master/modules/integration/tests-integration/tests-scenario/src/test/java/org/wso2/carbon/am/tests/sample/RefreshTokenTestCase.java
>>>>
>>>> Regards
>>>>
>>>> On Wed, Feb 4, 2015 at 12:30 PM, Tharindu Dharmarathna <
>>>> [email protected]> wrote:
>>>>
>>>>> Hi all,
>>>>> I have to do $subject with  different port-offsets and different
>>>>> api-manager configurations. I have read [1] to get reference . Is there 
>>>>> any
>>>>> way to load api-manager.xml file into servers except port offseting ? .
>>>>>
>>>>> [1]. https://docs.wso2.com/display/TA430/Starting+Multiple+Servers
>>>>>
>>>>>
>>>>>
>>>>> *Thanks and Regards*
>>>>>
>>>>>
>>>>> *Tharindu Dharmarathna*Associate Software Engineer
>>>>> WSO2 Inc.; http://wso2.com
>>>>> lean.enterprise.middleware
>>>>>
>>>>> mobile: *+94779109091 <%2B94779109091>*
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Dimuthu De Lanerolle
>>>> Software Engineer
>>>> WSO2 Inc.
>>>> lean . enterprise . middlewear.
>>>> http://wso2.com/
>>>> Tel. : +94 11 2145345  Fax : +94 11 2145300  email : [email protected]
>>>>
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> [email protected]
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Irham Iqbal
>>> Software Engineer - Test Automation
>>>  WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>> phone: +94 777888452
>>>
>>
>
>
> --
>
> *Tharindu Dharmarathna*Associate Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94779109091 <%2B94779109091>*
>
> _______________________________________________
> Dev mailing list
> [email protected]
> 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 . middlewear.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to