How WSO2 TAF can be used to test WSO2 API 1.7 - wso2

We would like to leverage the WSO2 Test Automation Framework(TAF) to test APIs on WSO2 API 1.7
However since the WSO2 TAF is not a binary distribution and requires to be build from source the svn link available in the document points to the repository which has only one version of API Manager available which is 1.4(https://svn.wso2.org/repos/wso2/carbon/platform/trunk/products/apimgt)
The documentation is not quite straight forward when it comes to TAF, Would like to know if there is some other repository we should be looking at
to test API 1.7?
Can someone also comment on usage of WSO2 TAF for testing APIs created using API Mgmt. I am getting a feeling that the WSO2 TAF is purely meant for product testing only?

The svn location for the 1.7.0 is available at [1]. The integration tests on
[2].
The WSO2 Test Automation Framework is a maven based module which enable users to write tests using automation framework as a test engine and common utility provider which needs to write tests based on wso2 carbon products.
You can get a understanding of WSO2 Test automation framework in [3]. And you can get idea on common usage and basic steps to write a test can be get by [4], Test configuration and execution details can be found in [5].
Hope this will help you to setup a basic test suite using wso2 TAF
[1]. https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/apimgt/1.7.0/
[2].https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/products/apimgt/1.7.0/modules/integration/
[3]. http://wso2.com/library/articles/2014/03/platform-wide-test-automation-with-wso2-test-automation-framework/
[4]. http://wso2.com/library/articles/2014/06/introducing-automated-tests-for-wso2-products/
[5]. http://wso2.com/library/articles/2014/03/platform-test-automation-using-wso2-test-automation-framework/
Thank You,
Dharshana

Related

WSO2 Ballerina natively run into the Carbon server of the EI instance? Some doubts

I am pretty new in WSO2 evnironment and I have the following doubt.
I am working using WSO2 ESB\DSS on a WSO2 EI 6.1.1 environment.
Now I am pretty interested into Ballerina languange and I have the following doubt:
Ballernina natively run into the Carbon server of my EI instance? Or have I to install\configure something else?
Can I use Ballerina to develop API (at the moment I am using ESB to develop API but in some case I prefer use something more similar to a proper programming language instead write ESB flow).
From Ballerina can I easily call DSS service?
Ballerina is a programing language designed to solve integration problems. It has built in connectors and components to support common integration patterns.
It has own run time where you can just run ballerina services on its own. No need to run on top of Carbon or EI.
Yes, its designed to be integration simple, so you can write Endpoints easier a than a regular programing language. Since its a program language it will be more agile than any integration product with configurations.
Yes you can. Ballerina provides connectors invoke any service, so you can call DSS. On a separate note, you can write a data service from Ballerina itself without having to use DSS.

WSO2 API Manager Getting Start

This is regarding wso2 APM
Is there a getting started guide for those who wanted to start contributing to WSO2 API Manager.
Any feature request page where I can see community voted new features on which contribution is required ?
​
Thanks.
To get an understanding about the jaggery application structure in the API manager (The UI parts) you can read following tutorials
http://wso2.com/library/tutorials/2012/09/customizing-api-store-publisher-part1/
http://wso2.com/library/tutorials/2013/08/customizing-api-storepublisher-jaggery-applicationspart2/
this is the structure followed in api manager store, publisher and admin-dashboard jaggery application.
You can read http://wso2.com/library/tutorials/writing-custom-hostobject/ to see how the jaggery application is connected with the java code.
These will give you a basic understanding about the code base of the api manager.
Is there a getting started guide for those who wanted to start
contributing to WSO2 API Manager.
WSO2 API Manager is 100% open source API Management solution. You can find the component source code in github, component repo and product repo
Any feature request page where I can see community voted new features
on which contribution is required ? ​
You can find those information in the following mailing list
dev#wso2.org is a mailing list to discuss about all WSO2 products.

SOA Suite - How to automatically enable Web Service Rest support after composite deploy

I have a composite with a SOAP web service entry point running on SOA Suite. We will have a new client for that web service, but this client cannot speak SOAP, so we will have to publish that entry point on a REST endpoint. I know I can enable REST Support to the existing web service through EM console, but I would like to have this configuration enabled by default after deploy.
My research for ways to do that using a property or attribute on a configuration plan did not get useful informations.
Does anyone know how could I achieve that?
Thanks!
REST Support is formal part of SOA Suite 12c. Download and install that and then you can easily add a REST interface to a SOAP composite. Also, 12c now installs without RCU/DB, etc - just start the Integrated WLS domain in JDev and it builds itself and you are up and deploying in under 20 mins. And this may help.

wso2 product configuration & testing setup guide

I am novice to WSO2 platform.
We are in the process of evaluating WSO2 product suite for integration requirement with SAP via SAPJco.
After going through product documentation, I got to know that I would be using below products in WSO2
Carbon server (as this is base) - Ant Configuration, Apache Ant,
Maven
ESB (Data transformation)
Message Broker (for asynchronous communication) - In turn this needs
Active MQ & JMS
Developer studio (for developing mediation flow & for deploying run
time component)
I would be working on a POC for the above case study & would require quick start guide or a reference document to configure & setup my environment since there are four different products & would need to bring all under single umbrella.
-Thanks
This sample at [1], little closely assemble you requirement. You can refer the documentation for each product at WSO2 website, for ESB it's [2]. You can find the documentation for other products in the same place.
[1] - https://docs.wso2.com/display/DVS370/Retail+Banking+Sample
[2] - https://docs.wso2.com/display/ESB481/Getting+Started
Thanks,
Pushpalanka

WSO2 Stratos Live Services / APIs

currently I´m evaluating WSO2 Stratos LIVE as a public PaaS. I did much research but there are still some questions:
1.) Does WSO2 Stratos Live offer a "multi-tenancy-api" to make Java web applications multi-tenant-aware (something like the Google App Engine Namespace API)?
2.) Is the cartridge-based architecture available (like in WSO2 Stratos 2)?
3.) Are there official API documentations / code samples for all the cloud services? I just found blog posts and webinars. But an official api documentation and code samples would be very great (for example how to unse Identity Server for authentication in Java web applications).
4.) Based on WSO2 API Manager deployment on Stratos, I assume that the API manager is not available as cloud-service?
5.) Do I have hosting options on Stratos Live (e.g. Java Version, the country / Data Center where my app will be hosted)?
6.) Does exist a logs-api to access application logs from my application?
7.) Are there apis for data handling (for example Map Reduce, execution of cron jobs, CDN)?
8.) Do I have a local test environment? I know that there are IDE plugins for an easy deployment. But is it possible to test my app with all WSO2 Stratos Live cloud services local on my machine without connecting to the real services?
I know this is a lot but it would be more than helpful if the WSO2 professionals would help me to answer those questions. As I said, I did much research but those 8 questions are still open.
Thanks a lot and best regards
Ben
See the answers in-line.
1.) Does WSO2 Stratos Live offer a "multi-tenancy-api" to make Java web applications multi-tenant-aware (something like the Google App Engine Namespace API)?
Yes. Your web app can be multi-tenanted.
http://www.youtube.com/watch?v=_lEwm6VzAmo&noredirect=1
http://www.slideshare.net/afkham_azeez/building-a-multitenanted-cloudnative-appserver
2.) Is the cartridge-based architecture available (like in WSO2 Stratos 2)?
Not yet. But our plan is to make Stratos2.0 as the foundation of StratosLive. This will be done after the GA release of Stratos2.0 (it is now in beta stage)
3.) Are there official API documentations / code samples for all the cloud services? I just found blog posts and webinars. But an official api documentation and code samples would be very great (for example how to unse Identity Server for authentication in Java web applications).
All the documents and samples available for WSO2 products are valid for StratosLive. Reason is, we have deployed the very same product in the cloud. We are in the process of filling the documentation gap with regards to StratosLive at the moment.
4.) Based on WSO2 API Manager deployment on Stratos, I assume that the API manager is not available as cloud-service?
Not yet. It will be available in the future.
5.) Do I have hosting options on Stratos Live (e.g. Java Version, the country / Data Center where my app will be hosted)?
No. StratosLive uses shared instances to achieve multi-tenantcy (not like some other PaaSes which uses a JVM per tenant). Therefore, hosting options are not available.
6.) Does exist a logs-api to access application logs from my application?
Yes. We allow the tenants to view system logs and application logs. Unfortunately the API for log viewing is not documented yet.
http://sparkletechthoughts.blogspot.com/2012/09/how-distributed-logging-works-in-wso2.html
7.) Are there apis for data handling (for example Map Reduce, execution of cron jobs, CDN)?
Map reduce related tasks can be handled using toolboxes which can be deployed in WSO2 BAM (monitor.stratoslive.wso2.com). Please check the WSO2 BAM2 documentation for more info.
8.) Do I have a local test environment? I know that there are IDE plugins for an easy deployment. But is it possible to test my app with all WSO2 Stratos Live cloud services local on my machine without connecting to the real services?
You can download and use the Stratos local setup which can be found at http://wso2.com/cloud/stratos