- design the product?
- hire programmers?
- decide which bugs to fix?
- allocate staff?
- set the schedule?
- fix problems in code?
- decide on raises?
- allocate training budgets?
- produce manuals?
- choose the development model?
- fire some programmers?
- control the budget?
- set the company's strategic direction?
Thursday, December 30, 2010
Are you doing software testing or quality assurance?
Monday, December 27, 2010
Are you testing or checking?
Checking Is Confirmation
Checking is something that we do with the motivation of confirming existing beliefs. Checking is a process ofconfirmation, verification, and validation. When we already believe something to be true, we verify our belief bychecking. We check when we’ve made a change to the code and we want to make sure that everything that worked before still works. When we have an assumption that’s important, we check to make sure the assumption holds. Excellent programmers do a lot of checking as they write and modify their code, creating automated routines that they run frequently to check to make sure that the code hasn’t broken. Checking is focused on making sure that the program doesn’t fail.
Testing Is Exploration and Learning
Testing is something that we do with the motivation of finding new information. Testing is a process of exploration, discovery, investigation, and learning. When we configure, operate, and observe a product with the intention of evaluating it, or with the intention of recognizing a problem that we hadn’t anticipated, we’re testing. We’re testing when we’re trying to find out about the extents and limitations of the product and its design, and when we’re largely driven by questions that haven’t been answered or even asked before. As James Bach and I say in our Rapid Software Testing classes, testing is focused on “learning sufficiently everything that matters about how the program works and about how it might not work.”
Tuesday, December 14, 2010
WSO2 Application Server - Run web applications and web services on the same server
At the main menu, you will find, Manage --> Web Application option. You can upload new web apps or view the existing web applications in there.
Click on Manage --> Web Applications --> Add
You will be directed to web app uploading screen where you can upload any war file.

Browse for a web application archive (war) in your file system and click on upload. You will be prompted with the confirmation message if the deployment is successful.
Step 4
Once the web app deployment is done, it will be listed in Running Web Applications page as shown below.

If you click on web application context in the web app list, you will be directed to web app dashboard as follows. You can carry out multiple operations on the deployed web app within this dashboard. For example, you can reload web app, expire all sessions etc..

Step 5
As I described at the beginning, you can deploy various kind of web services together with web applications using WSO2 Application Server. You will find Manage --> Services menu option at the left navigation pane in management console, there you will see Axis2 Servces, Jar Services, Spring Services and JAX-WS service deployment options as shown below.

Download WSO2 Application Server-4.0.0 today and try this out your self.
Sunday, November 28, 2010
QA testing in agile world - Attitude matters most!
- Understand your development team first. Study each engineer and adjust your way of acting (communication, management etc..) according to the team you are working on
- Do not act as a quality police. Everyone is responsible for quality. It is your task to guide the others NOT finding faults and complain
- Be as flexible as you can in all situations
- Be quick on everything - learn, design, implement, configure, deploy quickly and test fast
- Be innovative
- Identify highly risked features first and start hunting bugs
Finally;
- CREATE A VALUE as a tester for your organization and BUILD the CONFIDENCE among the team!
Thursday, November 25, 2010
Invoking secure web services using SOAPUI - part1

Click on Security link and Select "Enable Security" option. Then select, UserNameToken security scenario.

In the next screen, select admin user group and click on finish to apply the security policy for HelloService.
Step 2
We have configured server side security policy. If you look at the WSDL of HelloService (http://localhost:9763/services/HelloService?wsdl), you will notice that UserNameToken security policy is added to the service.
Now, we need to configure SOAPUI project to talk to HelloService with the required user credentials.
First, start SOAPUI and create a new project. Specify https://localhost:9443/services/HelloService?wsdl as the initial WSDL. Keep the other default settings.
You will see the following project structure.

Replace ? with an input value in the request editor and run the test. You will encounter a SOAPFault, Missing wsse:Security header in request, since we did not send security headers with the request.
Lets configure client side security now. In the Request Properties pane of SOAPUI project, you will find the following properties.
Username
Password
WSS-Password Type
WSS TimeToLive
Specify the following values for the above properties.
Username = admin
Password = admin
WSS-Password Type = PasswordText
WSS TimeToLive = 2000
Run the test. Have a look at the raw request view. You will see security header is added to the request.
Thats all! We will look at more advanced scenarios such as signing and encrypting messages with SOAPUI in future posts.

Saturday, November 13, 2010
Java bench - Simple and lightweight service load testing tool
Friday, September 24, 2010
How to call Oracle Stored Procedures from data services
In Data Sources screen, click on Add new data source link and specify a data source ID and select RDBMS as the data source type. Then select Oracle as the Database engine and enter the db info as follows.
Driver Class = oracle.jdbc.driver.OracleDriver
JDBC URL = jdbc:oracle:thin:sample/sample@10.100.1.10:1521/orcl
User Name = sample
Password = sample

Click on "Test Connection" to see whether you can connect to oracle server correctly. Then click on save. Now we have created a data source hence we can proceed through the wizard.
Click on Next to move to query definition page. Select Add New Query to create a new query for our data service.
Enter a query ID (ex:- employees) and select the data source we just created from the Data Source drop down.
We can specify our SQL statement in the SQL text area. We need to call the oracle stored procedure which has been created earlier. You can enter "call addEmployeeSP(?,?,?)" as the query to call oracle stored procedure. ? denotes the input parameters which should be passed to the stored procedure.

Next, click on Add new input mapping and add three new input parameters since our query accepts 3 different parameters.

After adding all 3 input parameters, the query will be looked as follows.

We can save the query now. Our stored procedure inserts employee records in to the table therefore it does not return anything.
Because of that, the output mappings are not required for the query.
In order to check whether the records are correctly added to the database, lets create another query, selectEmployees as shown in the following screen.

Now, we have created both queries. Lets add operations which are necessary to run these queries.
Click Next in the Queries screen to proceed through the wizard which will bring up Operations page. Click on Add New Operation link. Specify operation name, addEmployee and select Query ID, employees.

Similarly, add an operation for selectEmployee query and name it as selectAllEmployees.
Click on Finish to deploy the data service. Once it is deployed, the service will be shown in the service list. Click on Try this service link to test the service.
In there, you will find two operations, addEmployee and selectAllEmployees. First invoke addEmployee operation by specifying id, name and address.
id=6
name=bloguser
address=notown
Now, if you invoke selectAllEmployees operation, you will see that the employee table has been updated with a new record.

Thats all! Drop me a mail or post your question at wso2.org forum if you have any questions about WSO2 Data Services Server.

