HP Quality Center Tutorial (Day 5) – Executing Test Cases Using ALM/QC

In our last HP Quality Center tutorial we learned how to create test cases and link them to requirements.  For that we took an example of Gmail application and explained how to create and add test cases in Quality Center.

Please read our previous tutorial Creating and Managing Test Cases, as we are going to use same Gmail.com test cases for execution in this tutorial as well.

How to Execute Test Cases Using ALM/QC

Step #1: In the Test lab tab, choose the test set that you would like to run and click on “Run Test” or “Run Test Set”. Run Test- will execute the test set selected and the “Run test set” will run the entire set one test after the other until the end.  Click on “Being Run”. (Click on images to enlarge)

Quality Center Test Execution

Step #2: If it is an automation test and the tool is integrated, then it launches and runs it in the testing tool. In that case it auto populates the test result.

Quality Center Test Execution

Step #3: Since ours is a manual test, we will have to execute the steps manually on our AUT and set the results. Go to the test status field and click on it to set it to a certain value. You can also enter the actual result in the space provided.

Quality Center Test Execution

Step #4: I am going to choose “Passed”. And am going to do the same for all the steps.

Quality Center Test Execution

Step #5: When done, click on the cross button to the dialog. The following confirmation message is displayed. Click Yes

Quality Center Test Execution

Step #6: Now you see, the status of the test is marked as passed.

Quality Center Test Execution

Step #7: Let us execute the next test in the list.  I will follow the same steps and fail just one of the steps. The status of the test goes to failed if any one of the steps fail.

Quality Center Test Execution

Tip: You can change this status any time you wish by clicking on the status column and setting the desired value.

Check the execution status in the Test Plan tab:

Once you have executed the test case, go back to the test plan tab and open the corresponding test case. Go to Test Configurations tab and the following is how the execution status gets reflected.

Quality Center Test Execution

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

Check the execution status in the Requirements tab:

As you can see, the corresponding requirement’s direct cover status has changed to “Passed”.

Quality Center Test Execution

Double click on the requirement and go to “Test Coverage Status”

Quality Center Test Execution

Points to note:

1) The different states of a test case execution can also be customized by the Admin.

2) You can choose to parameterize a manual test by adding parameters to it. When the test is run, the actual test data can be entered.

3) At every step in your ALM you can send email through it. To do so, find this icon  in your ALM window and click on it. For example, in the test plan tab I am clicking on it.

ALM email sending

Once you click on it, the following dialog opens. You can enter the required details and send an email.

ALM email sending

Conclusion:

In previous and this tutorials we learned – how we create tests, add steps to the tests, link the tests to requirements, create test sets, adding tests to test sets, Executing the tests and finally back tracking our way to see how each activity effects the statistics each time.

Since we have seen how to pass or fail a test case, the only thing left to learn is to know how to add a defect for the failed test case. We will cover defects and other miscellaneous topics in the next tutorial which is also going to be the last in this HP Quality Center/ALM training series.

Do let us know your feedback and post your questions.



The Best Software Testing Training You'll Ever Get!

software testing QA training

27 comments ↓

#1 Revathy on 06.19.13 at 11:29 am

Thank you. Waiting for the next tutorial.

#2 Amit on 06.19.13 at 2:55 pm

can you please tell why send email feature? what emails are sent via this tool and for what purpose?

give us some samples.

#3 Swati on 06.19.13 at 4:06 pm

@Amit: It could be anything. If you want your developer(or any body) to look at a certain defect or a certain test/test step, you can choose to send email directly from ALM. Does that answer your question? Please let me know….

#4 Sibu S on 06.20.13 at 4:21 am

Thank you. Waiting for the next tutorial.

#5 kb on 06.20.13 at 6:18 am

you guys are great!

#6 Joseph on 06.20.13 at 9:00 am

You are doing a wonderful job Vijay. Thank you very much.

#7 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?

#8 Sonakshi on 06.27.13 at 6:43 am

My Query is on this statement and example: Double click on the requirement and go to “Test Coverage Status”.
Here it shows 100%. My query is when this Test Coverage will be (50% or 70%)other than 100%?

#9 Sonakshi on 06.27.13 at 6:48 am

In ‘Points to be note’, Point No. 3: Which information can we send by email from here?

#10 Swati on 06.27.13 at 8:28 pm

@Sonakshi: You have submitted 3 questions. The following are the answers:
1. I have answered your first question in the previous article comments.
2. Here is an example: When there is a req and there are 10 test cases linked to it. Only 5 of them are executed. In that cases, the test coverage status will show 50%.
3. You can send an email just about anything. If you want your developer(or any body) to look at a certain defect or a certain test/test step, you can choose to send email directly from ALM.

Hope I clarified your doubts.

#11 Pravin on 07.08.13 at 12:39 pm

Hi,
I am working on HP QC 10.0, I am referring this tutorial. I follow steps up to 7. I didn’t find Test Configuration in Test Plan Tab. Where do i get that. Please let me know proper info.

Below is the part that i didn’t find(get) –
Check the execution status in the Test Plan tab:

Once you have executed the test case, go back to the test plan tab and open the corresponding test case. Go to Test Configurations tab and the following is how the execution status gets reflected.

Thanks

#12 Pravin on 07.08.13 at 12:58 pm

Hi,
I am trying to send a mail i fill info and clk on send that time i get an error message “Mail is disabled, Please contact your system administrator “

#13 Swati Seela on 07.08.13 at 8:01 pm

@Pravin: I am glad you are finding the tutorial useful.

Here are the answers for the two questions you posted:
1. In QC 10 the “Test Configuration” might not have been the same (I am not sure) but the backward trace-ability might exist under a different menu option, so I suggest you to pls explore that a little.
2. Mail might not have been enabled by your QC admin. Admin can basically turn this feature ON or OFF. So pls check with them.

#14 balendu on 08.05.13 at 10:28 pm

hi,

In real world while executing the test case in test lab, where we would be testing the test cases to get our results. Will it be a complete website like in this case gmail.com or it would be something else…..pl confirm as i am confused…

#15 balendu on 08.30.13 at 2:19 am

In real world while executing the test case in test lab, where we would be testing the test cases to get our results. Will it be a complete website like in this case gmail.com or it would be something else…..pl confirm as i am confused…

#16 Dax on 09.25.13 at 5:44 am

how to add a screenshot to actual result? thanks

#17 Carlos on 10.01.13 at 11:35 pm

Hello, I’m trying to use some parameters across different test cases but I’ve had no success so far. What I’ve come to is creating a test case in QC called .global, with no steps in it, and all the parameters and mark this test case as a template; later on, I call this template test case but I have no idea how to call the parameters from the template case from the actual case running. Do you have any idea how i could manage to achieve this? I’ve seen many posts on people trying to do the same.

#18 Palani S Ramadoss on 11.20.13 at 2:09 am

1) Does QC provide the ability to create Test Execution Records, separately from the Test scripts? In other words, I think what I want to ask is can you execute a single script multiple times with each run appearing as a different execution record?

2) Does QC provide the functionality of maintaining version control of artifacts… e.g. If I write a script and then later update it, will QC maintain versions for me automatically?

#19 faraaz on 12.02.13 at 9:43 am

Hi,
In QC whether in Test lab Test data are parametirized or Test Plan, which is better way to enter data and how to import data from excel to Test Plan.
And also how to enter Multiple test data for same test case is it execting the same test case again and again

#20 Nitin Sharma on 02.04.14 at 1:17 pm

Thanks For Sharing Knowledge With Us.

#21 Usha Sandiri on 02.09.14 at 11:53 am

Hi

Thanks for the tutorial

#22 deepak on 03.02.14 at 7:43 am

How to find all the test cases written by a person/ Id in HP QC?
Is there a query to fetch all records or any built in QC feature.

Answer appreciated.

Thank,
Deepak E.

#23 Sandeep on 03.04.14 at 11:07 am

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

#24 Abha on 03.28.14 at 9:45 pm

Thank you so very much,you guys are doing awesome job. All topics are very well explained.

#25 jithuu on 04.26.14 at 6:48 pm

How to extract test cases frm alm to excel?

#26 Fukrey on 05.20.14 at 11:48 am

Anyways can anybody explain me what is software?

#27 Jenn H on 06.04.14 at 7:54 pm

Does anyone know the maximum number of steps a user can add to a test case? Is it 200, 300 steps, etc?