390 likes | 631 Views
Training in the Testing Tool HP Quality Center 11. Senior Test Manager Mounir AL Chaer mounir@alchaer.dk. Agenda. Basic functionalities in HP Quality Center 11 Requirements Modul Test Plan Moudul Test Lab Modul Defects Modul Evaluering. QC. Formål.
E N D
Training in the Testing Tool HP Quality Center 11 Senior Test Manager Mounir AL Chaer mounir@alchaer.dk
Agenda • Basicfunctionalities in HP Quality Center 11 • Requirements Modul • Test Plan Moudul • Test Lab Modul • Defects Modul • Evaluering QC
Formål • Formålet med dagens session er at træne på: • Skriv testcases • Udfør testcases • Opret defekter i HP Quality Center 11 • Andre forventninger til Quality Center Senior Test Manager Mounir AL Chaer
Hvorfor struktureret test? Struktureret test er en systematisk gennemgang af et system og gennemføres af mange forskellige grunde: • Er det leverede som forventet? • Er der fejl i det leverede? • Rette op på misforståelser og dermed mindske tilbageløb. • Mindske risikoen ved at gå i drift med ny funktionalitet eller nyt hardware (setup). • Sikre at vores it-systemer understøtter vores forretningsprocesser. • Sikre at informationerne i vores it-systemer er korrekte. • Sikre at vores it-systemer kører optimalt og stabilt. Senior Test Manager Mounir AL Chaer
Why Structured test? • Structured test is a systematic walkthrough of a system and it has many purposes: • Is the product as expected (described in the requirements)? • To find errors in the product • To correct misunderstandings and reduce rework • To lower the risk in the production of new/corrected functionality or hardware • To secure that the systems can perform in an optimal and stabile way • To have knowledge about the quality as input to progress / go-live decisions Senior Test Manager Mounir AL Chaer
Quality Center - Overblik • The application lifecycle management roadmap with ALM includes the following phases: Senior Test Manager Mounir AL Chaer
Logon to Quality Center 11 • First Step: • install QC onyour computer, via link: http://qcsaas.dk.logica.com/qcbin/start_a.jsp • And youwill have the HP QC login • Loginname: your initials • Password: • Clickon the button 'Authenticate’ • Domain • Project Senior Test Manager Mounir AL Chaer
QC Terminology Senior Test Manager Mounir AL Chaer
HP Quality Center 11 What is Quality Center (QC) apart from being standard test documentation tool • A Database which is build up with info onhow to test a system. • Release Management (This will not be used) • Business Components (This will not be used) • Requirements • Test Plan – Collection of test cases/descriptions (Library) • Test Lab – Test execution – linked to test cases/descriptions in Test Plan • Defect Management – Error handling Senior Test Manager Mounir AL Chaer
Test Plan • Test Plan is a librarywhereyoubuild up your test cases. • Folders is typicallydivided in business areasorfunctions. • Create folders in the test plan tree • Define the specific test cases within each subject folder Senior Test Manager Mounir AL Chaer
What is a test case? • A test case is like a manuskript, which guide youthrough the different steps in a specific action togetherwith the expectedresult of each step in the action. • Test cases canbedivided in different types: • Main functionality (several test cases are put together in a test set to reflect a process / scenario) • Variants • Exceptions / Error handling (negative test) • Test cases candescribe test of e.g.: • Functions (logon, search, måleraflæsning, print etc.) • Processes (kundeprocesser, økonomiprocesser, etc.) • Non-functionalareas (security, performance, usability, consistency) Senior Test Manager Mounir AL Chaer
Guidelines for a test case 1 Naming conventions ”Test name” must be short and with a meaningful title. Test steps • Step name: • Description: Be specific and precise, use transactioncode if possible, list required parameters. Explain in detailed words exactly what to do, so your collegeaues can do it a year or 3 from now. • Expected result: Be specific and precise again. Explain the exact response from the system to the actions decribed. • Risk: How critical is the functionality (High, Medium, Low) High- High business or technical criticality. Showstopper Medium– Some business or technical criticality. No showstopper Low- Low business or technical criticality. No showstopper Senior Test Manager Mounir AL Chaer
Guidelines for a test case 2 • In the field 'Details' describe: (Purpose, Preconditions, Authorizationsifpossible, Dependencies) Criteria for making a new test step Youmake a test step for each time youenter/submit/process data, and the system delivers an output. Senior Test Manager Mounir AL Chaer
Create New Test • Mark the folder where to place the test case • Clickon the icon Senior Test Manager Mounir AL Chaer
Create New Test Case • Name of thetestcase • Test type Senior Test Manager Mounir AL Chaer
Hereyoucanaddgoal, preconditions, authorizations, dependencies Senior Test Manager Mounir AL Chaer
Create test steps • Choose the tab ’Design Steps’ • Adding new steps • Enter: • Description: Bespecific and precise, usetransactioncode, list required parameters. Explain in detailedwordsexactlywhat to do, so yourcollegeauescan do it a yearor 3 from now. • Expectedresult: Bespecific and preciseagain. Explain the exactresponse from the system to the actions decribed. Senior Test Manager Mounir AL Chaer
Test Case – Design Steps • By defining the steps in the belowmanner, wecanexactlytrack in which step the test case failedtherebyreducing the burdenon the developers for searching the entire steps Attachmentscanbeadded at the overall script levelor step level Description contains the actions that need to be performed. Senior Test Manager Mounir AL Chaer
Quality Center 11 – Test Case Example Senior Test Manager Mounir AL Chaer
Copy, Paste & Rename Testcases • Convenientreuse of verysemilar scenarios. Copy and change the small variants in the copy. Rightclicktestcase to becopied Rightclick destination folder to paste Rightclick new copy to rename Senior Test Manager Mounir AL Chaer
Insert parameter • Wheninsertingspecific parameters in testcases, youwillbepromted to insert a value for the parameter, whenrunning the test. (The functionality is not widelyused) • 1. Put the cursor whereyouwant to insert a parameter • 2. Click ”Insert Parameter” Ikon • 3. Insert parameter name • 4. Voila new parameter ”Customer no.” inserted • Thiswillbeexplained in training session 2, but just for the understanding – youwillseethispromtwhenrunning the test Senior Test Manager Mounir AL Chaer
Short demo in Quality Center 11 Senior Test Manager Mounir AL Chaer
Excersice 1 – Test Plan • Exercise Senior Test Manager Mounir AL Chaer
2. Give a short useful Test Set name Test Lab (Test execution) 1. Test Lab is where the execution of the test cases areplaned and done 3. Mark folder and create test set 4. Add test cases to test set Senior Test Manager Mounir AL Chaer
Example of a test set with test cases • Eksempel: Et kundeadministrations test set med forskellige test cases, der beskriver varianter af ændring af stamdata. Senior Test Manager Mounir AL Chaer
Test execution – Execute Test Scenario • The Test person is executing the Test scenario • Mark the test case in a test set and press on the Run button. Senior Test Manager Mounir AL Chaer
Test execution in Quality Center 11 • Press Begin Run Senior Test Manager Mounir AL Chaer
Test execution – Mark steps with correct execution status • If step is failed, thenpress the defecticon to create a defectreport • Test the case step by step and mark the steps as passed or failed. • Add a comment of the actual test result in the text box "Actual" if the step is failed Senior Test Manager Mounir AL Chaer
Short demo in Quality Center Senior Test Manager Mounir AL Chaer
Exercise 2 - TEST LAB • Exercise Senior Test Manager Mounir AL Chaer
Test execution – Create a defect in QC 11 1. Define a short informative headline 2. Mandatoryfields • 3. Attachany file or screen dump illustrating the error • 4. Report the defect by pressing Submit Senior Test Manager Mounir AL Chaer
Quality Center – DefectProcess Defect status: Ny – til vurdering Ny - til rettelse Mangler information I gang Klar til test Test i gang Test ej ok Test ok Afvist Log liste Lukket Changerequest Kritisk til IT Data klargøring Afventer nyt load 32 Senior Test Manager Mounir AL Chaer
Defects Module QC 11 • Whenopening a defectyouwillnormallybeon the screen ’ Details’ • Handl defects according to rules in the project • Documentchangesorcomments • Whendefectarefixedchange ’status’ and ’videregivet til’ Senior Test Manager Mounir AL Chaer
Handling Defects – Re-Test a fixeddefect • Open the defectyouwant to retest • ClickonLinkedEnitities and Go to 'Linked by' entity'….. Senior Test Manager Mounir AL Chaer
Handling Defects – Re-Test a fixeddefect • Run the test case again Senior Test Manager Mounir AL Chaer
Exercise 3 • Exercise Senior Test Manager Mounir AL Chaer
Short demo in Quality Center 11 • Test kan føles som at lede efter den perfekte perle… Senior Test Manager Mounir AL Chaer
Testforløbet • Designdokument færdigt og godkendt • Testcases til integrationstesten udarbejdes tidligt for at sikre: • at kravene er testbare • at vi ikke har glemt nogle krav • at vi har grundlaget for at gennemføre test (både af det der skal virke og det der ikke må ske kan håndteres) • Detailed design • Testcases til unittesten udarbejdes af udvikler for at sikre at rettelser i Z-kode/komponent/Funktion/Data objekt/Tabel/Applikationskomponent fungerer som specificeres og kan integrere med omkringliggende grænseflader (rettelser i Interface enhed) – desuden testcases til negativ test • Testcases til regressionstest udarbejdes til at sikre at kørende systemer der ikke er rettet ikke pludselig får en følgefejl • Test cases integrationstesten (systemtest) udarbejdes for at sikre en teknisk end-to-end test af funktioner der går på tværs af hinanden samt tjek af områder som performance, sikkerhed, backup/recovery, scalability, m.v. Senior Test Manager Mounir AL Chaer
Kontaktinformation vedr. test i Systemoptimering • Senior Test ManagerMounir AL Chaere-mail: mounir@alchaer.dkTlf. +45 3115 5550 Senior Test Manager Mounir AL Chaer