HP Quality Center Tutorial (Day 4) – Creating and Managing Test Cases

This is the 4th Tutorial in our HP Quality Center Training series. You can check all the previously published tutorials on this page.  Note – As the tutorial length is little long we have divided our initial 4 days training into 6 tutorials. This will help you to learn HP Quality Center step by step with every minute detail.

In this tutorial you will learn:

  • How to create test cases in Quality Center
  • How to link test cases to requirements
  • Creating test suites in Quality Center

Creating Test Cases in HP ALM/Quality Center

We are working our way through ALM and have discussed Release, Cycle and Requirements. In our previous session we created a releases, added cycles to them, created requirements, mapped them back to cycles and releases and finally, we saw how the statistics are affected based on these mappings. In our article today, we will move on to the further steps.

We will keep referring to the same Gmail.com example that we did in the previous articles. If you are not familiar with the same, please refer to the below article that came out before this one.

Requirements and Release Cycle Management using Quality Center

If the following are the test conditions that you came up with for each of our features in the May release:

1) Login – with correct credentials

  • a) Launch Gmail, Enter correct user name, enter correct password and click login
  • b) Launch Gmail, Enter correct user name, enter correct password, select “Stay signed in” and click login

2) Login – incorrect credentials

  • a) Launch Gmail, Enter correct username, incorrect password and click Login
  • b) Launch Gmail, Enter incorrect username, correct password and click Login
  • c) Launch Gmail, enter incorrect username, incorrect password and click Login.

How do you write a manual test case for the same? Either you would use a word doc or an Excel sheet. I used an excel sheet to write the 1(a) test case as an example:

Quality Center Test cases

Let us see how to create the same test case in ALM.

Test Plan Tab in ALM

Steps to create test cases under Test Plan tab:

Step #1: Login to ALM into the right project. Create the release, cycles and requirements as described in the previous tutorials.

Step #2: Go to the Test Plan tab by choosing “Testing->Test Plan” from the side bar.

Step #3: Choose “Subject” as your home folder and create a sub folder “ALM training” under it. I am going to create “May Release” and “June Release” Sub folders under it.

Test Plan tab in Quality Center

Step #4: Go to May Release folder and choose the option to create a new test.

Test Plan tab in Quality Center

Step #5: Enter name and then choose the “type”. Choose “manual” for our tutorial.

Test Plan tab in Quality Center

Step #6: Enter the other details. The designer name will be auto populated based on your login credentials.  Click OK. The test gets added.

Test Plan tab in Quality Center

Step #7: Now you can add your steps. Click on the “Design Steps” tab. Click on “New Step” icon.

Test Plan tab in Quality Center

Step #8: Enter the step details. The description and Expected Results fields come up complete text editing features that are self explanatory.

Test Plan tab in Quality Center

Step #9: I am going to create all the steps as shows above. This is how the completed test case looks like:

Test Plan tab in Quality Center

This completes the process of adding test cases and steps to them.

Step #10: Under May release I am going to add some more test cases.

Test Plan tab in Quality Center

Linking Test Cases to Requirements:

Steps to link test cases and requirements:

1) Select a test case created and click on it. All the properties get displayed in the right hand side tab. Go to “Req coverage” tab and click on “Select Req”

Linking Test Cases to Requirements

2) The requirements tree gets displayed on the side. Expand the tree and select the needed requirements.

Linking Test Cases to Requirements

------------

3) Once done, close the requirement tree. You can link a test case to as many requirements as you would like. This is how the added requirement looks.

Linking Test Cases to Requirements

4) Let us now check, how this mapping effects the requirement. Go to Requirements tab from the side bar. Double click on the requirement that you just mapped and notice the “Test Coverage” details:

Linking Test Cases to Requirements

You see how the test details and it’s the test’s status is displayed. Since this test was just created and never run, the coverage status shows as “No Run”. Let us now move on in our tutorial and learn how to run a test.

“Test Lab” tab in ALM:

Imagine we have just begun the May release testing phase. The first cycle is Smoke test. We are not going to execute all the test cases we have.

  • Briefly, a smoke test is a high level test performed by the QA team on an AUT as soon as the code is deployed to make sure the application did not break. So we are only going to execute test cases 1-a and 2-c.
  • Similarly for sanity testing, which is checking the key functionality of the AUT. We will execute 1-a, 1-b and 2-e
  • Functional testing is everything.

Test lab tab will help us create test sets that contain the test cases that we need to execute in each phase. This is where the tester can execute the tests and record the test results. Let’s see how.

Steps to create test suites in Quality Center:

Step #1: Go to Test lab tab by navigating from the side bar. Create the folders as shown below:

Create test suites

Step #2: Under May release, choose the option to create a new test set

Create test suites

Step #3: Enter the test set name. Click OK.

Create test suites

Step #4: Once it is created. Click on “Select Tests” from the menu

Create test suites

Step #5: Select the tests as required

Create test suites

Step #6: Alternately if you choose the “Requirements Tree” tab, you can choose requirement and all the tests that are linked to it get added to your test set.

Create test suites

Step #7: Go ahead and create all the test sets. As you can see from the above screen shot I have created a test set each for each cycle.

Step #8: Tip: You can choose to add the same test multiple times in a test case. In that case, the second instance of the test will appear with a prefix [2].

Points to Note:

1) If you observe, we have created our releases, requirements, tests etc all under the parent folder “ALM training”. There is no rule that you should do that. You can choose a different name for your folder in each section. But as you have seen, it makes so much sense to use the same folder name.  For a real time project that you are working on and trying to use ALM for, try to come up with a name that you would want to consistently use across as the first step for your test management process.

2) The columns in the test plan tab or any other tabs can be customized by your project’s ALM admin.

Conclusion:

This finishes how we create tests, add steps to the tests, link the tests to requirements, create test sets, adding tests to test sets, and finally back tracking our way to see how each activity effects the statistics each time.

In our next Quality Center tutorial we will learn how to execute test cases and check execution status using this tool.

Please let us know how we are doing. We value your opinion and will take all feedback very seriously.



The Best Software Testing Training You'll Ever Get!

software testing QA training

35 comments ↓

#1 Esha on 06.16.13 at 6:01 pm

Hi it is really simple to understand with the gmail example given. waiting for the next tutorial. thank you.

#2 habib on 06.17.13 at 3:07 am

its awesome!!!!!!!!!!!

#3 mannat on 06.17.13 at 5:06 am

thanks for the simple and easy to understnad tutorial. looking forward for more tutorials like this.keep up the good work.
ps:- when is the next session for defects and test execution?

#4 Akhilesh on 06.17.13 at 8:50 am

This presentation is Mindboggling. Is there anything similar for QTP (UTF) also?

#5 Rajani on 06.17.13 at 11:38 am

Thanks a lot for such simple and easy to understand tutorial. It refreshed my mind and updated me.

#6 NaveenKumar N on 06.17.13 at 11:43 am

Very useful series. Thanks!

#7 sagar on 06.17.13 at 2:56 pm

its very good and easy to understand

#8 Revathy on 06.18.13 at 3:22 am

Fantastic work….Thank you

#9 Rinku on 06.18.13 at 12:04 pm

The above article is very easy and useful for everyone.I have done a software testing course from MindScripts. It’s a good Institute for testing course. Faculty helps us to build the basic concept of testing with practical knowledge.

#10 Amit Kumar on 06.19.13 at 2:02 am

Realy Its Imaging. Keep it up and waiting for the next tutorial.

#11 adithya on 06.19.13 at 2:45 pm

the above article is easy to understand. . .

#12 Mahesh on 06.20.13 at 4:39 am

Very good article, Thanks

#13 Sonakshi on 06.27.13 at 6:36 am

In above example:
If Smoke Test has been set by more than 1 test case (here if we choose Login with Correct credentials and Login with incorrect credentials) then while Running the Test Set of Smoke test how will Result window differentiate at display?

#14 Swati on 06.27.13 at 8:25 pm

@Sonakshi: I am not sure I understand your question. What do you mean by test results? There is no test result in the ALM, only the status. Whether you have one or multiple tests in your test set, each test case(and step) has their own status field and will display if the test passed/failed/stopped etc. I hope this helps. Article 5 in the series is about execution. Please refer that for additional information.

#15 dpraveen on 07.26.13 at 3:59 am

this artical is nice i learn more things from this

#16 Parvin on 08.13.13 at 8:38 am

This is awesome work done by you. Very easy to understand .

#17 Asma on 09.24.13 at 10:08 pm

Very good tutoring, awesome keep it up

#18 Daff on 11.01.13 at 2:31 am

Very good – I love your website. I love the articles and tutorials you publish, you target testing in a practical, real-world and hands-on way.
Thank you Vijay.

#19 rekha on 11.06.13 at 11:00 am

Hi i have a doubt in the below explaination:

Linking Test Cases to Requirements:
Steps to link test cases and requirements:
in Steps 3 and 4 if i want to link more than 1 test case then how do i do it?
In my work i have around 100 test cases for the same requirement.
Please let me know.
Thanks,
R

#20 Jayakumar on 11.12.13 at 6:31 am

Great Tutorial for ALM. It is really useful for the beginners. Good work. Thanks for Posting.

#21 sravani on 11.18.13 at 8:07 am

This is really helpfull for online trainees in supporting with live knowledge….thank to the posters

#22 sravani on 11.19.13 at 6:34 am

Hi Vijay….This is Sravani. The information you shared on QC is really helpful to me. Can i expect SOAPUI knowledge postings from your site. If yes, kindly help me out with the belongings.

#23 Aravindh Padmanaban on 11.28.13 at 5:39 am

I have a question, by chance do we have any facility in qc to upload the test case status (pass, fail or hold) from excel

#24 preeti on 12.21.13 at 11:25 pm

really helfull

#25 preeti on 12.21.13 at 11:31 pm

please tell me, what is scenario?

#26 Anthony on 01.14.14 at 8:18 am

I want to thank you for the explicit and straight forward lesson on this topic. Please can tell me how to convert excel test cases into QC. Once again thank you and keep up the good work for shearing your knowledge.

#27 Sandeep on 03.04.14 at 11:10 am

Waht do the numbers before test testcase in Test lab indicate? e.g. [1]Login wi ur……
What does that [1] means?

#28 sumon on 03.07.14 at 6:01 pm

the article is very easy to understand, i’d definitely say you have done anawesome job!!

#29 bobby on 03.26.14 at 11:14 am

fantastic

#30 Manish jha on 04.04.14 at 8:31 am

its awesome….

#31 Allen on 04.04.14 at 11:27 am

I want to know How do I manage Test Cases in QC ?

I have a Core Product which is then updated as per customer needs. we have some 4 different customers who need customization of the core product

Our Test Cycle consist of Core release testing this product my company sells under her name and then we start testing the customer product which is given to the customer for its clients

We design our test cases for the core product as most of new functionality is added to the core once that product is released we start working on developing the customer test cases but most of the test cases come from the core bucket .

Our Problem , We can not get a proper tracebility of requirements and the test cases also we are just creating duplicate test case in QC

Hope I was able to explain it in detail

thanks in advance

#32 Vipin Vij on 04.22.14 at 7:16 pm

Hi Vijay
I must congratulate you for this side.

The USP is simple but effective.

Great keep up…

Regards
Vipin

#33 Sandeep on 05.27.14 at 11:45 pm

I am trying to upload the test cases in ALM via template created by me, the ALM gives message that test cases were uploaded successfully but in actual only one step of one test case gets uploaded, that too not from beginning the issues does not seem to going anywhere.. Could some one help who has used excel for test case uploading in ALM?

#34 Peter on 05.29.14 at 8:06 pm

This is a great guide. Thank you! Just as a suggestion, effects in the last sentence should be affects. Otherwise, great job!

#35 sarita on 10.30.14 at 4:00 pm

Can u please help…How to add new step in the existing steps of the test case in the test plan module. Will the order changes by itself.

Thanks.

Leave a Comment