Re: [Dev] [DEV][APIM] writing automation tests for APIM
Hi, I have finished writing automated test cases for publisher and store except for secure end point configurations. I have updated the test plan doc and following are the pending issues. I have updated the test cases where UI tests needed. [1] https://wso2.org/jira/browse/APIMANAGER-2458 https://www.google.com/url?q=https://wso2.org/jira/browse/APIMANAGER-2458sa=Dusg=ALhdy2_v7zb3HCEWFKVt6hn3adcnkgVdSA [2] https://wso2.org/jira/browse/APIMANAGER-2124 [3] https://wso2.org/jira/browse/APIMANAGER-2835 https://www.google.com/url?q=https://wso2.org/jira/browse/APIMANAGER-2835sa=Dusg=ALhdy2-cXRekyqjYXj7SJIMNhQi0s_3p7A Thanks, On Tue, Sep 16, 2014 at 12:03 PM, Waruna Perera waru...@wso2.com wrote: Hi, I will close the duplicate issue. Thanks On Tue, Sep 16, 2014 at 11:49 AM, Nuwan Dias nuw...@wso2.com wrote: This is a duplicate of [1]? This has been fixed in 1.8.0 (RC packs). [1] - https://wso2.org/jira/browse/APIMANAGER-2765 Thanks, NuwanD. On Tue, Sep 16, 2014 at 11:11 AM, Waruna Perera waru...@wso2.com wrote: Hi, Issue logged for for *APIM does not return correct error when adding document with duplicate name to a API.* [1] https://wso2.org/jira/browse/APIMANAGER-2874 On Wed, Sep 10, 2014 at 10:51 PM, Sanjeewa Malalgoda sanje...@wso2.com wrote: Hi Waruna, In UI we first call host object isContextExist method and then validate it before add API. That is why you dont get this error in UI. AFAIR there is no rest API to check context existence. Its API developers responsibility to check this first. But still we need to have same check in add API method as well. So we might need to add this check in add API method(to work rest call properly). Thanks, sanjeewa. On Wed, Sep 10, 2014 at 2:11 AM, Waruna Perera waru...@wso2.com wrote: Hi, Issue logged in JIRA related to automation test case. [1] https://wso2.org/jira/browse/APIMANAGER-2835 On Thu, Sep 4, 2014 at 11:02 AM, Waruna Perera waru...@wso2.com wrote: Hi Sanjeewa, Noted. I will update the thread as we move forward about the API calls which we will think of useful to have. Thanks On Thu, Sep 4, 2014 at 10:47 AM, Sanjeewa Malalgoda sanje...@wso2.com wrote: Hi Waruna, On Wed, Sep 3, 2014 at 9:49 PM, Waruna Perera waru...@wso2.com wrote: Hi, Amalka and me started doing above $subject by following[1]. When following some of the test cases available we found that API calls in publisher[2] and store are limited. The search API functions are covered by calling host objects. I have few questions regarding that. Do we have a plan to provide other API calls in publisher and store? I assume here you are talking about rest APIs that we documented. For the moment most of required operations are exposed as rest APIs. But still there are missing parts. In such cases we can deploy simple jag file in the server and call to host object. If you looked at HostObjectTestCase, you will see how we tested host object operations that did not exposed as rest APIs. Please refer java test cases available in product. Do we need uniformity with test cases? (some via API calls and others with direct host object calls) IMO there is no such requirement. We cant test all scenarios in the same way. Important thing is cover use cases as much as possible. Thanks, sanjeewa. [1] https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AmcQWA48EWBddEdzVVZ4aDJTVTBOeV9fVkE0dU9KMWcusp [2] https://docs.wso2.com/display/AM170/Publisher+APIs -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/ http://sanjeewamalalgoda.blogspot.com/ -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/ http://sanjeewamalalgoda.blogspot.com/ -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing
Re: [Dev] [DEV][APIM] writing automation tests for APIM
This is a duplicate of [1]? This has been fixed in 1.8.0 (RC packs). [1] - https://wso2.org/jira/browse/APIMANAGER-2765 Thanks, NuwanD. On Tue, Sep 16, 2014 at 11:11 AM, Waruna Perera waru...@wso2.com wrote: Hi, Issue logged for for *APIM does not return correct error when adding document with duplicate name to a API.* [1] https://wso2.org/jira/browse/APIMANAGER-2874 On Wed, Sep 10, 2014 at 10:51 PM, Sanjeewa Malalgoda sanje...@wso2.com wrote: Hi Waruna, In UI we first call host object isContextExist method and then validate it before add API. That is why you dont get this error in UI. AFAIR there is no rest API to check context existence. Its API developers responsibility to check this first. But still we need to have same check in add API method as well. So we might need to add this check in add API method(to work rest call properly). Thanks, sanjeewa. On Wed, Sep 10, 2014 at 2:11 AM, Waruna Perera waru...@wso2.com wrote: Hi, Issue logged in JIRA related to automation test case. [1] https://wso2.org/jira/browse/APIMANAGER-2835 On Thu, Sep 4, 2014 at 11:02 AM, Waruna Perera waru...@wso2.com wrote: Hi Sanjeewa, Noted. I will update the thread as we move forward about the API calls which we will think of useful to have. Thanks On Thu, Sep 4, 2014 at 10:47 AM, Sanjeewa Malalgoda sanje...@wso2.com wrote: Hi Waruna, On Wed, Sep 3, 2014 at 9:49 PM, Waruna Perera waru...@wso2.com wrote: Hi, Amalka and me started doing above $subject by following[1]. When following some of the test cases available we found that API calls in publisher[2] and store are limited. The search API functions are covered by calling host objects. I have few questions regarding that. Do we have a plan to provide other API calls in publisher and store? I assume here you are talking about rest APIs that we documented. For the moment most of required operations are exposed as rest APIs. But still there are missing parts. In such cases we can deploy simple jag file in the server and call to host object. If you looked at HostObjectTestCase, you will see how we tested host object operations that did not exposed as rest APIs. Please refer java test cases available in product. Do we need uniformity with test cases? (some via API calls and others with direct host object calls) IMO there is no such requirement. We cant test all scenarios in the same way. Important thing is cover use cases as much as possible. Thanks, sanjeewa. [1] https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AmcQWA48EWBddEdzVVZ4aDJTVTBOeV9fVkE0dU9KMWcusp [2] https://docs.wso2.com/display/AM170/Publisher+APIs -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/ http://sanjeewamalalgoda.blogspot.com/ -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/ http://sanjeewamalalgoda.blogspot.com/ -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV][APIM] writing automation tests for APIM
Hi, I will close the duplicate issue. Thanks On Tue, Sep 16, 2014 at 11:49 AM, Nuwan Dias nuw...@wso2.com wrote: This is a duplicate of [1]? This has been fixed in 1.8.0 (RC packs). [1] - https://wso2.org/jira/browse/APIMANAGER-2765 Thanks, NuwanD. On Tue, Sep 16, 2014 at 11:11 AM, Waruna Perera waru...@wso2.com wrote: Hi, Issue logged for for *APIM does not return correct error when adding document with duplicate name to a API.* [1] https://wso2.org/jira/browse/APIMANAGER-2874 On Wed, Sep 10, 2014 at 10:51 PM, Sanjeewa Malalgoda sanje...@wso2.com wrote: Hi Waruna, In UI we first call host object isContextExist method and then validate it before add API. That is why you dont get this error in UI. AFAIR there is no rest API to check context existence. Its API developers responsibility to check this first. But still we need to have same check in add API method as well. So we might need to add this check in add API method(to work rest call properly). Thanks, sanjeewa. On Wed, Sep 10, 2014 at 2:11 AM, Waruna Perera waru...@wso2.com wrote: Hi, Issue logged in JIRA related to automation test case. [1] https://wso2.org/jira/browse/APIMANAGER-2835 On Thu, Sep 4, 2014 at 11:02 AM, Waruna Perera waru...@wso2.com wrote: Hi Sanjeewa, Noted. I will update the thread as we move forward about the API calls which we will think of useful to have. Thanks On Thu, Sep 4, 2014 at 10:47 AM, Sanjeewa Malalgoda sanje...@wso2.com wrote: Hi Waruna, On Wed, Sep 3, 2014 at 9:49 PM, Waruna Perera waru...@wso2.com wrote: Hi, Amalka and me started doing above $subject by following[1]. When following some of the test cases available we found that API calls in publisher[2] and store are limited. The search API functions are covered by calling host objects. I have few questions regarding that. Do we have a plan to provide other API calls in publisher and store? I assume here you are talking about rest APIs that we documented. For the moment most of required operations are exposed as rest APIs. But still there are missing parts. In such cases we can deploy simple jag file in the server and call to host object. If you looked at HostObjectTestCase, you will see how we tested host object operations that did not exposed as rest APIs. Please refer java test cases available in product. Do we need uniformity with test cases? (some via API calls and others with direct host object calls) IMO there is no such requirement. We cant test all scenarios in the same way. Important thing is cover use cases as much as possible. Thanks, sanjeewa. [1] https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AmcQWA48EWBddEdzVVZ4aDJTVTBOeV9fVkE0dU9KMWcusp [2] https://docs.wso2.com/display/AM170/Publisher+APIs -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/ http://sanjeewamalalgoda.blogspot.com/ -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/ http://sanjeewamalalgoda.blogspot.com/ -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Nuwan Dias Associate Tech Lead - WSO2, Inc. http://wso2.com email : nuw...@wso2.com Phone : +94 777 775 729 -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV][APIM] writing automation tests for APIM
Hi, Issue logged for for *APIM does not return correct error when adding document with duplicate name to a API.* [1] https://wso2.org/jira/browse/APIMANAGER-2874 On Wed, Sep 10, 2014 at 10:51 PM, Sanjeewa Malalgoda sanje...@wso2.com wrote: Hi Waruna, In UI we first call host object isContextExist method and then validate it before add API. That is why you dont get this error in UI. AFAIR there is no rest API to check context existence. Its API developers responsibility to check this first. But still we need to have same check in add API method as well. So we might need to add this check in add API method(to work rest call properly). Thanks, sanjeewa. On Wed, Sep 10, 2014 at 2:11 AM, Waruna Perera waru...@wso2.com wrote: Hi, Issue logged in JIRA related to automation test case. [1] https://wso2.org/jira/browse/APIMANAGER-2835 On Thu, Sep 4, 2014 at 11:02 AM, Waruna Perera waru...@wso2.com wrote: Hi Sanjeewa, Noted. I will update the thread as we move forward about the API calls which we will think of useful to have. Thanks On Thu, Sep 4, 2014 at 10:47 AM, Sanjeewa Malalgoda sanje...@wso2.com wrote: Hi Waruna, On Wed, Sep 3, 2014 at 9:49 PM, Waruna Perera waru...@wso2.com wrote: Hi, Amalka and me started doing above $subject by following[1]. When following some of the test cases available we found that API calls in publisher[2] and store are limited. The search API functions are covered by calling host objects. I have few questions regarding that. Do we have a plan to provide other API calls in publisher and store? I assume here you are talking about rest APIs that we documented. For the moment most of required operations are exposed as rest APIs. But still there are missing parts. In such cases we can deploy simple jag file in the server and call to host object. If you looked at HostObjectTestCase, you will see how we tested host object operations that did not exposed as rest APIs. Please refer java test cases available in product. Do we need uniformity with test cases? (some via API calls and others with direct host object calls) IMO there is no such requirement. We cant test all scenarios in the same way. Important thing is cover use cases as much as possible. Thanks, sanjeewa. [1] https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AmcQWA48EWBddEdzVVZ4aDJTVTBOeV9fVkE0dU9KMWcusp [2] https://docs.wso2.com/display/AM170/Publisher+APIs -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/ http://sanjeewamalalgoda.blogspot.com/ -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/ http://sanjeewamalalgoda.blogspot.com/ -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV][APIM] writing automation tests for APIM
Hi, Issue logged in JIRA related to automation test case. [1] https://wso2.org/jira/browse/APIMANAGER-2835 On Thu, Sep 4, 2014 at 11:02 AM, Waruna Perera waru...@wso2.com wrote: Hi Sanjeewa, Noted. I will update the thread as we move forward about the API calls which we will think of useful to have. Thanks On Thu, Sep 4, 2014 at 10:47 AM, Sanjeewa Malalgoda sanje...@wso2.com wrote: Hi Waruna, On Wed, Sep 3, 2014 at 9:49 PM, Waruna Perera waru...@wso2.com wrote: Hi, Amalka and me started doing above $subject by following[1]. When following some of the test cases available we found that API calls in publisher[2] and store are limited. The search API functions are covered by calling host objects. I have few questions regarding that. Do we have a plan to provide other API calls in publisher and store? I assume here you are talking about rest APIs that we documented. For the moment most of required operations are exposed as rest APIs. But still there are missing parts. In such cases we can deploy simple jag file in the server and call to host object. If you looked at HostObjectTestCase, you will see how we tested host object operations that did not exposed as rest APIs. Please refer java test cases available in product. Do we need uniformity with test cases? (some via API calls and others with direct host object calls) IMO there is no such requirement. We cant test all scenarios in the same way. Important thing is cover use cases as much as possible. Thanks, sanjeewa. [1] https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AmcQWA48EWBddEdzVVZ4aDJTVTBOeV9fVkE0dU9KMWcusp [2] https://docs.wso2.com/display/AM170/Publisher+APIs -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/ http://sanjeewamalalgoda.blogspot.com/ -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
[Dev] [DEV][APIM] writing automation tests for APIM
Hi, Amalka and me started doing above $subject by following[1]. When following some of the test cases available we found that API calls in publisher[2] and store are limited. The search API functions are covered by calling host objects. I have few questions regarding that. Do we have a plan to provide other API calls in publisher and store? Do we need uniformity with test cases? (some via API calls and others with direct host object calls) [1] https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AmcQWA48EWBddEdzVVZ4aDJTVTBOeV9fVkE0dU9KMWcusp [2] https://docs.wso2.com/display/AM170/Publisher+APIs -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV][APIM] writing automation tests for APIM
Hi Waruna, On Wed, Sep 3, 2014 at 9:49 PM, Waruna Perera waru...@wso2.com wrote: Hi, Amalka and me started doing above $subject by following[1]. When following some of the test cases available we found that API calls in publisher[2] and store are limited. The search API functions are covered by calling host objects. I have few questions regarding that. Do we have a plan to provide other API calls in publisher and store? I assume here you are talking about rest APIs that we documented. For the moment most of required operations are exposed as rest APIs. But still there are missing parts. In such cases we can deploy simple jag file in the server and call to host object. If you looked at HostObjectTestCase, you will see how we tested host object operations that did not exposed as rest APIs. Please refer java test cases available in product. Do we need uniformity with test cases? (some via API calls and others with direct host object calls) IMO there is no such requirement. We cant test all scenarios in the same way. Important thing is cover use cases as much as possible. Thanks, sanjeewa. [1] https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AmcQWA48EWBddEdzVVZ4aDJTVTBOeV9fVkE0dU9KMWcusp [2] https://docs.wso2.com/display/AM170/Publisher+APIs -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/ http://sanjeewamalalgoda.blogspot.com/ ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev
Re: [Dev] [DEV][APIM] writing automation tests for APIM
Hi Sanjeewa, Noted. I will update the thread as we move forward about the API calls which we will think of useful to have. Thanks On Thu, Sep 4, 2014 at 10:47 AM, Sanjeewa Malalgoda sanje...@wso2.com wrote: Hi Waruna, On Wed, Sep 3, 2014 at 9:49 PM, Waruna Perera waru...@wso2.com wrote: Hi, Amalka and me started doing above $subject by following[1]. When following some of the test cases available we found that API calls in publisher[2] and store are limited. The search API functions are covered by calling host objects. I have few questions regarding that. Do we have a plan to provide other API calls in publisher and store? I assume here you are talking about rest APIs that we documented. For the moment most of required operations are exposed as rest APIs. But still there are missing parts. In such cases we can deploy simple jag file in the server and call to host object. If you looked at HostObjectTestCase, you will see how we tested host object operations that did not exposed as rest APIs. Please refer java test cases available in product. Do we need uniformity with test cases? (some via API calls and others with direct host object calls) IMO there is no such requirement. We cant test all scenarios in the same way. Important thing is cover use cases as much as possible. Thanks, sanjeewa. [1] https://docs.google.com/a/wso2.com/spreadsheet/ccc?key=0AmcQWA48EWBddEdzVVZ4aDJTVTBOeV9fVkE0dU9KMWcusp [2] https://docs.wso2.com/display/AM170/Publisher+APIs -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. -- *Sanjeewa Malalgoda* WSO2 Inc. Mobile : +94713068779 http://sanjeewamalalgoda.blogspot.com/blog :http://sanjeewamalalgoda.blogspot.com/ http://sanjeewamalalgoda.blogspot.com/ -- Waruna Perera Senior Software Engineer - Test Automation Mobile: +94 77 3867037 WSO2, Inc.; http://wso2.com/ lean . enterprise . middlewear. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev