Anda di halaman 1dari 66

SOFTWARE TESTING

Introduction
Software testing is a process of identifying (catching) defects. It is a iterative process of both validating functionality, and more importantly, attempting to break the software. The iterative process of software testing consists of :

Designing tests Executing tests Identifying problems Fixing problems

The objective of software testing is to find and fix problems to improve quality. Software testing typically represents 40% of a software development budget.

Testing methods The box approach

S/W Testing

White Box Testing or Unit Testing Grey Box Testing

Black Box Testing or Functional Testing

White Box Testing:


This testing is based on knowledge of the internal logic of an applications code. Also known as Glass box testing. Internal software and code logic should be known for this type of testing. Tests are based on coverage of code statements, branches, paths, conditions. Types of white box testing The following types of white box testing exist: API testing (application programming interface) : Testing of the application using public and private APIs

Code coverage : Creating tests to satisfy some criteria of code coverage (e.g., the test designer can create tests to cause all statements in the program to be executed at least once) Fault injection methods : Improving the coverage of a test by introducing faults to test code paths Mutation testing methods Static testing - White box testing includes all static testing

Test coverage White box testing methods can also be used to evaluate the completeness of a test suite that was created with black box testing methods. This allows the software team to examine parts of a system that are rarely tested and ensures that the most important function points have been tested. Two common forms of code coverage are: Function coverage, which reports on functions executed Statement coverage, which reports on the number of lines executed to complete the test

Black Box Testing


Internal system design is not considered in this type of testing. Tests are based on requirements and functionality.

Grey Box Testing


Grey Box Testing involves having knowledge of internal data structures and algorithms for purposes of designing the test cases, but testing at the user, or black-box level.

Testing levels
Unit Testing
Testing of individual software components or modules. Typically done by the programmer and not by testers, as it requires detailed knowledge of the internal program design and code & may require developing test driver modules or test harnesses.

Functional Testing
This type of testing ignores the internal parts and focus on whether the output is as per requirement or not. Black-box type testing geared to functional requirements of an application.

Integration Testing
Testing of integrated modules to verify combined functionality after integration. Modules are typically code modules, individual applications, client and server applications on a network, etc. This type of testing is especially relevant to client/server and distributed systems.

System Testing
Entire system is tested as per the requirements. Black-box type testing that is based on overall requirements specifications, covers all combined parts of a system.

Regression Testing
Testing the application as a whole for the modification in any module or functionality. Automation tools are used for these testing types as it is difficult to typically cover all the system in regression testing.

Acceptance Testing
Normally, this type of testing is done to verify if system meets the customer specified requirements. User or customers do this testing to determine whether to accept application.

Performance Testing
Term often used interchangeably with stress and load testing. To check whether system meets performance requirements. Used different performance and load tools to do this.

Load Testing
It's a performance testing to check system behavior under load. Testing an application under heavy loads, such as testing of a web site under a range of loads to determine at what point the systems response time degrades or fails.

Usability Testing
User-friendliness check. Application flow is tested. Proper help is documented whenever the user is stuck at any point which enables a new user to understand the application easily. Basically, system navigation is checked in this testing.

Security Testing
Can the system be penetrated by any hacking method? This is testing how well the system protects against unauthorized internal or external access. Checked if the system database is safe from external attacks.

Alpha Testing
In house virtual user environment can be created for this type of testing. Testing is done at the end of development. Minor design changes may be made as a result of such testing.

Beta Testing
Testing typically done by end-users or others. Final testing before releasing application for commercial purposes.

Methods of Software Testing


There are two basic methods of performing software testing: 1. Manual testing 2. Automated testing

Manual Software Testing


As the name would imply, manual software testing is the process of an individual or individuals manually testing the software. This can take the form of navigating user interfaces, submitting information, or even trying to hack the software or underlying database. As one might presume, manual software testing is labor-intensive and slow. There are some things for which manual software testing is appropriate, including: User interface or usability testing Exploratory/ad hoc testing (where testers do not follow a 'script', but rather testers 'explore' the application and use their instincts to find bugs) Testing areas of the application which experience a lot of change. User acceptance testing (often, this can also be automated)

The time commitment involved with manual software testing is one of its most significant drawbacks. The time needed to fully test the system will typically range from weeks to months. Variability of results depending on who is performing the tests can also be a problem. For these reasons, many companies look to automation as a means of accelerating the software testing process while minimizing the variability of results.

Automated Software Testing


Automated software testing is the process of creating test scripts that can then be run automatically, repetitively, and through many iterations. Properly done, automated software testing can help to minimize the variability of results, speed up the testing process, increase test coverage (the number of different things tested), and ultimately provide greater confidence in the quality of the software being tested. There are, however, some things for which automated software testing is not appropriate. These include: End user usability testing is not typically a good candidate for automated testing. Tests which will not be run more than a couple of times are typically not a good candidate for automated tasting, since the payoff of in test automation comes after many test executions. Tests for areas of the application which experience a lot of change are also not a good candidate for automation since this can lead to substantial maintenance of test automation scripts. Such areas of the application may be more effectively tested manually.

It is important to note that test automation is software, and just like the software you are building for internal or external customers, it must be well-architected. A good test automation architecture, such as a keyword-driven testing framework, will reduce the overall cost of ownership of your test automation by minimizing maintenance expense and increasing the number of automated tests, allowing your organization to run more tests (and achieve higher quality) for the same investment of time and money. Different Automation Testing Tools : Functional automation tools: 1. Winrunner (from mercury) 2. Quick test professional (from mercury) 3. Silk test (from seague) 4. Rational robot (from rational) Load testing tools: 1. Load runner (from mercury) 2. Silk performer (from seague) 3. Rational performance tester (from rational) 4. Wapt (web application test, from Softlogica) Test management tools: 1. Test Director (from Mercury) 2. Quality center (from Mercury) 3. Test Manager (from Rational) 4. Bugzilla Test Runner 5. Salome-TMF 6. RTH (Open source)

Test Scenarios
Test scenarios are used to tell the test case controller which test cases to process and how to process them. The scenarios are stored in a scenario file. The file may contain one or more scenarios, and they may be cross-referenced. The file is written is a simple, but powerful, scenario language.

The scenario language is used to define the scenarios. Each scenario consists of a scenario name, the first word in a scenario, that may be followed by scenario elements. These elements may be simple elements or directives. Comments may also be included to describe the test scenarios and their purpose.

Test Cases:
Testing the product looking at s/w requirement specification will not give all possible test value, i.e., testing is not consistent. Therefore we need to write all testing values.

Why we write test case? 1. 2. 3. 4. 5. To have better test coverage. To have consisting in test execution To avoid training every new engineers on the product. To make the job process dependent and not person dependent. All possible ways of testing the feature will be captured, so that test engineer need not remember the test scenarios.

Test case execution: Executing the test according to test cases, using or seeing the test cases, testing the feature is called test case execution. Format of writing test case: Test case Name: Requirement No.: Module Name: Test Data: Pre Condition: Test case type: Severity: Brief Description:

Step No. 1 2

Action (Detailed Description)

Input

Expected Result

Actual Result

Status Comments

Enter valid user name & password

UN=abc123 Home page Pwd=xyz12 should be displayed

3 4 . . .

Author: Received by: Approved by: Last Modification date:

SCENARIOS

Scenarios for Flight Reservation


1.Scenario to Login Open the Flight application Enter a name in the Agent Name field Enter mercury as the password(Click 'help' for more details) Click the OK button to Login Result: You have successfully logged in. 2.Scenario to insert a new order Enter a valid departure date in the format mm/dd/yy Select a city from the Fly From drop-down box Select a valid destination in the Fly To drop-down box Click on the Flights... button to check the flights available based off the previous entries Enter a name in the Name field Specify the Flight class and the total number of tickets Click the Insert Order button Result: You have successfully inserted a new order 3. Scenario for open order Click on shortcut button to open an existing order. In open order window, select & enter the required fields. Click OK. Search result will be displayed, select the appropriate entry and click OK. Result: open order is done. 3.Scenario to update an order Click the open order icon on the main page of the Flight application Enter a valid customer name or flight date or order number Click on the OK button and select the appropriate entry Make the necessary changes and click the Update Order button Result: You have successfully updated the order.

4.Scenario to delete an order Click the open order icon on the main page of the Flight application Enter a valid customer name or flight date or order number Click on the OK button and select the appropriate entry Click the Delete Order button Result: You have successfully deleted the order.

6. Scenario for display graph Click the graph icon. Result: Graph window should be displayed. 7. Scenario for display report Click the report icon. Result: Report table should be displayed.

Scenarios for ActiTIME


1.Scenario to create a new user account -Login(as admin or someone with privileges) -Select the Users tab>Create New User -Enter the desired username,password and contact information(Note that fields with * are mandatory) -Click the Create User button -Logout Result: You have successfully created a new user account

2.Scenario to create billing types -Login -Select Settings tab>Billing Types -Click the Create New Billing Type button -Enter a valid name and type for the new bill under the appropriate field -Click the Create New Billing Type button Result: You have successfully created a new billing type.

3.Scenario to create a new task -Login -Select the Tasks tab -Select Create New Tasks -Select the desired customer name and project -Enter a name for the new task and deadline(if necessary) -Select a billing type -Click the Create Task button Result: You have successfully created a new task.

4.Scenario to enter Time-Track for the current week -Login -Select the Time-Track tab -Enter an appropriate value in the time-track field -Click the Save Changes button Result: You have entered a time-track for the current week.

5.Scenario to enter and modify the time-track for the selected date or week -Login -Select the Time-Track tab -Highlight the time-track you wish to modify and enter a new value -Save changes Result: You have modified the time-track for the selected date.

6.Scenario to view the time-track for the selected month -Login -Select the Time-Track tab -Click the View My Time-Track tab Result: You can now view the Time-Track for the selected month.

7.Scenario to remove a task from the entire time-track interface -Login -Task tab>Select desired task -Select Delete This Task Result: The task is now removed from the actiTIME interface.

8.Scenario to enter and modify the time-track for other users -Login(as someone with privileges) -Select Time-Track>Change the Time-Track for field for the desired user -You can now modify the Time-Track for the task of the user -Save Changes Result: You have modified the Time-Track of another user.

9.Scenario to delete a reported time-track -Login -Highlight a task and select Complete on the far right corner Result: You have removed a reported time-track.

10.Scenario to browse active Projects & Customers -Login -Select the Tasks tab -Change the Custom s & Projects filter to All active projects of all active customers Result: You can view all the active projects.

11.Scenario to edit project and customer description -Login -Select the Tasks tab>Projects & Customers -Select a customer or project -Make the necessary changes and Save Changes button Result: The selected Customer/Project details have been updated.

12.Scenario to create a new customer -Login -Click the Create New Customer button -Fill in the necessary fields -Click the Create Customer button Result: A new customer is created.

13.Scenario to register a new project -Login -Select the Tasks tab>Projects & Customers -Click the Create New Customer button -Select an existing customer * -Enter a new Project Name -Click the Create Project button Result: A new project is created for the selected customer.

14.Scenario to edit the information of active customers -Login -Select the Tasks tab>Projects & Customers -Select the Customer drop-down box and select --All active customers--Select any of the filtered active customers -Make the necessary changes -Click the Save Changes button Result: The selected active customer's information has been updated.

15.Scenario to delete a project -Login -Tasks>Projects & Customers -Check the project you wish to delete -Click the Delete Selected button Result: The selected project has been deleted.

16. Scenario to delete a customer -Login. -Tasks>Projects & Customers -Select the customer(s) and click on delete. Result: Selected customers has been deleted.

17.Scenario to change the user's password -Login -Select the Users tab -Select a user -Enter a new password under the Login Information section -Re-type the new password -Click on Save Changes Result: The user's password is now changed.

17.Scenario to change the color and logo -Login -Select the Settings tab>Logo & Color Scheme -Change the color scheme with any of the available colors -Change the actiTIME logo by selecting the Browse button under Replace current logo and select an existing logo or image -Click the Save Changes button Result: The actiTIME color scheme and logo is now changed.

MANUAL TESTING
Functional Testing Integration Testing System Testing

FUNCTIONAL TEST CASES


1. FLIGHT RESERVATION

Step No

Action (detailed description)

Input

Expected Result

1. To Login 1.1 Enter the valid agent name and password in the respective fields. Agent name: XYZ Password: mercury Agent name admin Password mercury Agent name abc Password 12345 Agent name admin Password 12345 No error(s), homepage will be displayed.

1.2

Enter the valid agent name and password in the respective fields.

No error(s), homepage will be displayed.

1.3

Enter the invalid agent name and password in the respective fields. Enter the valid agent name and invalid password in the respective fields.

Error: Enter valid username and password. Error: Enter valid password.

1.4

2. For date of flight 2.1 2.2 2.3 Enter the valid date of flight. Enter Invalid date of flight. Enter Invalid date of flight. 11/22/13 08/22/10 15/21/13 No error(s) detected Error: valid flight date are after 10/06/13 Error: invalid month entered. The month should be greater than 01 and lesser than 12. Error: invalid day entered. The date should be valid for the given month. Error: valid flight dates are from 10/02/13

2.4

Enter the date of flight

08/32/13

2.5

Enter Invalid date of flight

02/21/13

3. For Fly From and Fly To fields 3.1 3.2 3.3 3.4 3.5 Enter Fly From and Fly To. Enter Fly From and Fly To. Enter Fly From and Fly To. Enter Fly From and Fly To. Enter Fly From and Fly To. 11/22/13 London to Paris 16/22/13 London to Paris 08/23/09 11/22/13 Denver to Denver 09/15/13 Denver to London No error message should be displayed. Error: invalid month entered. Error: invalid date entered. Error: enter valid Fly To in the field. Error: valid flights are after 10/20/13

4. To insert an order 4.1 Enter the valid Date of Flight, Fly From, Fly To, Name & Flight Class Enter invalid Date of Flight and remaining fields. Enter valid Date of Flight, Fly From, Fly To, Name & Flight Class 11/10/13 Sydney to Paris Sherbert, first class 13/27/13 11/22/13 Sydney Sherbert, first class No Error: Order will be inserted. Error: Cannot insert an order. Error: Insert order will be disabled.

4.2 4.3

5. To update an order 5.1 Change the required fields & click on update order. Changes will be updated without any errors.

6. To delete an order 6.1 Open the order & click the delete order button. Order will be deleted without any error.

7. To open an order

7.1

Click on the shortcut key or File>Open Order in drop menu, fill in the customer name or flight date or order no, click on the OK button.

Selected order will be opened without any error.

8. To generate the graph 8.1 Click on the graph icon Graph is been displayed.

9. To generate the reports 9.1 Click on shortcut key or Analysis>Reports Entire report will be displayed without any error.

2. ACTITIME APPLICATION Step No


1. To Login 1.1 1.2 Enter the valid username and password in the field. Enter the invalid username and password in the field. Enter the special character in the username field and give the password. Enter the valid username and invalid password. Leave fields empty. Username admin Password manager Username abc Password 12345 Username ***** Password manager Username admin Password 12345 Username : Password : No Error: homepage will be displayed. Error: Enter valid username and password. Error: Login Unsuccessful, enter valid username and password. Error: Enter valid password. Login Unsuccessful.

Action (detailed description)

Input

Expected Result

1.3

1.4

1.5

2. To create a new user 2.1 Enter all the mandatory fields (fields with *). Username admin Password manager Re-type password Firstname qwdeas Lastname qwe Creating new user successful.

2.2

Enter all the mentioned field except username and password. Enter >32 character in the username field. Enter>26 characters or special symbols in the password field.

Error: enter all the mandatory fields. Limit of the username field takes only 32 characters. Limit of the password field takes only 26 characters.

2.3

2.4

2.5

Enter all the fields with valid data except for retype password.

Password admin Re-type password admn

Error: Entered password values differ from each other. Please enter the same values in both the fields. Error: Enter all the mandatory fields.

2.6

Leave all the fields empty.

3. To create billing types 3.1 Enter the name status and type. Name Aston Status Active Type Non-billable Name : Status Active Type Non-billable Name **&&** Status Active Type Non-billable Name : Status : Type : No Error: billing type is created successfully. Error: Enter all the mandatory fields. No Error: billing type is successfully created. Error: Enter all the mandatory fields.

3.2

Enter all the fields except name field. Give special character in the name field and also select other fields. Leave all the fields blank.

3.3

3.4

4. To create new task 4.1 Select the Customer & Projects tab, Create New Task and enter the Task Name in the field. Select the Customer & Projects tab, Create New Task and ignore the Task Name field. Leave all the fields blank Customer Aston Project X Name A New task added to the Customer Aston, Project X. There is no task to create, Error: fill at least one row. Error: There is no task to create. Please fill at least one row.

4.2

4.3

5. To create a time-track for current week 5.1 Select the day and enter the appropriate information and click on save changes. Enter the time-track is >hrs for a day & click ok. 10:00 A Time-Track for the current week is been created. Entered leave time is greater than 8. Please correct.

5.2

6. To modify the time-track 6.1 6.2 Select the username and select the task to be modified. Select the working hours in a day of the task and enter >8 hours. 11:00 No Error: Task has been modified successfully. Time-Track in invalid.

7. To view the time-track for the selected month 7.1 Click on view my Time-Track. All the Time-Track will be displayed with no errors.

8. To remove the task from the entire time-track interface 8.1 Go to the Projects & Customers tab and select the particular task that should be deleted. Click on hide row of the select Time-Track. Do not select any task and click on delete task On confirmation, press YES Task successfully deleted.

8.2 8.3

The task will be removed from the Time-Track. Error: select the task to be deleted.

9. To modify the time-track for other users 9.1 Select a user in the Time-Track tab and make the appropriate changes and click on Save . The Time-Track of the user is been modified.

10. To delete a reported time-track 10.1 Select the task and mark it. Click on Delete Selected Tasks. It displays a confirmation message to delete the task permanently. Error message will be displayed.

10.2

Click on delete selected tasks without marking the project or task.

11. To browse active Projects & Customers 11.1 Select any of the customers and select Show Projects. Do not select any of the customers. Customer and his projects will be displayed. List of all the customers and projects will be displayed.

11.2

12. To edit project and customers description 12.1 Enter all the required fields and click on save changes. Enter the required fields except the customer name. Your changes have been changed. Error: enter all the mandatory fields.

12.2

13. To create a new customer 13.1 Enter the customer name and customer description and click on Create Customer. Enter the customer name only and click on create customer. Enter all the fields except customer name. Leave all the fields blank. Customer name awed Description: Testing stuff Customer name eswrf Description: Customer has been successfully created.

13.2

Customer has been successfully created. Error: Enter all the mandatory fields. Error: Enter all the mandatory fields.

13.3 13.4

14. To create a new project 14.1 Select the customer and enter the project name and click on create project. Do not select the customer and enter the project name and click on create project. Select the customer and do not enter project name and click on create project. Leave all the fields blank Customer aawbc Project name PHP Customer Project name PHP Customer aqdws Project name A new project will be created. Error message will be displayed. Error message will be displayed. Error: enter all the mandatory fields.

14.2

14.3

14.4

15. To edit the information of active customers 15.1 Click on the edit icon, edit the customer and click on save changes. No error message will be displayed.

16. To delete a project 16.1 16.2 Select the project and click on Delete Project. Do not select any project and click on Delete Project. The project will be deleted. Error message will be displayed.

17. To delete a customer 17.1 17.2 Select the customer and click on Delete Selected. Do not select any project and click on Delete Project. The customer will be deleted. Error message will be displayed.

18. To change the user password

18.1 18.2

Enter the new user password and click on Save Changes. Enter a wrong password in the retype password field and click on Save Changes. Leave all the fields empty and click on Save Changes.

Password will be changed. Error message will be displayed. Error: All fields must be filled.

18.3

19. To change the color and logo scheme 19.1 Select the color in the given list and click save setting. The color will be changed.

INTEGRATION TEST CASES


1. FLIGHT RESERVATION

Step No

Action (detailed description)

Expected Result

1. To Login 1.1 1.2 Click on icon of flight reservation. Enter the valid username and password. Login page should be displayed. Homepage should be displayed.

2. To insert an order 2.1 2.2 Enter valid agent name and password in respective fields. To place an order click on File and then click on New Order. Enter Date of Flight and select the Fly From and Fly To and click on Flights. Select a Flight From the flight table and click on OK. Enter name and select cases of flight and enter the number of tickets and click on Insert Order. Homepage should be displayed. Page with details of flight schedules and other information should be displayed. Flights window should be displayed. Homepage should be displayed. Order successfully inserted, homepage should be displayed.

2.3 2.4 2.5

3. To open an order 3.1 3.2 3.3 Enter valid agent name and password in their fields. To open an order, click on File and then click on Open Order. Homepage should be displayed. Open Order page should be displayed.

To search an order click on Customer or Search result window with the details of Flight Date or Order No and enter order should be displayed. corresponding search keyword and click on OK.

4. To update an order 4.1 4.2 4.3 Enter valid agent name and password in their fields. To open an order click on File and then click on Open Order. To search an order, click on Customer or Flight Date or Order No and enter corresponding search keyword and click on OK. Homepage should be displayed. Open order page is displayed. Search result window with the details of order should be displayed.

5. To delete an order 5.1 5.2 To open an order click on File and then click on Open Order. Open order page should be displayed.

To search an order click on Vustomer or Search result window with the details of Flight Date or Order No enter the order should be displayed. corresponding search keyword and click on OK. To delete order click on Delete Order. Order should be displayed, homepage should be displayed.

5.3

6. To generate the graph 6.1 Click on the Graph shortcut icon. Graph should be displayed.

7. To generate the reports 7.1 7.2 Click on Analysis>Report. Enter the valid agent name and password. Agents order report page will be displayed. Homepage should be displayed.

2. ACTITIME APPLICATION Step No Action (detailed description) Expected Result

1. To Login 1.1 1.2 Open the actiTIME application by clicking on start actiTIME. Enter the valid username and password and press Login button. The Login page will be displayed. Homepage of the user will be displayed.

2. To create new user 2.1 2.2 Click on the users. Click on create new user and enter mandatory fields and click on create new user. User homepage is been displayed. User homepage of list is been displayed.

3. To create billing types 3.1 3.2 Click on billing type. Click on the create new billing type and fill all the mandatory fields. Homepage of billing type is displayed. New billing type is created.

4. To create new task 4.1 4.2 Click on tasks. Click on create new tasks and enter the mandatory fields. Homepage of task is been displayed. New task is created.

5. To create time-track for a current week 5.1 5.2 Click on the Time-Track. Enter the appropriate Time-Track. Homepage of Time-Track is been displayed. New Time-Track is created successfully.

6. To modify the time-track 6.1 6.2 Click on the Time-Track. Enter and modify time-track and save the changes. Homepage of Time-Track is been displayed. Changes made were successfully saved.

7. To view my time-track for the selected month 7.1 7.2 Click on the Time-Track. Click on view my Time-Track. Homepage of Time-Track is been displayed. Summary of selected months TimeTrack will be displayed.

8. To remove the task from the entire time-track interface 8.1 8.2 Click on the tasks. Select the task to be deleted and click on delete task. Homepage of Time-Track is been displayed. The selected task will be removed. Homepage of tasks is been displayed.

9. To modify the Time-Track for other users 9.1 9.2 Click on the Time-Track. Select the user Time-Track and modify. Homepage of Time-Track is been displayed. Time-Track of selected user is modified.

10. To delete a reported time-track

10.1 10.2

Click on the Time-Track.

Time-Track of homepage is been displayed. Click on tasks, empty the row and click on Changes are saved. complete. Reported Time-Track is been deleted.

11. To browse active project and customers 11.1 11.2 Click on Projects & Customers. Select the customer and click on show button. Homepage of Projects & Customers will be displayed. Homepage of selected customer will be displayed.

12. To edit the Projects & Customers 12.1 12.2 Click on Projects & Customers. Select the project or customer to edit. Homepage of Projects & Customers will be displayed. Changes were saved successfully.

13. To create a new customer 13.1 13.2 Click on the Projects & Customers. Click on create new customer and enter the mandatory fields and click on create customer. Homepage of Projects & Customers is displayed. Homepage of active Projects & Customers is displayed.

14. To register a new project 14.1 14.2 Click on Projects & Customers. Click on create new project and enter the mandatory fields and click on create project. Homepage of Projects & Customers is displayed. Homepage of active Projects & Customers is displayed.

15. To edit information of active projects 15.1 15.2 Click on Projects & Customers. Select the customer to edit information and save changes. Homepage of Projects & Customers is displayed. Homepage of active Projects & Customers is displayed.

16. To delete a project 16.1 16.2 Click on Projects & Customers. Select the project to be deleted and click on delete this project. Homepage of Projects & Customers is displayed. Selected project is successfully deleted. Homepage of active Projects & Customers is displayed.

17. To delete a customer 17.1 Click on Projects & Customers. Homepage of Projects & Customers is displayed.

17.2

Select the customer to be deleted and click Selected customer account is deleted. on delete this project. Homepage of active Projects & Customers is displayed.

18. To change the user password 18.1 18.2 Click on the users. Select the user to change the password, Enter new password and re-type the password. Homepage of user is displayed. Password is changed successfully.

19. To change the color and logo scheme 19.1 19.2 19.3 Click on settings. Click on color and logo scheme. Select the color and logo and click on save settings. Homepage of settings is displayed. Homepage of color and logo scheme is displayed. Color and logo is changed successfully, homepage of color and logo scheme is displayed.

SYSTEM TEST CASES


1. FLIGHT RESERVATION

Step No
1

Action (detailed description)


Open the flight reservation application.

Expected Result
The Login page will be displayed.

1. To insert an order 1.1 1.2 1.3 1.4 1.5 1.6 Enter the agent name and password. Enter Date of Flight, Fly From and Fly To. Click on the Flights button. Enter the Customer Name and No. of tickets. Click on Insert Order. Click on Logout button. Homepage will be displayed. The flight will be enabled. Flight table will be displayed. Insert order button will be displayed. Order no is displayed. The Login page will be displayed.

2. To open an order 2.1 2.2 2.3 2.4 2.5 Enter the agent name and password. Click on file and select open order. Select customer name or flight date or order no. Click on ok button. Click on Logout button. Homepage will be displayed. Open order page is displayed. OK button is enabled. Search result will be enabled. The Login page will be displayed.

3. To update an order

3.1 3.2 3.3 3.4 3.5

Enter the agent name and password. Click on Open Order. Enter Order no. and click on the OK button. Change the details and click on update order button. Click on Logout button.

Homepage will be displayed. Open order page is displayed. Order details page is displayed. Updated order is displayed. The Login page will be displayed.

4. To delete an order 4.1 4.2 4.3 4.4 4.5 Enter the agent name and password. Click on open order. Enter the order no. and click on ok button. Click on delete order. Click on Logout button. Homepage will be displayed. Open order page is displayed. Order no. page is displayed. Homepage of flight reservation is displayed. The Login page will be displayed.

5. To generate the graph 5.1 5.2 5.3 Enter the agent name and password. Click on the Graph button. Click on Logout button. Homepage will be displayed. The graph page will be displayed. The Login page will be displayed.

6. To generate the reports 6.1 6.2 6.3 Enter the agent name and password. Click on the Report icon. Click on Logout button. Homepage will be displayed. The report page of all flights will be displayed. The Login page will be displayed.

2. ACTITIME APPLICATION Step No


1

Action (detailed description)


Open the ActiTIME application.

Expected Result
The Login page will be displayed.

1. To create a new user 1.1 1.2 1.3 1.4 1.5 Enter the agent name and password. Click on the user. Click on Create New User. Homepage will be displayed. User homepage is displayed. Create new user page is displayed.

Enter all the mandatory fields and click on Updated user list page is displayed. Create User. Click on Logout button. The Login page will be displayed.

2. To create a new billing types 2.1 2.2 2.3 2.4 2.5 2.6 Enter the agent name and password. Navigate to Settings. Click on Billing Types. Click on Create New Billing Type. Homepage will be displayed. Homepage of settings is displayed. Homepage of billing type is displayed. Homepage of create new billing type is displayed.

Enter all the mandatory fields and click on Updated billing type list page is Create New Billing Type button. displayed. Click on the Logout button. The Login page will be displayed.

3. To create a new task

3.1 3.2 3.3 3.4 3.5

Enter the agent name and password. Click on Tasks. Click on Create New Task. Select Customer & Project Name enter Task Name and click on create tasks. Click on Logout button.

Homepage will be displayed. Homepage of task is displayed. A page to create new tasks is displayed. Updated task is displayed. The Login page will be displayed.

4. To create time-track for current week 4.1 4.2 4.3 4.4 Enter the agent name and password. Click on the Time-Track. Homepage will be displayed. Homepage of Time-Track is displayed.

Enter Time-Track for me and select any of Updated Time-Track is displayed. the customer and save changes. Click on Logout button. The Login page will be displayed.

5. To modify the time-track 5.1 5.2 5.3 5.4 Enter the agent name and password. Click on the Time-Track. Enter Time-Track for me and save changes. Click on Logout button. Homepage will be displayed. Time-Track page is displayed. Updated Time-Track is displayed. The Login page will be displayed.

6. To view my time-track for selected month 6.1 6.2 6.3 6.4 Enter the agent name and password. Click on the Time-Track. Click on View My Time-Track. Click on Logout button. Homepage will be displayed. Homepage of Time-Track is displayed. Summary of selected month Time-Track is displayed. The Login page will be displayed.

7. To remove task from the entire time-track interface 7.1 7.2 7.3 7.4 Enter the agent name and password. Navigate to tasks. Select the task to be deleted and click on Delete Task. Click on Logout button. Homepage will be displayed. Task page is displayed. Updated tasks is displayed. The Login page will be displayed.

8. To modify time-rack for other users 8.1 8.2 8.3 8.4 Enter the agent name and password. Click on Time-Track. Select user Time-Track and modify. Click on Logout button. Homepage will be displayed. Homepage of Time-Track is displayed. Updated Time-Track is displayed. The Login page will be displayed.

9. To delete a reported time-track 9.1 9.2 9.3 9.4 Enter the agent name and password. Click on Time-Track. Click on Tasks, empty the row and click on complete. Click on Logout button. Homepage will be displayed. Homepage of Time-Track is displayed. Updated Time-Track is displayed. The Login page will be displayed.

10. To browse active Projects & Customers 10.1 10.2 10.3 10.4 10.5 Enter the agent name and password. Navigate to tasks. Click on Projects & Customers. Select the customer and click on show button. Click on Logout button. Homepage will be displayed. Tasks page is displayed. Projects & Customers page is displayed. Result of selected customer is displayed. The Login page will be displayed.

11. To edit Projects & Customers 11.1 11.2 11.3 11.4 11.5 Enter the agent name and password. Navigate to tasks. Click on Projects & Customers. Click on desired customer and edit customers description and save changes. Click on Logout button. Homepage will be displayed. Tasks page is displayed. Projects & Customers page is displayed. Updated result is displayed. The Login page will be displayed.

12. To create a new customer 12.1 12.2 12.3 12.4 12.5 Enter the agent name and password. Navigate to tasks. Click on Projects & Customers. Homepage will be displayed. Tasks page is displayed. Projects & Customers page is displayed.

Enter the mandatory information and click New customer account is created. on create customer. Click on Logout button. The Login page will be displayed.

13. To register a new project 13.1 13.2 13.3 13.4 Enter the agent name and password. Navigate to tasks. Click on Projects & Customers. Click on Create New Project and enter the mandatory information and click on Create Project. Click on Logout button. Homepage will be displayed. Tasks page is displayed. Projects & Customers page is displayed. New project is updated in Projects & Customers page. The Login page will be displayed.

13.5

14. To edit information of active projects

14.1 14.2 14.3 14.4

Enter the agent name and password. Navigate to tasks. Click on Projects & Customers. Click on desired customer to edit customer information , edit and save changes. Click on Logout button.

Homepage will be displayed. Tasks page is displayed. Projects & Customers page is displayed. Updated result is displayed.

14.5

The Login page will be displayed.

15. To delete a project 15.1 15.2 15.3 15.4 15.5 Enter the agent name and password. Navigate to tasks. Click on Projects & Customers. Select the desired project to be deleted, confirmation is asked, click ok. Click on Logout button. Homepage will be displayed. Tasks page is displayed. Projects & Customers page is displayed. Updated result will be displayed. The Login page will be displayed.

16. To delete a customer 16.1 16.2 16.3 16.4 16.5 Enter the agent name and password. Navigate to tasks. Click on Projects & Customers. Select the desired customer to be deleted, confirmation is asked, click ok. Click on Logout button. Homepage will be displayed. Tasks page is displayed. Projects & Customers page is displayed. Updated result will be displayed. The Login page will be displayed.

17. To change the user password

17.1 17.2 17.3 17.4

Enter the agent name and password. Click on users. Click on the desired user to change password and save changes. Click on Logout button.

Homepage will be displayed. User page is displayed. Password is changed and updated result is displayed in user homepage. The Login page will be displayed.

18. To change color and logo scheme 18.1 18.2 18.3 18.4 18.5 Enter the agent name and password. Navigate to settings. Click on color and logo scheme. Change the color and logo scheme. Click on Logout button. Homepage will be displayed. Settings page is displayed. Color and logo scheme page is displayed. Color and logo scheme is updated. The Login page will be displayed.

AUTOMATION
Introduction to QTP Record, Run and Analyzing Test. Perform multiple actions. Inserting checkpoints. Working with Data Tables.

QTP at a Glance
Introduction to QTP (QuickTest Professional)
The Mercury advanced keyword-driven testing solution

Technologies Supported
Default Support 1. Standard Windows applications 2. Web objects / Applications 3. ActiveX controls 4. Visual Basic applications

Additional QuickTest add-ins Support, 1. Java 2. Oracle 3. SAP Solutions, 4. NET Windows 5. Web Forms, 6. Siebel, 7. PeopleSoft, 8. Web services, and terminal emulator applications.

Testing Process with QTP


Quick Test Pro involves 3 main stages:
Creating Test scripts Running Tests Analyzing Test Results

Creating Tests Create a test script by recording a manual test scenario on the AUT (Application Under Test) using QTP. Quick Test Pro graphically displays each step users perform in the form of a collapsible, icon based tree view in QTPs Keyword View. Running Tests: Once the test scripts are recorded / created, next step is to execute themWhile running (executing) the tests Quick Test Pro connects to the web site or AUT and performs each operation in the test as performed manually while recording / creating tests (test scripts) Debugging Test To identify and eliminate the defects in the test scripts. Analyzing Test Results: Once the test scripts are executed, test results and the summary can be viewed for result analysis.

Add-in Manager

Quick Test Professional - Record & Run Modes


Recording Modes Normal Analog Low level Run Modes Normal Fast Update

QTP - Main Window

Figure 1: To record, run and analyze tests.

TO RECORD

1.Start QuickTest and open a new test 2.Start recording by clicking record button 3.On the record and run settings dialog box select the required fields

4. Open the flight reservation application 5. Follow the steps required to insert an order

6> Click on stop when finished recording and save it

TO INSERT AN ORDER
Dialog("Login").WinEdit("Agent Name:").Set "Mat" Dialog("Login").WinEdit("Password:").SetSecure "4ead08899ca5771c22a5d1f9e77808be0246bc28" Dialog("Login").WinButton("OK").Click Dialog("Login").Dialog("Flight Reservations").WinButton("OK").Click Dialog("Login").WinEdit("Agent Name:").Set "admin" Dialog("Login").WinButton("OK").Click Window("Flight Reservation").ActiveX("MaskEdBox").Type "11123" Window("Flight Reservation").ActiveX("MaskEdBox").Type micBack Window("Flight Reservation").ActiveX("MaskEdBox").Type "11" Window("Flight Reservation").WinComboBox("Fly From:").Select "Frankfurt"

Window("Flight Reservation").WinComboBox("Fly To:").Select "London" Window("Flight Reservation").WinButton("FLIGHT").Click Window("Flight Reservation").Dialog("Flights Table").WinList("From").Select "13552 FRA 08:00 AM LON 08:45 AM SR $164.50" Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click Window("Flight Reservation").WinEdit("Name:").Set "Mat" Window("Flight Reservation").WinButton("Insert Order").Click Window("Flight Reservation").Close

TO UPDATE AN ORDER
Dialog("Login").WinEdit("Agent Name:").Type"Mat" Dialog("Login").WinEdit("Agent Name:").Set "Mat" Dialog("Login").WinEdit("Password:").SetSecure "4ead0dd7c1387ac5dd907e98bf30f75455734c8d" Dialog("Login").WinButton("OK").Click Window("Flight Reservation").WinButton("Button").Click Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Customer Name").Set "ON" Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set "Dhanya" Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click Window("Flight Reservation").Dialog("Open Order").Dialog("Search Results").WinButton("OK").Click Window("Flight Reservation").WinRadioButton("First").Set Window("Flight Reservation").WinButton("Update Order").Click Window("Flight Reservation").Activate Window("Flight Reservation").Activate Window("Flight Reservation").Close

TO DELETE ORDER
Dialog("Login").WinEdit("Agent Name:").Set "Mat" Dialog("Login").WinEdit("Password:").SetSecure "4ead0fb5b37b558f6c4231a95a07255921c946fe" Dialog("Login").WinButton("OK").Click Window("Flight Reservation").WinMenu("Menu").Select "File;Open Order..." Window("Flight Reservation").Dialog("Open Order").WinCheckBox("Customer Name").Set "ON" Window("Flight Reservation").Dialog("Open Order").WinEdit("Edit").Set "Dhanya" Window("Flight Reservation").Dialog("Open Order").WinButton("OK").Click Window("Flight Reservation").Dialog("Open Order").Dialog("Search Results").WinButton("OK").Click

Window("Flight Reservation").WinButton("Delete Order").Click Window("Flight Reservation").Dialog("Flight Reservations").WinButton("Yes").Click Window("Flight Reservation").Close

TO RUN THE APPLICATION


1. Open the flight application 2. Click on run button 3. Automatically all the action recorded will be inserted

4. At the end , test summary will be shown

TO PERFORM MULTIPLE ACTIONS


TO SPLIT ACTIONS

1. Select the page were you want the second action to begin 2. Go to edit and select action 3. From the side menu of action select split action

4. Enter the names of the action as log in for 1st action and insert for second action 5. Click ok 6. It will be displayed as follows

REUSABLE ACTIONS
1. 2. 3. 4. Right click on Login action Select action properties Select make reusable Click OK

INSERTING A CALL TO A NEW ACTION

1. Click on insert on the menu bar 2. Select insert call to new action 3. Insert call to new action dialog box opens

4. 5. 6. 7.

Give a name of the action Select at the end of the test Click OK The action will be inserted at the end as follows

WORKING WITH DATA TABLES

INSERTING IN DATA TABLES

Dialog("Login").WinEdit("Agent Name:").Set "nobel" Dialog("Login").WinEdit("Password:").SetSecure "4ead24387934e33097f42ab6ae7287edf15607f1" Dialog("Login").WinButton("OK").Click Window("Flight Reservation").ActiveX("MaskEdBox").Type DataTable("Date", dtLocalSheet) Window("Flight Reservation").WinComboBox("Fly From:").Select DataTable("Fly_From", dtLocalSheet) Window("Flight Reservation").WinComboBox("Fly To:").Select DataTable("Fly_To", dtLocalSheet) Window("Flight Reservation").WinButton("FLIGHT").Click Window("Flight Reservation").Dialog("Flights Table").WinButton("OK").Click Window("Flight Reservation").WinEdit("Name:").Set DataTable("Name", dtLocalSheet) Window("Flight Reservation").WinEdit("Tickets:").SetSelection 0,1 Window("Flight Reservation").WinEdit("Tickets:").Set DataTable("Tickets", dtLocalSheet) Window("Flight Reservation").WinRadioButton("First").Set Window("Flight Reservation").WinButton("Insert Order").Click Window("Flight Reservation").Close

After inserting all the data in the data table and after setting the values as shown above We run the application

Result: Automatically all the data we have inserted in the data table will be inserted in the flight application And the result is as follows:

Standard Check point


1. Insert>
2. Checkpoint> 3. Standard checkpoint(f12)

4. Select before or after the step


5. Click ok

Result: Standard check point will appear at the particular spot.

Dialog("Login").WinEdit("Agent Name:").Set "Dan" Dialog("Login").WinEdit("Agent Name:").Type micTab Dialog("Login").WinEdit("Password:").Check CheckPoint("Password:") Dialog("Login").WinEdit("Password:").SetSecure "507e89987f4ca384589d3ba074ca739f88b0c9e8" Dialog("Login").WinEdit("Password:").Type micReturn Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"

Bitmap checkpoint
1. Right click on the image
2. Click on the insert bitmap checkpoint

3. Click on OK on Bitmap Checkpoint Properties

4. Click on select area and drop the image and click ok

Dialog("Login").WinEdit("Agent Name:").Set "Dan" Dialog("Login").Static("Static").Check CheckPoint("Static") Dialog("Login").WinEdit("Password:").SetSecure "507e89eda3e675d24c8cfe89159c89fd9a4a6c5e" Dialog("Login").WinButton("OK").Click Window("Flight Reservation").WinMenu("Menu").Select "File;Exit"

Anda mungkin juga menyukai