Sei sulla pagina 1di 15

CHAPTER 5 TESTING AND RESULETS

CHAPTER 5
TESTING AND RESULETS

5.2 Testing Goals


The goals in testing this website include validating the quality, usability, reliability and

Performance of the website. Testing will be performed from a white-box approach. Tests will

be designed around requirements and functionality.

5.3 What is Web Testing?

Web testing in simple terms to check your website for potential bugs before it made live or

before code is moved into the production environment. During this stage issues such as that

of website and user security, the functioning of the site, its access to handicapped as well as

regular users and its ability to handle traffic is checked.

5.4 How to test Web Application

In Software Engineering, the following testing types/ technique may be performed depending

on our web testing requirements.

5.5 Functionality Testing

This is used to check if your product is as per the specifications you intended for it as well as

the functional requirements you charted out for it in your developmental documentation. Web

based Testing Activities includes: Test all links in your webpages are working correctly and

make sure there are no broken links. Links to be checked will include -

 Outgoing links

 Internal links

Government Islamia College, Civil Lines, Lahore 48


CHAPTER 5 TESTING AND RESULETS

 Anchor Links

 Mail to Links

Test Forms are working as expected. This will include:

 Scripting checks on the form are working as expected. For example- if a user does not

fill a mandatory field in a form an error message is shown.



 Check default values are being populated

 Once submitted, the data in the forms is submitted to a live database or is linked to a

working email address



 Forms are optimally formatted for better readability

Test Cookies are working as expected. Cookies are small files used by websites to primarily

remember active user sessions so you do not need to log in every time you visit a website.

Cookie Testing will include:

 Testing cookies (sessions) are deleted either when cache is cleared or when

they reach their expiry.



 Delete cookies (sessions) and test that login credentials are asked for when

you next visit the site.

Test HTML and CSS to ensure that search engines can crawl your site easily. This will include

 Checking for Syntax Errors



 Readable Color Schemas

 Standard Compliance. Ensure standards such W3C, OASIS, IETF, ISO, ECMA, or

WS-I am followed.

Government Islamia College, Civil Lines, Lahore 49


CHAPTER 5 TESTING AND RESULETS

5.6 Usability testing

Usability Testing has now become a vital part of any web-based project. It can be carried out

by testers like you or a small focus group similar to the target audience of the web

application. Test the site Navigation:

 Menus, buttons or Links to different pages on your site should be easily visible and

consistent on all webpages.


5.7 Test the Content

 Content should be legible with no spelling or grammatical errors.



 Images if present should contain an "alt" text.


5.8 Interface Testing

Three areas to be tested here are - Application, Web and Database Server

 Application: Test requests are sent correctly to the Database and output at the

client side is displayed correctly. Errors if any must be caught by the application

and must be only shown to the administrator and not the end user.

 Web Server: Test Web server is handling all application requests without any

service denial.

 Database Server: Make sure queries sent to the database give expected results.

Test system response when connection between the three layers (Application, Web and

Database) cannot be established and appropriate message is shown to the end user.

5.9 Database Testing

Database is one critical component of your web application and stress must be laid to test it

thoroughly. Testing activities will include-

Government Islamia College, Civil Lines, Lahore 50


CHAPTER 5 TESTING AND RESULETS

 Test if any errors are shown while executing queries.



 Data Integrity is maintained while creating, updating or deleting data in database. 

 Check response time of queries and fine tune them if necessary.

 Test data retrieved from your database is shown accurately in your web application.

5.10 Compatibility testing

Compatibility tests ensure that your web application displays correctly across different

devices. This would include-

5.11 Browser Compatibility Test

Same website in different browsers will display differently. You need to test if your web

application is being displayed correctly across browsers, JavaScript, AJAX and

authentication is working fine. You may also check for Mobile Browser Compatibility.

The rendering of web elements like buttons, text fields etc. changes with change in

Operating System. Make sure your website works fine for various combination of Operating

systems such as Windows, Linux, Mac and Browsers such as Mozilla Firefox, Internet

Explorer, Safari, UC Browser, Opera Mini, Torch Browser etc.

5.12 Performance Testing

This will ensure your site works under all loads. Software testing activities will include but

not limited to:

 Website application response times at different connection speeds



 Load test your web application to determine its behavior under normal and peak loads

 Stress test your web determines its break point when pushed to beyond normal loads

at peak time.

 Test if a crash occurs due to peak load, how does the site recover from such an event

Government Islamia College, Civil Lines, Lahore 51


CHAPTER 5 TESTING AND RESULETS

 Make sure optimization techniques like grip compression, browser and server-side

cache enabled to reduce load times

5.13 Security Testing

Security Testing is vital for e-commerce website that store sensitive customer information

like credit cards. Testing Activities will include-

 Test unauthorized access to secure pages should not be permitted



 Restricted files should not be downloadable without appropriate access

 Check sessions are automatically killed after prolonged user inactivity

 On use of SSL certificates, website should re-direct to encrypted SSL pages.

5.14 Crowd Testing

You will select a large number of people (crowd) to execute tests which otherwise would

have been executed a select group of people in the company. Crowd sourced testing is an

interesting and upcoming concept and helps unravels many unnoticed defects.

This concludes the tutorial. It includes almost all testing types applicable to your web

application.

As a Web-tester it’s important to note that web testing is quite an arduous process and you are

bound to come across many obstacles. One of the major problems you will face is of course

deadline pressure. Everything is always needed yesterday! The number of times the code will

need changing is also taxing. Make sure you plan your work and know clearly what is

expected of you. Its best defines all the tasks involved in your web testing and then create a

work chart for accurate estimates and planning.

Government Islamia College, Civil Lines, Lahore 52


CHAPTER 5 TESTING AND RESULETS

5.15 Testing methods/ Techniques


Software testing is an important part in software development process. Testing is done to assess

The quality of the software to be developed. There are different software testing methods but

two

Are largely used in software engineering. These are white box testing and black box testing.

5.16 Black box testing


The technique of testing without having any knowledge of the interior workings of the

application is Black Box testing. The tester is oblivious to the system architecture and does

not have access to the source codes. Typically, when performing a black box test, a tester will

interact with the system's user interface by providing inputs and examining outputs without

knowing how and where the inputs are worked upon. So, we tested our project with this

method of testing and corrected apparent mistakes.

5.17 White box testing


White box testing is the detailed investigation of internal logic and structure of the code. White

Box testing is also called glass testing or open box testing. To perform white box testing on an

Application, the tester needs to possess knowledge of the internal working of the code. The

tester

Needs to have a look inside the source code and find out which unit/chunk of the code is

behaving inappropriately. So, we tested our code and checked it several times. This helped us

allot to refine our source code and correct our internal mistakes it was as much time taking as

the writing of coding.

Government Islamia College, Civil Lines, Lahore 53


CHAPTER 5 TESTING AND RESULETS

RESULTS
5.18 Test Cases
A test case has components that describe an input, action or event and an expected response,

to determine if a feature of an application is working correctly or not.

5.19 Test cases for Admin

Test case ID: 01

Test case name: Request for Login

Application: ANDROID BOOK STORE

Description: Admin will generate request for login in application.

Step Action Result Pass/ Fail

1 Go to login page Reach on login page Pass

2 Enter username and Username and Pass

Password password entered

3 Click on login Login successfully Pass

Button

Table 2

Government Islamia College, Civil Lines, Lahore 54


CHAPTER 5 TESTING AND RESULETS

Test case ID: 02

Test case name: Request for Sign Up

Application: ANDROID BOOK STORE

Step Action Result Pass/ Fail

1 Go to Registration Reach on Pass

page Registration page

2 Enter credentials credentials entered Pass

3 Click on Sign Up Sign Up successfully Pass

Table 3

Government Islamia College, Civil Lines, Lahore 55


CHAPTER 5 Application Design

Test case ID: 03

Test case name: Password Recovery

Application: ANDROID BOOK STORE

Step Action Result Pass/ Fail

1 Click on forget Reach on password Pass

password recovery page

2 Enter required credentials entered Pass

credentials

3 Click on Reset Password Rested Pass

password

Table 4

Government Islamia College, Civil Lines, Lahore 56


CHAPTER 5 Application Design

Test case ID: 04

Test case name: Contact Us

Application: ANDROID BOOK STORE

Step Action Result Pass/ Fail

1 Go to contact us page Reach on contact us Pass

page

2 Enter name, email and credentials entered Pass

phone number

3 Type query Message typed Pass

4 Send message Message sent Pass

Table 5

Government Islamia College, Civil Lines, Lahore 57


CHAPTER 5 Application Design

Test case ID: 05

Test case name: Request Books

Application: ANDROID BOOK STORE

Step Action Result Pass/ Fail

1 Go to book listing Reach on book listing Pass

page page

2 Click view details Book details shown Pass

button

3 Go to request now credentials entered Pass

4 Click on book now Booking successful Pass

button

Table 6

Government Islamia College, Civil Lines, Lahore 58


CHAPTER 5 Application Design

Test case ID: 06

Test case name: Search Book

Application: ANDROID BOOK STORE

Step Action Result Pass/ Fail

1 Go to find your book Reach on page Pass

dropdown

2 Select required Subject selected Pass

subject

3 Select required Program selected Pass

program

4 Click on search book Search successful Pass

button

Table 7

Government Islamia College, Civil Lines, Lahore 59


CHAPTER 5 Application Design

Test case ID: 07

Test case name: Profile Setting

Application: ANDROID BOOK STORE

Step Action Result Pass/ Fail

1 Edit name Name edited Pass

2 Edit email Email edited Pass

3 Edit phone number Phone number edited Pass

4 Edit date of birth Date of birth edited Pass

5 Click on save changes Changes saved Pass

Button successfully

Table 8

Government Islamia College, Civil Lines, Lahore 60


CHAPTER 5 Application Design

Test case ID: 08

Test case name: User Subscribe

Application: ANDROID BOOK STORE

Step Action Result Pass/ Fail

1 Click on Subscribe Enter Correct email Pass

button

2 Enter email address Email entered Pass

3 Subscribe Subscribed Pass

Successfully successfully

Table 9
Government Islamia College, Civil Lines, Lahore 61

Potrebbero piacerti anche