Test cases for effective testing - part 1

24
Test cases For effective testing Prepared by: Mona M. Abd El-Rahman. QC Engineer at Ibtikar Technologies Co. Part 1

Transcript of Test cases for effective testing - part 1

Page 1: Test cases for effective testing - part 1

Test cases For effective testing

Prepared by:Mona M. Abd El-Rahman.QC Engineer at Ibtikar Technologies Co.

Part 1

Page 2: Test cases for effective testing - part 1

What is a Test Case

Page 3: Test cases for effective testing - part 1

A test case has components that describes an input, action or event and an expected response, to determine if a feature of an application is working correctly.

Page 4: Test cases for effective testing - part 1

Why Test Cases are important

Page 5: Test cases for effective testing - part 1

Which features have been tested/ will be tested eventually?

How many user scenarios/ use cases have been executed?

How many features are stable?

Which features need more work?

Are sufficient input combinations exercised?

Page 6: Test cases for effective testing - part 1

Does the app give out correct error messages if the user does not use it the way it was intended to be used?

Does the app respond to the various browser specific functions as it should?

Does the UI conform to the specifications?

Are the features traceable to the requirement spec? Have all of them been covered?

Page 7: Test cases for effective testing - part 1

Are the user scenarios traceable to the use case document? Have all of them been covered?

Can these tests be used as an input to automation?

Are the tests good enough? Are they finding defects?

Is software ready to ship? Is testing enough?

What is the quality of the application?

Page 8: Test cases for effective testing - part 1

Approaches of writing test cases:

Function: Test each function/ feature in isolation.

Domain : Test by partitioning different sets of values.

Specification based: Test against published specifications.

Risk based: Imagine a way in which a program could fail and then design tests to check whether the program will actually fail.

Page 9: Test cases for effective testing - part 1

Scenario/ use case based: Based on actors/ users and a set of actions they are likely to perform in real life.

Exploratory: the tester actively controls the design of tests as those tests are performed and uses information gained while testing to design new and better test.

User: Tests done by users.

Approaches (Cont’d)

Page 10: Test cases for effective testing - part 1

How to write a Test Case

Page 11: Test cases for effective testing - part 1

Understand the requirements well.

( while writing test cases do not assume any requirements by your own. Raise the question which is not clear in requirement or requirements are misleading or incomplete. )

Prior to design the test cases figure out all features of application.

Page 12: Test cases for effective testing - part 1

Ensure that test case should cover all functionality mention in requirement document.

- Checklists. - Traceability Metrix.

Generic test cases should be collected & combine together in test suite.

Page 13: Test cases for effective testing - part 1

Testing Priority should be assign to each test case. (Select the Test case priority depending upon how important the

test case is for that Feature, component or the product).

Test cases should be simple and easy to understand.

Input data for test cases is very important part in testing, your test cases should validate range of input data.

Page 14: Test cases for effective testing - part 1

You should concentrate on real life scenarios first which end user going to use day to day life activity and accordingly test cases should be prepare.

Every test case may or may not have defect linked but each defect should have test case linked.

Page 15: Test cases for effective testing - part 1

Test case id. Test case title. Summary. Pre-conditions and test data. Test case steps. Test case expected results.

Test case format:

Page 16: Test cases for effective testing - part 1

Test case title should start with Upper Case. Each step should start with Upper Case. Use parameter’s names as it is instead of using

generic names. Start with module name then write the title.

Ex. Login – Error message must be displayed when user inserts a wrong password.

Use must/ would instead of should/ may.

Test case naming convention:

Page 17: Test cases for effective testing - part 1

Workshop

Page 18: Test cases for effective testing - part 1

Image Upload Functionality

Activity 1:

Page 19: Test cases for effective testing - part 1

Sending Emails

Activity 2:

Page 20: Test cases for effective testing - part 1

Search/ Filter

Activity 3:

Page 21: Test cases for effective testing - part 1

Logout

Activity 4:

Page 22: Test cases for effective testing - part 1

Export PDF

Activity 5:

Page 23: Test cases for effective testing - part 1

Different time zones

Activity 6:

Page 24: Test cases for effective testing - part 1

For any questions, feel free to contact [email protected]