Home
Activity Diagram
Contents
1. Low Decision box Password String 5 CB Signin Button l RA User shall click Signin Bu Variable Data Object Invalid Username and Password beg SM Error Message Error M Q RA System displays enter us Invalid password lis SM Error Message Error M Q RA System displays enter yo 4 DS Account Screen C RA System navigates to Acc Either username or password wrong lis SM Error Message Error M C RA System displays User unk Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 37 CONFORMIO Automated Test Design p deabytes The Activity Diagram Additional features e Set State Variable action to modify values of state variables Ability to define state variables of type string Boolean Number amp Date in Activity Diagrams Erida Ninvambhar 91 50A1 Friday November 21 2014 Cc i pra NAnanurinrht C Annfn FMN Ir Inn anA ite oc heir T AC A InNnte reo nnic Copyright Conformiq Inc and its subsidiaries All rights reserved aS CONFORMIQ Automated Test Design d Ideabutes The Activity Diagram State Variables U Pri E ied RM url Message Q RA Enter url gmail logon Fill Credentials ru ro ro EL 25 Gu 21 a ua 2 nul a E E73 DS gmal login Screen FF Lagin Form g g g E RA System shall display Logi
2. D Login Interfaces sl password Problems 23 Sc 1 error 0 warnings 0 others Description Resourc 4 9 Errors 1 item Add an Activity Diagram to the model to enable test generation model ME T t jm Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 75 CONFORMIQ Automated Test Design b Ideabutes Creating an Activity Diagram 1 Now let s create Activity Diagram and refine it accordingly for Test Generation using the Actions we ve created previously 2 Right click on model folder and select New Activity Diagram as shown Conformiq Modeling Login model Login Interfaces sd Conformiq a File Edit Diagram Search Project Conformiq Window Help A4 iE e aa wa L E ER e e FAs e Emi Bee E OMOEA sg SB r Conformig Test Design E Conformiq Debugging 4 Proje 24 7 Palette G Outline O Login Interfaces sd 23 O B Properties 23 a gt o TET o a x H model Login Login Ee Error Property Value 4 Info E C Project OK derived false editable true Activity Dia z ian last modified 19 marraskuuta 2 as Dm e linked false Ctrl V Folder location C Users Stephan Delete Structure Diagram 1 name model path Login model Example F2 F3 Other Ctrl N g Import r gq Export Refresh F5 Run As 4 n t Debug As Bi Problems Tom x TO 1 error 0 warni Sora 3 D
3. 59 Click on the action in the activity diagrams Double click on the Popup Contents Field in the property view Select New Error Popup Value a Specify Popup Contents for Display Error Popup 2 Don t care C Default Initialized Error Popup Value OK Cancel 60 We could single click now on the Error Text field and simply type our text into the field Instead let us double click and we get to a Text Selection dialog Ce Display Error Popup Precondition doul s ES 4 E Popup Contents E Value Name ae A re Error Text Specify Error Text field for Error Popup Value 4 OK Button Wid a E Data Object Field a Login Form I Value of Login Form gt User Name I Value of Login Form gt Password 4 F String Function fet Conversion to String fx Concatenate Strings Don t care OK Cancel Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 97 aS CONFORMIQ Automated Test Design i gt Ideabytes 61 Select String Value and click OK String Value element is now used for the Error Text property Type Incorrect user Click Save ta Display Error Popup El Entered user data Expected data Login Form User Name String Q Precondition double click to specify Password String User Name oe admin 4 Ej Popup Contents Error Popup Value Password S
4. Error Message gt EA Set State Variable Action 4 fog User Entry Action Gia Tester Input Ed google pee EL OLD E url amp Url String Username sta display Output E Error 8 Error String 4 gmal login Screen EN e Click Signin Button Fill Login Form ES Account Corey E google Screen amp 3 Click gmail Hyperlink Requirement Action Narrative Action Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 32 CONFORMIQ Automated Test Design ideabytes The Structure Diagram Listbox widget in forms ES google E gmal login B gal login FER Tester Input qma il Login Login E url amp Url String Username ss Username sd oe display Output El Account Gf o cx E s m lii Error amp Error String Signin Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 33 aS CONFORMIQ Automated Test Design ideabytes The Structure Diagram Specification of tree nodes in SDs as part of screen and popups E gmal login Successful login Login LJ a 8m X Signin Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 34 a CONFORMIQ Automated Test Design ldeabytes Part B Modeling with Activity Diagrams Day 2 FN Copyright Conformig Inc and its subsidi
5. Request User Information Activity 5 p Node and then click on the lightning bolt icon ne 34 The Action dialog should appear as below Select Action to add 4 T3 Display Popup Action r3 Display Error Popup 4 E Display Screen Action E53 Display Login Screen EA Set State Variable Action 4 fog User Entry Action 4 TE Error Popup FS Click OK Button 4 Login Screen Fill Login Form Q Requirement Action Narrative Action E ox 35 The first Action in this Activity is that the system displays the Login screen to the user Select the Display Login Screen Action and click lt ENTERs gt Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 87 CONFORMIQ Automated Test Design b Ideobutes 36 The Property View shows the Display Login Screen Action added Login Interfaces sd Login App ad 3 O Ed Properties 3 a is as OBL Display Login Screen Precondition double click to specify E Screen Contents Default Initialized Login Screen Value ow 3 E i e c Is User Correct Y ai gt Fm Login A Request User Information Ds Login Screen Report error 37 Next hover again over the activity and click on the lightning bolt The Action dialog should appear 38 Select User Entry Action gt Login Screen gt Fill Login Form Action and click ENTEH
6. uU ha Ps a j E e a a i F r a p z Login F n 7 a a P gt ur a e Is User Correct 1 i ra EM d 1 E j Happy End Repart error 31 The TODO messages listed at the bottom need to go away before this Activity Diagram can actually generate test cases We will discuss this topic in subsequent slides 32 Note that at this point we still have two warnings to do s on this Activity Diagram a pem 5 items 3 Main activity diagram is not selected please select one of your diagrams as main diagram model Model Missing specification of First Value in Condition Login App ad Decision Node Ts User Correct Condition Missing specification of Second Value in Condition Login App ad Decision Node Is User Correct Condition TODO Please add either actions or another Activity Diagram as a sub diagram for Activity Node Report error Login App ad Activity Node Report error TODO Please add either actions or another Activity Diagram as a sub diagram for Activity Node Request User Information Login App ad Activity Node Request User Information The above errors need to be removed before the Activity Diagram can automatically generate test cases Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 86 CONFORMIQ Automated Test Design b Ideaobutes Refining the Activity Diagram with Generated Actions 33 Hover over the
7. Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 64 aS CONFORMIQ Automated Test Design i gt Ideabytes 2 Once below Window appears accept the default Test Design Configuration Name DC and click the Next button Ero Conformig Creator project creation wizard aff 1 Give project a name Login 4f 2 Create model files empty project 3 Specify testing configuration 4 Define scripting backend for test design configuration 0 scripters selected Test Design Configuration name DC Designer automatically sets target values for testing goals Select below how would you like Designer to set these values Default Aims to cover the most important aspects of the model structure in addition to the requirements Requirements and basic structural features are set as targets O Requirements Aims to cover requirements only Only requirements are set as targets Exhaustive Aims to cover model aspects exhaustively Requirements and advanced structural features are set as targets eee eee mM Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 65 aS CONFORMIQ Automated Test Design i gt Ideabytes 3 Below window appears you need to define your Scripting Backend s In this initial exercise we will not need any so just click the Finish button Sse Conformig Creator project creation wizard af 1
8. aS CONFORMIQ Automated Test Design i gt Ideabytes 52 Select Login Form Value Type in the Value Name Expected data type in the User Name admin and Password password123 and click lt ENTER gt 53 A Login Form Value object is added to your Activity Diagram as shown below E Value Data Object 1 Value Login Form 5 Value Name Expected data 4 User Name String I admin dj click to add alternatives 4 L Password String E password 123 E lt click to add alternatives SS Expected data Login Form a UserMame admin Password St password 123 Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 94 aS CONFORMIQ Automated Test Design i Ideobutes 54 Using a Data Flow symbol connect the Expected data object to the Is User Correct Decision Click Save 55 We ve now defined a condition that if the username equals to admin and the password equals to password123 then the Decision outcome is Yes and connects into the Happy End Final Node otherwise the Decision outcome is No and connects to the Report error Activity gt At this point your Activity Diagram should look similar to this Eel Entered user data Expected data Login Form User Name String Password String UserName admin Password 5t password 123 n
9. standard activity diagram symbols S Fil Query Refine activities and decision based on action keywords and data objects from repository e Action Keyword Repository Action keywords and data objects generated from interface objects e Structure Diagrams SD Define external SUT interfaces available for testing based on predefined interface objects Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 8 a CONFORMIQ Automated Test Design Ildeabytes ATA MBT in E2E Solution Approach Requirement amp Test Bug Tracking Management e HP QC DOORS Rally Requisite Pro Ies Execution Reports Regs X Test Desc Coverage Issues A Application model will be done by SMEs Fixes Releases 0002502 1 uud Settings Pd e Test Execution Tests Too Is z Settings e Conformiq Creator Tests erly e Sie MA Adapters e Selenium e Visio P IBM RFT e IBM RSAV RTE Le e Microsoft Visual e Titan TTCN te Version Control Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 9 aS CONFORMIQ Automated Test Design i Ideobutes Key Features of Conformig Creator Support for subset of standard activity diagram symbols KS Mapping to UML activity diagrams e Support for graphical data flow specification e Support for modular model constructio
10. Q RA User shall fill in login cre Select Action to add m gt E Display Screen Action uf p EUER i a aay A F 1 Ej CB Signin Button gt lid Receive Message Action e password 2 0 username z ERE XE E hal ioni ne P Q RA User shall click Signin Bu I CIEL a Set State Variable Action EA Set Boolean State Variable Invalid Username and Password Set Date State Variable P Bi T Set Number State Variable lt both WE ig SM Error Message Error M Set String State Variable i dl RA System displays enter us Sencar b tT Account Screen Requirement Action System navigates to Acc Rl Narrative Action Either username or password wrong lis SM Error Message Error M RA System displays User unk OK Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 39 CONFORMIQ Automated Test Design L Ideobutes The Activity Diagram List box widgets Forms Users can specify list boxes as part of forms Please note that when specifying data in conditions or constraints one specific list box value models all the selected fields which maybe none one or more Alternative values specify a list of possible selections Note also that using listboxes with different Data Coverage setting requires _ the explicit enumeration of selection of interest using alternative values in a Form Va
11. gt r Is User Correct o I E r iT a pF E13 DS Login Screen E a FF Login Form H Happy End CB Login Button Report error 47 Next we ll map the Entered user data variable data object to the Is User Correct Decision You can tie individual variables username or password in this case or the entire object all variables 48 Let s tie the entire object for comparing both the username and password between the stored form data and the expected data for the decision making Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 92 a CONFORMIQ Automated Test Design d Ideobutes 49 Click again on the Data Flow symbol then click inside the top bar of the Entered user data variable object and then click inside the s User Correct Decision object 50 Next we ll define the expected data for the username and password to compare against in the Decision In other words in this example we are going to compare the stored data against some hard coded values 51 Click on the Value Data object symbol on the modeling toolbar and then click inside the canvas The Value Data Object dialog should open as below A list of elements should appear Select Value Data Object to add E Form E Login Form Cancel Copyright Conformiq Inc and its subsidiaries All rights reserved Friday November 21 2014 93
12. i e basis of actions used in these Activity diagrams e Sharing of all Activity diagrams referenced as subdiagrams a CONFORMIQ Automated Test Design i Ideabutes Installing Conformiq Creator Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 23 CONFORMIO Automated Test Design p deabytes installation Recommendation e Installation And Hardware Requirements amp OS Contormig tool comes in client server architecture where the client user interface is implemented as an Eclipse plugin The server component Conformigq Computation oerver can be installed on the same computer as the Conformiq Eclipse Client or on another computer on the same local area network 2 CONFORMIQ Automated Test Design i gt Ideobutes Hardware Requirements and Hecommendations The Following Details the strict requirements for the Hardware It lists 3 types of Installation and the corresponding requirements amp recommendations 1 Full Creator installation including both client and computation server default 2 he client only and 3 he server only Industrial deployments should be base on 64 bit architecture even if the tool chain operates on 32 bit platform EMEN Fl o Client only Physical Memory x86 family with 4 x86 family with 2 x86 family with 4 Processor cores or 2 HT cores cores or 1 HT core at cores or 2 HT cores at 2GHz 2GHz at 2GHz installation only where HT stands
13. v Y ID Mame Targets covered Q1 Successful Login Included in Login App 17 1 req s 16 other Q2 Invalid Login Included in Login App 25 2 req 5 23 other Note lest case names were constructed from the Requirement Actions you ve added to the model Tip If you don t see test cases in the Test Case View this can be due to some default settings To fix that in the Project Explorer right click on the model name Login Modef and select Properties The Properties for the Login Model window should be displayed Click on the Conformiq Options tab Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 105 aS CONFORMIQ Automated Test Design i gt Ideabytes 2 Change the Lookahead Depth value to 2 as shown below click OK to save and close the Properties Window 3 Reload and regenerate test cases refer to the steps above if you need assistance Now you should be getting two test cases as shown above Properties for Login z E e Conformiq Options T DER Ri Ourrc sami E Lookahead Depth Maximum Communication Delay Conformig Options Project References Run Debug Settings Test Case Selection Test Selection Optimized for Compactness Test Suite Options Only Finalized Runs Stop At Full Requirement Coverage Stop At Full Coverage Test Case Naming V Automatic Test Case Naming Test Case 0 b d Cancel Copyright Conformig Inc and i
14. Design i Ideoabutes 5 Click on the Screen symbol from the Modeling toolbar and then click anywhere in the canvas to place it 6 Type in Login Click Save 7 A Login Screen should appear in the Structure Diagram as shown below Login Interfaces sd x Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 68 aS CONFORMIQ Automated Test Design i Ideabutes 8 Click on the Form symbol from the Modeling toolbar and then click within the screen object to place it there 9 Type Login A Login Form is now added to the Structure Diagram Click Save Login Interfaces sd 3 Login Login B 10 Note the livecheck errors in the Problems view ue Problems 33 2 errors warnings 0 others Description IF 3 Errors 2 items Add an Activity Diagram to the model to enable test generation Form Login must contain at least one data Widget Text Box Check Box Dropdown Radio Button List Box or Calendar Widget Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 69 a CONFORMIQ Automated Test Design i Ideobutes 11 A Form should have at least one data widget see related Error Let s add some data widgets to the newly created form 12 Hover over the Login Form and select the text box widget icon from the hover tool bar Login Interfaces sd 5 E Login El Login aj 13 Ty
15. Generate test cases Export best cases Tester Simple Web Application amp Login UserType n T gamten message Rei be Chempotes O O 8 eie sa sa ws v ez admin gt e conti Tene Test Generation done MenuBar 8 user a case j le 7 m File Help D ge A ac a DI en Sav Help a FUeddefenpetegesusd o fag anan Cabins SEAR TAER ad taaa ON 0 ll LMI a lie IW l a s ave P i Users gt l 4 thet 0 trga p 4 w P at userName String Usertrte TE 7 Userinfo act Cation fa tagh eseni n o password String t 60 F i Qn nd di 8 usertype UserType Display ESD Mo scree slay ESD OA Ore ctoaltetstepe o MEE as ers userName teno ke n password Q i 50 Maa Qo dam se T Search z Hl terr t AU n t h a 8 userName String me OK 8 password String he wa 9m wX Ib A A ld L z Iterative Approach Eclipse based IDE Publishing the outputs Creator Activity Diagrams Actions generated from Structure Diagrams Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 5 CONFORMIO Automated Test Design p deabytes MBT Architecture using Conformig Model system functional behaviour Attached scripting Render test cases Test Automation 9 gets errgie Wes Apgkcut Fen OFF GeelFiten OFF Qj CovengeFiten OFF Spe Web Appixstion logn ito
16. The Fill Login Form Login Screenf Action is now added to the list 39 he last Action on this Activity after the user fills out the Login Form is for the user to click on the Login button Let s add this Action 40 Add the User Entry Action gt Login Screen gt Click Login Button Action similarly to the previous steps Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 88 aS CONFORMIQ Automated Test Design i gt Ideabutes 41 The Request User Information Activity should now look like this Login Interfaces sd Login App ad 23 O Request User Information M b lt E User Correct E53 DS Login Screen b P FF Login Form Happy End 1 CB Login Button Report errar Note DS FF and CB are abbreviations used for Display Screen Fill Form and Click Button Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 89 a CONFORMIQ Automated Test Design i Ideobutes 42 Next you ll add some logic to the Is User Correct Decision How would you determine if the data the user entered is valid or not We need to store the data somewhere and then compare it with some expected data 43 Lets add some variables by clicking on the Variable Data Object symbol in the modeling toolbar and then click inside the canvas to place it The Variable Data Object selection dialog should appear as below Selec
17. bd Input Constraint Service Request Message Value lid RM Service cad Mess H s Value Mame C RA HP OCT 3 Precondition double click to specify opecifies that any Service Request received at this point must have Type A and true values for request type and valid content fields text and Priority field values are not constrained 4 Request Type Request type Enumeration Type A double click to add alternatives al D valid content Boolean D true Es double click to add alternatives 4 ae Textfield String aac Don t care Store Result in data flow to Recerved request Variable after this action NOTE This eliminates the ability to y 7 IB lt click to add altematives gt specify decisions on request gt OWA 4 B Priority Boolean t d valid tent field 4 CN Don t care ype ana valla content TIeids d EE EE N o IE double click to add alternatives Copyright Conformig Inc and its subsidiaries All rights reserved 9 52 CONFORMIO Automated Test Design p deabytes Dealing with Inout Data Dependencies e Often input field values may have complex dependencies Simple example User name amp password during login More advanced Country amp language selection on a web portal Easiest is to constrain input values is to specify relevant value combinations in a value list Copy amp paste values to speed up
18. data flows and conditions based on generated Action Keyword Repository to reflect business rules 4 Validate your model by peer review and reviewing tests generated in Conformiq Test Design perspective o Hender and upload reviewed tests for documentation and or test execution riaht Gonformia Inc and its subsidiaries All riahts reserved Friday Novemher 21 2014 vOpyrignt Y Lonrormidg INC anda IS SubDsidaliaries All rIgnts reserved rriday November 21 2014 i bw J J CONFORMIO Automated Test Design p deabytes Modeling of Available SUT Interfaces Model all message based and user interfaces required and available to og gt validate SUT operation I Ideally reuse and leverage existing ini Weed test harness information IE Transform and import via XML e Start again small by modeling only relevant interface information Only messages and message fields relevantto system operation Only screens forms etc or widgets Serve o pe like buttons table columns text boxes etc required to realize J WO rkflows Einem rE String Then extend interface definitions Se based on need em Remove item AX Q 2 Add Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 15 CONFORMIO Automated Test Design b Ideabytes Refining SUT Operation for Test Generation Use action keywords and gu data objects gener
19. for hyper threading i CONFORMIQ Automated Test Design Ideoabuytes Hardware Requirements and Recommendations The following details the recommendations for the hardware Physical Memory RAM gt 16GB gt 8 GB gt 16 GB 64 bit x86 family with 8 64 bit x86 family with 4 64 bit x86 family with 8 cores or 4 HT cores cores or 2 HT cores cores or 4 HT cores Processor A good rule of thumb is memory in GB is more than 2 times number of cores so for example a machine with 8 cores should have at least 16 GB of physical memory Copyright Conformiq Inc and its subsidiaries All rights reserved Friday November 21 2014 26 a CONFORMIQ Automated Test Design i Ideobutes Software Requirements Conformiq Creator 2 installer Required Java environment for running Conformig Eclipse Client QEC is Sun Java 6 or higher e Windows XP Windows Vista Windows 7 are supported Windows distributions are provided both as a 32 and 64 bit installations e The 32 bit installation can be executed also in 64 bit environments e Itis highly recommended to use native 64 bit installation on 64 bit systems It is highly recommended to install SP3 or newer to Windows XP to take advantage of parallel test generation algorithm a CONFORMIQ Automated Test Design ldeabytes Part A Modeling with Structure Diagrams Copyright Conformig Inc and its subsidiaries All rights reserved Friday November
20. 21 2014 28 C a ONFORMICO Automated Test Design Ildeabytes p The Structure Diagram SUT Defines the SUT interfaces available for testing 4 Message concept for message based interfaces Specities interface s amp message fields Screen Popup Form Data Table concepts for UI nterfaces Including input widgets like text box dropdown checkbox etc Including action widgets like button link tab expander menu etc A generic concept of a data table o manage Data Table content or model data base like SUT behavior Has to be mapped to a form or message in an structure diagram to store received data and to a Data Table to display contents Can be initialized via a XLS CSV file Cnnvrinht A C nntrnrmin Inn and ite c heiniarine All rinhte rennen Erica Ninvambhar 94 INVA 4 Uopyrl gl It amp Gonrormicd inc ana Its SuDSIGIaries All rignts reserved Friday November 21 2014 a CONFORMIQ Automated Test Design ldeabytes Structure Diagram for Gmail Login L Define external SUT interfaces available for testing based on predefined interface objects L Considering Gmail Login Scenario Receive Error Message if username and password are incorrect Navigate to Account Page if username and password are correct Not considering further flow Edi google E gmal login E Account sa Tester Input gmail Login Form Message lis url definition LL 1 Url String Use
21. 91 40 6453 5959 South East Asia Kuala Lumpur Malaysia Phone 60 16 220 1365 USA 3389 Napoli pl San Jose CA 951 35 Phone 1 408 600 1439 www ideabytes com areas Ideabytes nc 2013 contact ideabytes com
22. Give project a name Login 4 2 Create model files empty project yl 3 Specify testing configuration DC target set default 4 Define scripting backend for test design configuration Source ESR Tb ans p D Files in source ExcelScripter jar E QCALMScripter jar E RallyScripter jar Copyright Conformiq Inc and its subsidiaries All rights reserved Friday November 21 2014 66 aS CONFORMIQ Automated Test Design i gt Ideabytes Creating an Structure Diagram 1 In Conformiq Creator in the Project Explorer view right click on model folder and select New gt Structure Diagram 2 The following Create Structure Diagram New Structure Diagram ESEEGE D dialog appears Create Structure Diagram Select file that will contain diagram model Enter or select the parent folder Login model a j Login 5 model Diagram name Btructure Diagram sd Advanced gt gt Contormig Modeling Login model Login Inter File Edit Diagram Search Project Conform 3 In the Diagram Name field type Login Interfaces mis PJ 4 Click on Conformiq Modeling perspective an empty Structure Diagram should be opened in the File viewer Conformiq Test 5 Conformiq Modeling i Project Explorer 28 7 Palette G Outline a E Login Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 67 aS CONFORMIQ Automated Test
23. IQ Automated Test Design d Ideabutes 68 Type in the Narrative field User logs in successfully Properties 3 r4 E N Narrative Action i Precondition double click to specify m Narrative User logs in successfully Successful Login o RA Successful 69 Your new Activity Node should now have one Requirement Action and one Narrative Action gt 70 Similarly add a Requirement Action and a Narrative Action to the Report Error Activity Node 71 Finally set in the Project Explorer the Login App as your main activity diagram 4 Project Ex 3 7 Palette p Outline E Logi gi a E Login 4 i gt model an Login App ad D Login Interf Login Interf 71 Now you are ready to generate test cases from this Activity Diagram Copyright Conformiq Inc and its subsidiaries All rights reserved Friday November 21 2014 100 d CONFORMIO Automated Test Design j Ideabytes Generating Test Cases from an Activity Diagram 1 Click Load Model in the Creator tool bar Conformiq Modeling Login model Login App ad Conformiq lolol z g tog g File Edit Diagram Search Project Conformiq Window Help i e 5x 9006690l 77ImmO ee 10 E S Conformiq Modeling Conformiq Test Design F Conformiq Debugging Project Ex 3 2 Pa
24. LI p a A P Low L RT a d lH fit z a ie Request User Information li d i ac s User Correct o I E a s F E53 DS Login Screen h a EE FF Login Form E Happy End amp CB Login Button Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 95 aS CONFORMIQ Automated Test Design d Ideabutes 56 As you can guess from the last TODO error in the Problems View we still need to define an Action for the Report error Activity 57 As before in order to do so hover the mouse over the Report error Activity click on the lightning bolt 58 Select Display Error Popup Action A Display Error Popup Action should be added to the Actions in the Report error Activity i 4 Display Error Popup Ea Entered user data E Expected data Login Form User Name String Precondition double click to specify Password String User Name admin Ej Popup Contents Default Initialized Error Popup Value Password St password 123 ih A x d Fa ar i 4 Request User Information PW C Fr s User Correct o Bp DS Login Screen P FF Login Form E i Happy End 4 CE Login Button Report error Eu DP Error Popup Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 96 aS CONFORMIQ Automated Test Design d Ideabutes
25. Q Automated Test Design i Ideobutes 17 Now connect the Control Flow Node to the Final Node by dragging the anchor displayed when hovering above the Is User Correct Decision Node Since you are trying to connect a Flow Control Node you d get the following dialog P Mame Is User Corr a B Condition Equals PF UCSC dy First Value dc ae User Cor a am 4 Second Value I b i J H Create False Control Flow a Create True Control Flow 18 For this Happy End path select the Yes option The Yes control flow should be added to the Activity Diagram 19 In case that the user is incorrect lets report an error 20 Add a new Activity Node titled Report error Look at previous steps if you need to refresh your memory 21 Heport error Activity Node should be added to the Activity Diagram Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 a CONFORMIQ Automated Test Design i Ideobutes 22 Next connect the Is User Correct Decision Node to the Report error Activity Node This time pick the No option The No control flow should be added to the Activity Diagram 23 This is how your Activity Diagram should look so far Login Interfaces sd Login App ad 25 F a p m ES p b uU T s E E Request User Informatics 24 According to the AUT Application under Test if the user provides invalid login cre
26. a Login Model Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 62 a CONFORMIQ Automated Test Design i Ideobutes Table of Contents Creating a New Conformiq Creator Project Creating an Activity Diagram Creating an Structure Diagram Refining the Activity Diagram with Generated Actions Generating Jest Cases from an Activity Diagram Analyzing Test Cases in Conformiq Creator Modifying a Model Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 63 CONFORMIQ Automated Test Design b Ideabutes Creating a New Conformiq Creator Project 1 In Conformiq Creator from the main menu select File gt New gt Conformig Creator Project A New Project Dialog box appears Amim Conformiq Creator project creation wizard 1 Give project a name mandatory 2 Create model files empty project 3 Specify testing configuration DC target set default 4 Define scripting backend for test design configuration 0 scripters selected a Project name Mew Project v Use default lacation C Users Stephan workspace Adam New Project Browse E J Create project using template Create empty project Create project and import model files S N F Back Next gt Finish Cancel 2 Type Login Model e g Gmail in Project name field and select Create empty project and click the Next button
27. a fX Boolean or F fx Boolean Equals OR condition 4 I First Value Value of Ttemrn Form gt sku otring condition Form Entered Item Variable ic Second Value CQ 0001 a fX Boolean Equals 4 I First Value Value of Item Form gt sku Form Entered Item Variable ABC Second Value CQ 0003 a fX Boolean Equals 4 E First Value Value of Ttem Form gt sku E Form Entered Item Variable Fe Second Value CO 0003 IE Boolean double click to add Number condition F fx Boolean Equals 4 r First Value Value of Ttem Form gt qty Form Entered Item Variable a fX Second Value Number Range 10 Lower Bound 1 10 Upper Bound 10 E Boolean double click to add otring condition Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 51 CONFORMIO Automated Test Design p deabytes Inout Action Data Constraints e Allow constraining received data values in input actions I G receive message and user entry actions Creator automatically constrains fields of enumeration type Data coverage setting can be used to control the amount of input data generated by Conformig Creator default is at least one e Can only be specified using complete data object values e Can also limit possibilities for Conformig creator to generate tests e Q to Cover all conditio bd Receive Service Request Message 4
28. aS CONFORMIQ Automated Test Design d Ideabutes N A REQUIREMENTS AUTOMATED TEST DESIGN SYSTEM MODEL CREATION MANUAL TEST DESIGN Getting Started with Conformiq Creator TEST SCRIPTS Li TEST EXECUTION ANN ge mes mum mum m Mm Oum um Oum Oum 2 2 OS Om 2 um S ERR eS m m s CONFORMIQ Creator CONFORMIQ Designer 2 ae SS ee Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 1 CONFORMIO Automated Test Design b Ideabuytes Contents Introduction to Conformiq Creator nstalling Conformiq Creator Working with Conformiq Creator Theoretical Part A Modeling with Interface Diagrams Part B Modeling with Activity Diagrams Getting Started with Conformiq Creator Examples Getting Started with your own Creator Project Practical Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 2 aS CONFORMIQ Automated Test Design i gt Ideabutes Creator at a glance Introduction to Conformiq Creator Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 3 L CONFORMIQ Automated Test Design i gt Ideabutes Conformig ATD Creator version Conformig Creator MBT Conformiq Designer ATD Test Models Frameworks Keyword Driven Scripts Based Capture Replay Manual ATD Automated fest Desig
29. age Filters OFF ple Web Application Login Login with Data Table a p renal DX 10056 B7 57 Testing Goals a 1 Loginad v 10511 Reaurementr ain Aj 100 1 1 HP QC 1 2 3 nitisl Hode E E Invakd Login x Inckaded in Simpie Web Application a 1308 54 54 Acity Diagrams Request usar ta keegan 10078 17 17 Podes weel pri d 8 17 1 ca z e amp ful kg 100 17 17 SI Web thon i L ce ValidUser Activity Add Item C m x Activity Add To Cart gnus m D Login with Data Takble ad ey Conc Dat aa Spie Web Application ad main x Activity Intlalize Sage Wie Apple tend ul Activity Invalid Entry GH Dbh bra 3 teriple Web Application il Ld Activity Login Ej Users coy e MOSS Activity Login i ExcelMMappings xis Activity Invalid Login 87 ExcelTemplate xiz BB Excel TestSuste xs Mr Request uer to login i Progress Panel En Progress B il Lhecizion Walid Leer 5 Final Successful login i j Project Simple Web Application d Fog n bow _ ba imm T n 1 cr E wd Hk Tet Canso L1 Breakpoint 2 Model Cefect C HI Add iten with sku CQ D002 and qty 5 te shopping ciet H x E ERIGI i ET r Tester H B F temOFR Sort Tets Shortest Oldest Test First Fic De E ID Mame Target Recene Configuration message L Receive Configurstion message 1 Fld From config Time Test Generation done Oi b Simple Web Application Actitty Login Deci
30. aries All rights reserved Friday November 21 2014 35 C aS ONFORMICO Automated Test Design Ideobutes The Activity Diagram Defines the SUT functionality to be tested e Specifies abstract control flow aspects by using standard activity diagram symbols what to test Initial node sub activity final node event decision merge control flow x Activities and decision diamonds are refined with actions and conditions from the action repository how to test L Action are specified from generated action keywords and can include pre conditions constraints on received data and storing or production of data Conditions are specified based on generated data objects including variables and different kinds of values Data flow aspects can be specified graphically with generated data objects and data flows aS CONFORMIQ Automated Test Design ildeabytes Activity flow for Gmail Login what to test how to test E3 DS google Screen google Initial node starts ied RM url Message control flow RA System shall display goo Q RA Sy play g Q RA Enter url gmail link gmail logon Fill Form FF Login Form A E entered data Login Form Q RA User shall fill in login cre Username String E CL gmail Hyperlink E DS gmal login Screen C RA System shall display Logi C RA User sgall click gmal hyp
31. art of userName String Valid username the oimple Web Application example password String valid passwords nn vi ut CY CC nRmtam rm IN Inn Arn ri T C o l a i ri 1 Arij AC A ri X ht Cc racarvec N r r Te Ny NOY enmner yr Uopyrl ght Conforn IQ Inc and its subsidiaries All rignts reserved Friday November 21 2014 a CONFORMIQ Automated Test Design i Ideabutes Finally Actions on data e Actions on data e g concatenate strings or arithmetic computation have to be done as part of verification actions or when adding a table entry EN red efi n ed fu n Ct ons Specify Second Value for Equals 4 10 Data Object Field for basic types offer most a Atte Form E Value of Item Form gt qty basic data operations a E Tems Data Table Entry 10 Value of Items Data Table Entry gt qty 4 710 Number Function 4 J0 Arithmetic Operation fx Add fx Subtract fx Multiply fx Divide 4 Data Table Function we Size of Data Table 4 c String Function we Length of String TO Variable Data Object E 5 Don t care 10 Mew Number Value fx Number Range Example Number Functions Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 99 a CONFORMIQ Automated Test Design i Ideobutes Getting Started with Conformiq Creator Examples 7 4 Copyright Conformiq Inc and its subsidiaries All rights reserved Friday Nov
32. ated from 7 otructure Diagram s m e Extend existing flows or add L2 application specific diagram layer if needed Hefined Decision e Add actions to activities e Add data objects and data flow to control flow e Add action pre conditions and decision conditions Refined Activity Copyright Conformiq Inc and its subsidiaries All rights reserved Friday November 21 2014 16 CONFORMIO Automated Test Design L Ideabytes Multi Level Modeling of Workflows Decompose SUT operation starting ideally from business processes Refine activities via one or more levels of sub diagrams to reflect actual operation of SUT or application under test Follow classic pipe cleaner style Start with a few high level flows I e a subset of functionality hen refine by adding more functionality to the different levels Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 CONFORMIO Automated Test Design bb deabytes Important aspect of MBT Functional component Reusability approach Feature 2 Feature 3 Feature Feature 311 Models COD Heusable Common Common Common function Component 1 Component 2 Component 3 Common Common Data Company Level of Definitions across Application Level Configuration pese miden Definitions ail Teatures Model
33. basis for making a decision but also to specify pre conditions in actions e A condition compares two data objects against each other based on a logic operator Avariable or variable field against a variable or variable field Avariable or variable field against a value Conditions are one of the most important constructs in the Creator modeling language but have to be used with care They enable Conformiq s test generation engine to explore and generate tests covering all possible scenarios At the same time conflicting conditions or constraints in different model parts can prevent test generation a CONFORMIQ Automated Test Design d Ideobutes Three Choices for Condition Specification Completely graphical specification Condition composed by drawing variable s or value to be compared and connecting them to decision diamond via data flows operator always assumed to be EQUAL Easiest to specify and review but also most limited in expression Currently only supported for decisions and only for comparing complete data objects only for equality Completely inline specification Entire condition composed by selecting the variable s field or value to be compared and operator via Properties View Most flexible that can be used in any condition specification Mixed graphical and inline specification One or both sides to be compared are specified graphically and the rest oth
34. ces Java files for tests etc 3 Before executing generated test scripts a generic test harness file needs to be implemented one time effort Implementation stubs are generated by scripting backends Please consult the Conformiq Creator User Manual for more information Copyright Conformiq Inc and its subsidiaries All rights reserved Friday November 21 2014 20 aS CONFORMIQ Automated Test Design Ideabutes Use Scenario Collaborative Project Hepository Jim MBT Modeler amp Joe work in a huge project on different features Jim Joe amp Jeff diagrams via a common project repository Joe amp Jim analyze generated tests only for their own features Jill Jane and Jack are not shown here but may still be involved Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 21 a CONFORMIQ Automated Test Design d Ideobutes Versioning and Sharing Creator Diagrams e Diagrams in a project can be versioned as using standard version control software like svn cvs git etc Since diagram files are XML version them as binary e Structure diagrams can be shared with other users or reused in other projects by copying or linking files Activity diagrams can be shared as files or for review by exporting them to a HTML file or printing them Sharing of Activity diagrams as files a so requires e Sharing of all relevant Structure diagram files SD and SL
35. d Data Decision object 19 Add a YES control flow from the Bad Data Decision to Report error Activity 21 We do not care about the NO contro flow Lets draw a Block Node and connect it with a NO control flow 22 The logic we just added to our Activity Diagram is that now the model does not allow a user to login using a username clark or mark and password Passwordt or Passworda2 This completes the changes to the model Copyright Conformiq Inc and its subsidiaries All rights reserved Friday November 21 2014 111 CONFORMIQ Automated Test Design d Ideobuytes Your modified Activity Diagram should look similar to this Login Interfaces sd Login App ad 2 EL E Entered ter Iota y E Expected data Login Form User Name String i Password String User Mame admin f Password 5t password 123 j 3 DS Login Screen q A Q RA Successful FF Login Form Hi N NA User logs in E FF Log gs CB Login Button E Disallowed Login Credentials L 3 DP Error Popup TM Tv ra e uius ser Name clark marl wx Invalid Login Qo ee Password St Passwordl M NA Login Failed L 4 Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 112 a CONFORMIQ Automated Test Design i Ideabutes Re Generating Test Cases from modified Activity Diagram 1 In the Conform
36. dentials and an error has been reported he or she Is redirected to retry to login 25 Therefore let s loop back the Report error Activity Node back to the Request User Information Activity Node Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 84 a CONFORMIQ Automated Test Design i Ideobutes 26 In this example we ll make the merging of Control Flows explicit by using the Merge node 27 Click on the Merge gt symbol from the modeling toolbar and then click on the canvas to place it 28 Type Login in the Name field and then click lt ENTERS gt Click Save A Merge Node titled Login is now added to the Activity Diagram so Login Interfaces sd Login App ad 5 mL lt Is User Correct e ku Happy End Report error 29 Now we ll move and add some Flow Controls connectors 29 1 Move the existing Control Flow from the Initial Node to the Request User Information Activity to Login Merge instead 29 2 Draw a new Control Flow from Login Merge to Request User Information Activity 29 3 Draw a new Control Flow from Report error Activity to Login Merge Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 85 aS CONFORMIQ Automated Test Design i Ideabutes 30 You re Activity Diagram should look similar as below so Login Interfaces sd Login App ad i gaT Fut s P e
37. e be used in verification actions like Send Message or Display screen or Add Table but also in constraint or condition specifications e Alternative Value field EQUAL 1 2 3 or field EQUAL 1 3 More than one value is specified for at least one field within a Value data object Best used with String Enumerated or Number fields in conditions or constraints Basically short hand lt field gt EQUAL 1 OR field EQUAL 2 Alternative values can not be used in verification actions C nnvrinht A Onnfarmin Inn and ite c heinddiariac All rinhte racarvadnd Cridavy Ninvamhar 94 9N1 4 LO p yri gl ITO Lonrtormi q In C and Its SU b sidiaries AI u Ig IIS reserved rri day N ovember z1 2U 14 CONFORMIO Automated Test Design b Ideabytes Data Object Types Example Service Request Message Single Value Variable Only single values Variable name PY Received request Service Request Message Request Type Req Request Type Request type Enumeration valid content Bool true ask Boolean Textfield String Don t care Textiel d string Priority Boolean Priority in Received Priority Boolean Variable fields Variable field reference Alternative values Multiple Requests Service Request Messa bal Value With Alternatives Service f Request Type Req Type A Type Request Type Re valid con
38. e expected values to be compared with This time we ll use a value with alternative values Cnn vi wht A Onnfan rmin Inn An rlit C eo l ej i Niar CC A ri AN h TC racavrwvari E r Ta AV N COO h Ar 94 201 A Copyright Conformiq Inc and its subsidiaries All rights reserved Friday November 21 2014 aS CONFORMIQ Automated Test Design d Ideabutes 13 Create a new Value Data object and select Login Form Value as shown below 14 In the Value Name field type Disallowed Login Credentials 15 In the User Name field add first clark and then as an alternative value mark 16 In the Password field add values Password and Password2 E Properties 2 3 r4 io TOT m Disallowed Login Credentials Value Login Form 5 Value Name Disallowed Login Credentials 4 E User Name String E clark E mark F lt click to add alternatives 4 r Password String r Password I Password2 E lt click to add alternatives Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 110 a CONFORMIQ Automated Test Design d Ideobutes 17 A Disallowed Login Credentials Data object appears in the Activity Diagram as follows T gi L E Disallowed Login Credentials L User MName clark mark Password 5t Passwordl 18 Add a Data Flow connector from the newly created Data object to the Ba
39. e the button Login Next lets create a Popup dialog for an error message 18 Click on the Popup symbol rr from the modeling toolbar then click anywhere in the canvas to place it 19 Instead of typing the name directly let s use the Property View to specify the name Click ENTER Type Error in the Name field in the Property View and click ENTER gt Login Interfaces sd ons 7 B IE Properties 3 EB Popup E Log TE Error Property i Value Default Text E E Log User Name Password Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 73 J J J J aS CONFORMIQ Automated Test Design i gt Ideabutes 20 Select the Button widget from the tool bar and click in the popup 21 Type in OK as the Name 22 A button named OK is now added to the Popup as shown below 32 Login Interfaces sd 5 ES Login FF Error El Login ie Login Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 74 S CON FORMIO Automated Test Design Ideobuytes 23 Save your diagram The Structure Diagram should now appear as below i ideling Login m gin Ir nterfaces sd rt Properties x5 El Screen a E Login i eT ge DC E Logi ITI Property Value 4 model Name z Login p Login Interfaces sd CI
40. ember 21 2014 on O aS CONFORMIQ Automated Test Design i gt Ideabytes How do Install an Example e Select File gt New gt Example and follow wizard instructions Conformiq Modeling Simple Web Service model Simple Web Service ad Conformiq Edit Diagram Search Project Conformiq Window Help Open File Close Close All Save Save As Save All Revert Move Rename Refresh Convert Line Delimiters To Print Switch Workspace Restart Import Export E E Properties 1 Simple Web Application ad Simple W 2 Simple Web Application sd Simple W 3 Login with Data Table ad Simple We 4 Simple Web Service sd Simple Web 5 Copyright Conformig Inc and its subsidiaries All rights reserved Alt Shift N 3 Project b a 1009 Ee Test Design Configuration Ctrl W Scripting Backend Login ad Simple Web Ctrl Shift W Modeling Frontend Plugin Ctrl Shift S lp New Example co a Select a wizard lt gt F2 F5 Wizards Ctrl P Data Entry with Auto Completion to User Interface Tables O Form Data Entry with Auto Completion Form Data Entry with Data Dependencies and Screen Localisation D JSON Web Service with Database Validation Simple Web Application Simple Web Service O User Interface Modelling with Backend Checks Alt Enter Ar 2 Bacl Next Finish Cancel Friday Nov
41. ember 21 2014 57 aS CONFORMIQ Automated Test Design Ideabutes How To Get Tests from the Example s e S e e ct is C O n fo rm q Te St D e S g n Conformiq Test Design Simple Web Service model Simple Web Servi File Edit Diagram Project Window Help perspective ggcoiste ie9e20 e Click Load model and i Project Explorer 2 T yy c 4 Simple Web Application Generate test cases in adeunt add ai Progress Panel view ig Progress Panel 5 Sy Progress Project Simple Web Application e Review test in test case and test case steps view Model Loading done Generate Tests next m Progress messages no errors Hide details 00 00 01 Using Confermiq Computation Service v4 6 0 51596 o 00 00 01 Parsing the model a 00 00 04 Type checking the model a 00 00 06 Applying model transformations E Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 58 h 2 CONFORMIQ Automated Test Design i gt Ideabutes How Io Review Test Generation Results Confermiq Test Design Conformiq c e edm hie Edit Pract Window Help i afan fr E FB Cenfonmg Medal m Conformig Test Design SF Canfeemiq Debugging ie Proci Explorer E EL EB Test Taegete Sonple Web Application E a Model Browder ample Web Applicatian Enn m Tet Ciis Dependency Matris g Model Pashiler BH a Web Application D E D Rites OFF D Goel Fitters OFF D Cover
42. er a Item z Test target sumenery mew 9 removed how damis Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 59 CONFORMIO Automated Test Design p deabytes How to Render Tests to Excel Rally etc e In Example project rig ht click on 153 Project Explorer 4 S EMI 1 EB Test Targets Simple Web Test Design Configuration Icon In a umm ico Application project explorer and select New UN scripting Backend Open TE k 3 Project Rename Example Select Designer Installation do C Othe m 8 New Scripting Backend Configuration es ee R psg Import e Select one or more scripting ee sn A Bem backends G o Eeee EN a T gt Simple w vource f esigner Installation f Browse Click on Render Tests button in Er m Conformiq Creator toolbar and pum open generated output filles with applicable tool Forfurther details on scripting dM J 1 a backend configuration see Conformiq Creator manual Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 60 a CONFORMIQ Automated Test Design i Ideobutes Getting Started with your own Creator Project Copyright Conformiq Inc and its subsidiaries All rights reserved Friday November 21 2014 61 CONFORMIO Automated Test Design i gt Ideabytes Hands on exercise Creating
43. er side or operator is specified via Properties View Best used for decisions based on variable fields Erida Nilnmyvrambhnanr 94 n44 Friday November 21 2014 J J CONFORMIO Automated Test Design p deabytes simple Condition Specification steps to Compare graphically 1 Connect Fill Form action FF to Form Variable using data flow 2 Connect Form Variable to decision using data flow 3 Connect Form Value to decision using data flow Form variable Fill Credentials FS FF Login Form iR RA User shall fill in login cre Li E entered data Login Form E Good name Login Form E gl Username deabytes Password string Password Don t care i a I P nid m e i F Pu hid a am I m P T ae i SO G E T am wa a T em E ud at d i as Si i Form Value with correct data FY CB Signin Button Q RA User shall click Signin Bu Compare variable with the value Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 50 aS CONFORMIQ Automated Test Design Ildeabytes Complex Condition Specification e Combined conditions AND OR NOT XOR allows to compose multiple different conditions e g on a data table and message content correct sku and qty i Name Correct sku and qty B Condition and AND condition Boolean double click to add
44. escripti Resourc Fred ucc Restore from Local History macies 4 Errors Adi Properties Alt Enter E model 4 n t Le Er model Login Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 76 aS CONFORMIQ Automated Test Design i gt Ideabutes 3 In the Create Activity Diagram dialog type in Diagram Name field Login App New Conformig Activity Diagram mcs kads Create Conformig Activity Diagram Select file that will contain diagram model ele iie that will contain diagram mode m s Enter or select the parent folder Login model a Login model Diagram name Advanced gt gt Fm M Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 77 L CONFORMIO Automated Test Design i gt Ideabytes 4 A new Activity Diagram should be opened as below in the Conformiq Modeling Perspective File Edit Diagram Search Project Conformiq Window Help Geo eK A E EERROR EOS ZZ LTEOSG 100 ET Conformiq Modeling Conformiq Test Design F Conformiq Debugging Proje Z3 3 Palette mL Login Interfaces sd E Login Es DC 4 gt model p an Login App ad p Login Interfaces sd b Login Interfaces sl Display Measurement Show Ruler Show Grid Grid In Front Ruler Units Centimeters Grid Spacing 0 125 Grid Line Snap To Grid Color Snap To Shapes Style Spaced Dot Restore Defau
45. ginmth Osta T uL X L UAM B 0 oen UO I O MAM I O NONO ONNV E ei i sf 4 Bg 4 45 1 0 gt 1 2d 0811 Wr Qc 123 in WebAptow X X X X X 3 54 4 ty OF Mm UT alm eee V V EEEMJJYYW BBS Y Y Tirrriririiiiiiiiiiiiiiitititittit iti t iti uL LE m 0512 1 Web aos Actheity Add Item sd ity Add To C Activity Oreck Out Aetheity Inti X X X X X Actheity Urreaid Ext ee 2 N M M LE ed 0 Activity l x Activity Veva Be thety Dehon Vider 0 X X X X x h tenhs P o r lem with stew CQ 0002 and qty 5 to shopping c T Simple Web A D Nene Recese Configuration message gt l Sangle Web Apso Acht Test Gen ende Tec Dipa Logn screen Progress mes Qax Fil Usetefo form e Login sce Qs gt Qao Ora 4j Chick OK button bn Logn screen Ore p a gt Q c Display ESD Main screen i cas 17 y sl vapi ESD Ma S Display ESD Main screen 1 field Qc Generated best caves mth 60 external test shes o Dinplay m 000 singren gemein reves r r AAYA Q ac 12dmeuses in Simpie rb App cstion ESD Mese 200010 tee Generation succesttully completed 4 fil hem foem in ESO Mam screen Da 1 04 f Fal Rem foem i ESD Man screen A feat pone gt From User Tene Yon Test teget comae O new 9 removed Sonita Conformiq Creator Test harness Test Design Auto Test Execution Seamless Migration Validate the model amp Generate Test Tailored integra
46. in Green color is a sign for successful completion of model loading Project Login Model Load model Generate test cases Model Loading done Generate Tests next n Progress messages no errors Show details Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 102 aS CONFORMIQ Automated Test Design i gt Ideabytes 5 Next you will have Conformiq Creator auto generate test cases from this model 6 In the Progress Panel click on Generate test cases button Generate test cases Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 103 S N CONFORMIQ Automated Test Design i gt IJ eabytes 7 Make sure the Progress Panel did not detect any errors Again the Tick mark in Green color is a sign for successful completion of model loading Progress Pan x H Project Login E Test Generation done Mo test cases generated check the quidance below Progress messages no errors show details Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 104 CONFORMIQ Automated Test Design b Ideabytes Analyzing Test Cases in Conformiq Designer 1 Take a look at the Jest Case view to see the test cases that were generated You should see these EE Test Cases Login zi q Breakpoint Hitsi 35 Model Defects L T E H H Filters OFF Sort Tests Shortest Oldest Test First
47. ion Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 a CONFORMIQ Automated Test Design d Ideoabutes 10 Next add a Decision Node Click the Decision Node symbol on the Creator modeling toolbar and then click anywhere on the canvas to place it 11 Type Is User Correct and then click lt ENTER gt 12 A Decision Node is added to the Activity Diagram as shown gt Login Interfaces sd Login App ad 23 mL Request User Informatics 13 Connect the Activity Node and the Decision Node using the Control Flow symbol Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 81 CONFORMIQ Automated Test Design b Ideobutes 14 Next we ll add two Final Nodes coming out of the Decision Happy End amp Error To do so 15 Click on the Final Node symbol in the symbol toolbar then on the canvas to place it there 16 Type Happy Ena in the Name field and click OK A Final Node titled Happy End should be added to the Activity Diagram Login Interfaces sd Login App ad 4 E Request User Informati ut n a E ug bw ln Pa a E a a O E a a 5 1 UU gt 07 Is User Correct u a L ES E a n a E Hu Qu ue F as cu Happy End Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 82 ae CONFORMI
48. iq Test Design perspective load and generate test cases refer to section Generating Test Cases from an Activity Diagram if you need assistance 2 You should get the following display in the Test Case View um Test Cases Login oa So Breakpoint Hits Simple Web Appli Model Defects Login E Hj E Filters OFF Sort Tests Shortest Oldest Test First ID Name Targets cowered Created o1 Successful Login Included in Login App 17 1 req 5 16 other 2014 19 11 17 48 Q2 b Invalid Login Included in Login App 24 2 req s 22 other 2014 19 11 17 Q3 Login App Decision Bad Data Conditior 31 2 req s 29 other 2014 19 11 17 59 Q4 b Login App Decision Bad Data Conditior 31 2 req s 29 other 2014 19 11 17 59 3 Test case 2 is now invalidated because a case where the password is empty Is no longer implemented 4 Test cases 3 and 4 were added with clark PasswordT and mark Passwora2 sets of user data reflecting the model changes OQ You have completed the exercise successfully Ld Try for more such exercises Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 113 Ideabutes innovation is Business b INCREASED QUALITY LOWER TIME amp COST Corporate Office Canada Ideabytes Inc Ottawa Ontario Phone 1 613 692 9908 a Development Centre India Ideabytes Software India Pvt Ltd Jayabheri Enclave Hyderabad Phone
49. lette BE Outline O Login Interfacessd 4 Login App ad 23 F Ei Properties 33 pH J og gin Ap P By l Login App ad Login model 4 E Login PSP Expected data Login Form g PP 99 User Name Strin P Val gs DC Ctr 3 User Name admin Resource roy a Password String 4 BEES 4 amp model Password St password 123 4 Info p ao Login App ad main l ri derived false b Login Interfaces sd A N A d editable true ane i E Login equest User Information Cus uccessful Login linked rx Ef DS Login Screen RA Successful location C Users Stephan E FF Login Form J N NA User logs in E pan CB Loain Button path Login model Loc a size 26 206 bytes Ce DP Error Popup RA Invalid Login N NA Login Failed Invalid usern 4 gt 4 Tm Problems 22 MEL 0 items Description a Resource Location E 5 Login App ad Login model Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 101 CONFORMIQ Automated Test Design b Ideabutes 2 Switch to the Conformiq Test Design Perspective Conformiq Test Design Login model Login App ad Conformiq File Edit Diagram Project Window Help t 4 9 o 50 c Fy f amp iConformiq Modeling Conformiq Test Design rd Pehuggin L3 Project Explorer p 3 In the Progress Panel make sure Te EES errors Uea and the model loading is completed 4 The Tick mark
50. lts Gt Problems 53 2 errors 0 warnings 0 others Resourc Description 4 Errors 2 items Main activity diagram is not selected please select one of your diagrams as main diagram model TODO Please add an Initial Node to Activity Diagram Login App Login Ay 4 M b m Copyright Conformiq Inc and its subsidiaries All rights reserved Friday November 21 2014 78 a CONFORMIQ Automated Test Design i Ideoabutes 5 First add an Initial Node by clicking on the Initial Node icon in the Creator modeling toolbar and then clicking anywhere on the canvas to place it 6 Next add an Activity Node by clicking on the Activity Node L symbol in the symbol toolbar and then clicking anywhere on the canvas to place it 7 Type Request User Information as this is the first activity that takes place in the Login process Click lt ENTERs gt Login Interfaces sd Login App ad 23 Oo Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 79 a CONFORMIQ Automated Test Design d Ideoabutes 8 Next connect the nitial Node to the Activity Node by clicking on the Control Flow symbol from the Creator modeling toolbar then click inside the nitial Node and finally drag it inside the Activity box 9 The nitial Node and the Activity Node should now be connected as below Login Interfaces sd Login App ad 3 E Request User Informat
51. lue i e all pairwise combinations of possible selections are not automatically computed since Listbox items are not a static list but may change dynamically aS CONFORMIQ Automated Test Design d Ideabutes The Activity Diagram List box widgets Forms ied RM url Message Fill Credentials gmail logon E DS gmal login Screen Q RA System shall display Logi Friday November 21 2014 Copyright Conformig Inc and its subsidiaries All rights reserved n Fill Login Form al login Screen Precondition double click to specify a 2 Input Constraint Login Form Value 5 Value Mame 4 Username String Z Don t care click to add alternatives 4 Password String Z Don t care a E x List Box a New List Box Selection Selected a Selected b ud 41 aS CONFORMIQ Automated Test Design i gt Ideabytes Concepts amp Examples Modeling Data Copyright Conformiq Inc and its subsidiaries All rights reserved Friday November 21 2014 42 a CONFORMIQ Automated Test Design d Ideobutes More about Generated Data Objects e Data objects can be used To specify constraints on or store incoming data in input actions To specify outgoing data to be used in send or display actions To specify the condition that is part of a decision To create graphical data flows e During action keyword repositor
52. n Copyright Conformiq Inc and its subsidiaries All rights reserved Friday November 21 2014 4 CONFORMIQ Automated Test Design b Ideobutes 3 Step ATA MBT Process with Conformiq Creator Model Direct amp Review Generate Test Scripts oystem Operation Test Design amp Documentation with Creator PE em eter Temm Tei stop ARASI xm sn Mery 4 D Mar Qu PCL x Geos Date Merr Porri M mas pia L D qty Nerves Lege v wn Requrenents M Cont En e 1001 1 WP Qe 12s e T ri v dc hadesd le Sinple Wed Appbs ation x x x x x i T v 1 ES ty Dagr Cheese Nest Stes simum O vidi amp j oP rer Popup m SOP Eme Popup Request uses to lege 1 iode e 9 onmes 100 17 17 Simpie Web Application D Vebdive lt Activity Add hem Na E x E Activity Add Lo Cart ai Activity Check Out P Activity Tntisiire Bandi Maia n Erenn lt Activity Trrwabd Entry x 1318 2373 Tet Activity Logie x x x x x D 05 E60 Chectost Screen Add to 1x Activity Logis T p x Actretty lrreabd Login x i E Acthelty Request exer to login X X X DXX N jag Prose Pend 21 6G Program Decision ValiUsesT Bowls lada m Final Sex cesttal loin m eE m Project Single Web Apg cation i ff possa voy i m c E lt l Add tem weth sku CQ 0002 and qty 5 to shopping cart m Oo A y N 1 Load model
53. n allowing independent development of isolated functional aspects Enables composition of larger models from supplied parts Live check and guidance during model construction e Support for domain specific SUT interface specification Fully automatic generation of action keyword repository oupport for SUT interface change management Import of interfaces from 3 party test execution tools Allows further automation of test harness implementation for user interface testing ESTERI ETE CONFORMIO Automated Test Design p deabytes Conformig Creator Benefits Allows to engage and interact with stakeholders other than testers in directly model creation amp review Customers system engineering business analysts etc Enables a completely new way of working Access to Conformiq s unique and proven test generation engine Use of all existing coverage algorithms criteria analysis etc Automatic exploitation of all data dependencies in system operation in test generation e Automates model creation without programming Offers domain specific actions and error checking as building blocks e g login form entry sort search etc Allows reuse and aligning with customer activity diagrams Reuse interface descriptions e g from existing testing harness Enables generation of test harnesses from structure diagrams Canny Yi nht C Annfarmin inne and ite cii h cinliariac ri
54. nhte racarva a Cri d AV NeOvanmh er 94 o 0 14 1 1 vopyright Y vonrormidq inc ana Its SUDSIAlanes All rights reserved Friday November 21 2014 i J Sul LI b J 4 a CONFORMIQ Automated Test Design Ildeabytes Use Scenario Model Designer CoE Jill test automation provides amp maintains SUT interface information Jeff CoE team supports Joe with custom actions activity libraries Joe models SUT specific functionality and reuses Jeff s COTS Jane reviews Joe s documentation generated from the model Joe amp Jeff analyze own generated tests amp Jack executes them Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 12 CONFORM IQ Automated Test Design i gt Iideabutes From Modeling to Validation to Test Execution About Sharing Versioning and Working in Collaboration Working with Conformiq Creator Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 13 a CONFORMIQ Automated Test Design d Ideobutes Model Development with Conformiq Creator 1 Model or import SUT interfaces available for testing using Structure diagram s in Conformiq Modeling perspective Can also be done in parallel with step 2 2 Model overall SUT operation from highest business workflows to lowest level interface operation by using standard informal Activity diagram s 3 Hefine your model by adding SUT interactions
55. pe User Name followed by ENTER Click Save Note that one of the livecheck errors has now disappeared Copyright Conformiq Inc and its subsidiaries All rights reserved Friday November 21 2014 70 aS CONFORMIQ Automated Test Design i gt Ideabutes 14 Repeat the last step to add another Text Box named Password Click Save Login Interfaces sd c i ES Login El Login i Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 71 aS CONFORMIQ Automated Test Design d Ideabutes 15 Your Structure Diagram should look similar to this at this point Login Interfaces sd 5 O Ed Properties 2 t Text Box Lr Login Property Value Name z Password Type String E Login Default Status z Don t care Default Value Don t Care User Name 1 Password Note that you can also edit the properties of selected items like name and default widgets status etc for selected objects in the Properties View Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 a CONFORMIQ Automated Test Design d Ideobutes 16 Let s add one more widget a Login button We can either add it to the Form or to the Screen Let s add it to the Login Screen 17 Add a button widget to the Login Screen look at the previous steps if needed this time select Button from the list of elements under Basic Wiagets e Nam
56. rname Password da display Output Form data fields Signin id Error Field name Error String Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 30 CONFORMIO Automated Test Design p deabytes More on Structure Diagrams e Interface objects can be defined across multiple diagrams Referenced interface objects or objects with mappings e g forms amp tables must be specified in same diagram e Conformiq Creator includes a importer for WSDL XSD files that automatically converts and creates a Structure Diagram with Message Sequence Choice and External Interface objects defined in selected WSDL XSD s Predefined action keywords and associated data objects are always generated from all structure diagrams in a project Requires that there is no errors in any Structure Diagram n general one interface object is the source of multiple action keywords to the repository aS CONFORMIQ Automated Test Design d Ideobutes Action Keyword repository AKR Generation on Save Message Form and Screen ID Example and Action Keywords Generated Action Keywords V7 Select Action to add a Display Screen Action E53 Display Account Screen 4 5 imd mal vn Screen s is Display google Screen gm Login 4 ke Receive Message Action 4 Gla Tester Interface ie Receive url Message 4 liz Send Message Action a da display Interface led Send
57. s definitions Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 18 aS CONFORMIQ Automated Test Design i Ideobutes Model Validation by Test Review Load model and generate test cases e Self review by evaluating tests S Check coverage m Adj ust defau It COVG rage settings settings in Coverage Editor EM if needed Review generated tests in test case amp test step views Use traceability matrix to find amp navigate between tests i p mG i pe n Nadia ladad NE dia EB dad v wS w Se B eecececco Ij BSEEEESES SF tA Revie generated tests Peer review with others Print or export models e g HTML Share model files with peers Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 A h CONFORMIQ Automated Test Design d Ideobutes From Generated Tests to Test Execution 1 Add one or more scripting backend s to your Conformiq project Design Configuration DC 2 Click the Render tests button in the tool bar All tests generated at this point will be converted by all attached scripting backends according to their property settings he output format depends on scripting backend e g Excel ocripter produces spreadsheets for tests and traceability matrix JUnit scripter produ
58. sion 28 1 re Fonder ce nai Q2 b Additem with sku CC 003 amd aty 5 to shopping ca 42 1 re Configuration Q3 Add item with sku CQ XU and qty 5 to shopping ca 43 1 Paper ee Display Login screen 1 field QU Simple Web Application Activity Login Decision 33 1 re 4d To Display i Progress messages no emors Hide detel Q5 Add item with sku abc and qty 1 to shopping cart Aii n Login E po Allacsated 4 Conarmig Computetion Sbrees Go Nodes Simple Web Application Activity Check Out 47 1 n FI Ucaile form in Login soren Fil Userinfo foma ie Login creen CL Fel 0430413 Currently covered 100 67 67 of target checkpoentz ple Web Appi by n Log It get checkgo Q7 Remove CQ 0000 amp 3 1 rea From User Time dooar Finally covered 100 67 67 of target checkpoints Userinfo 000007 Test generation took seconds Click OK button in Login screen Click OK button in Login screen D fields ononaT Checking for nen determinism From User Time posco Automatically generating names and descriptions for the best cases S Display ESD Main screen Display ESD Main screen 1 field Li Jom DC Generated T test cases with Gf extemal best steps To Display Time Gp 00 08 Baonng led geneman reult RI HP QC LZ X cluded is Simple Web Applratinn ESD Main dooa Test Generation successfully completed a Fill hem foren in ESD Main screen ahew all Fi ikam fonn in ED Maln rd Fill item form in ESD Main screen 1 field From Us
59. t password 123 ft Value Name i F Et Error Text Incorrect user di SD E ae OK Button Widget Status Don t care Pall gt Ch User eei Happy End Eu DP Error Popup 62 Notice that the last TODO message went away You ve just completed refining your Activity Diagram and almost ready to generate test cases Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 98 a CONFORMIQ Automated Test Design i Ideobutes 63 In order to ensure proper coverage and descriptive test cases you need to add Requirements and Narratives to the model 64 In our example we want to generate test cases for both valid and invalid login attempts 65 Replace the Happy End Final node with a Successful Login Activity Node then click on the lightening bolt Select a Requirement Action 66 In the Requirement Identifier edit field type Successful Login and then click lt ENTER gt 67 Now add another Action this time select a Narrative Action Click on the Narrative edit field Narrative Action L Expected data Login Form String Precondition double click to specify tring UserMame admin E Password 5t password 123 m S E P hw Successful Login s User Correct Q RA Successful Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 99 aS CONFORM
60. t Variable Data Object to add E Form Login Form B Boolean 10 Number abe String fis Date Cancel Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 90 aS CONFORMIQ Automated Test Design i gt Ideabytes 44 Select Login Form Variable Type in the Variable Name field Entered user data and click lt ENTER gt Login Interfaces sd Login App ad 2 mL U Es Entered user data User Name String E ume a Password String ns E LE ps uU i e i M R t User Informati di bs in equest User Information F i i Login 3 P lt Is User Correct EDS Login Screen Cu P FF Login Form Happy End amp CB Login Button 45 Next we need to point out where this Data object is produced The form s username and password values should be stored when the user fills out the Login form Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 91 aS CONFORMIQ Automated Test Design d Ideobutes 46 Click on the Data Flow symbol then click on the FF Login area inside the Request User Information Activity then click again at the top bar of the Entered user data variable Data object to connect the two as shown below E Entered user data User Mame String Password String A E S w e ai i G Request User Information Ii 2
61. tent Bool true valid content Bo Textfield String Ori t x Textfield String Priority Boolean Dant iority Boolean Omit value for Don t care any value optional fields Value with Alternatives Value List Form and table entry values are specified in same way 46 Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 a CONFORMIQ Automated Test Design i Ideobutes More About Using Data Objects e n general values or variables of different data objects can not be directly compared or assigned A message can not be compared against a Form 36 A XYZ Message can not be compared against a ABC Message or used in a Send ABC Message action Exception Message and form objects can be used in Add Entry actions if they have a mapping in an Structure Diagram Fields of different data object types can always be directly compared or assigned if they are of same type String field a of XYZ Message can be compared or assigned to string field b of ABC Message he Creator editor automatically enforces these rules Cc i pra RAKnyvrinht A Onnfarmin Inn and ite eiwhheiniarine Al imhte racansan Erida Ninvambhar 91 INIA Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 aS CONFORMIQ Automated Test Design d ldeabytes Conditions As shown earlier conditions are the
62. thers is because we did not specify in the model any info or data constraints on what scenarios we would like to cover for an unsuccessful login This test case only covers a valid username and an invalid password 4 Let s say for example that we are also Interested in a case where the username is invalid and a password is valid 9 Lets make some changes to the Activity Diagram as detailed in next slide Copyright Conformiq Inc and its subsidiaries All rights reserved Friday November 21 2014 108 a CONFORMIQ Automated Test Design d Ideobutes 6 Switch to the Conformiq Modeling Perspective First remove the Control Flow connector between the Is User Correct Decision and the Report error Activity oelect on the Control Flow and select Delete from Model The Control Flow should be deleted 7 Add a new Decision object named Bad Data Refer to previous steps in you need to refresh your memory 8 Next add a Control Flow between the s User Correct and the Bad Data Decision objects 9 Select the No Control Flow type from the dialog 10 Next add a new Control Flow between the Bad Data Decision and the Report error Activity this time choosing the Yes Control Flow type 11 Here we will reuse the user data Entered user data Data object so add a Data Flow connector from the Entered user data Data object to the Bad Data Decision 12 Next let s define th
63. tion to the customer cases and execution scripts framework Validate requirement coverage Linked to Test data amp SUT Validate expected results Pass Fail Even automate progression testing Enhance visibility of Functional flows Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 6 a CONFORMIQ Automated Test Design i Ideobutes About Conformiq Creator Comes with a new modeling paradigm developed by Conformig for creating models for test generation Activity diagrams describe workflows what to test Where actions that realize activities are specified based on a generated Action Keyword Repository AKR how to test Lo a E s re New frontend for a proven test generation environment Specifically developed for but not limited to using Conformiq in system amp user acceptance testing Designed for People without programming skills to specify review and contribute to modeling for test generation Domain specific customization of models Deeper integration into existing tool chains Further automation of the test process Productivity Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 aS CONFORMIQ Automated Test Design ildeabytes Cornerstones for Modeling with Creator e Activity Diagrams AD Specify business work flows using
64. ts subsidiaries All rights reserved Friday November 21 2014 106 CONFORMIQ Automated Test Design d Ideabutes 4 Click the expand arrow next to the test case names You should see a description associated with the test cases as below H Test Cases Login 43 Breakpoint Hits Simple Web Appli X Model Defects Login O Hj Ej UJ Filters OFF Sort Tests Shortest Oldest Test Firs Q2 4 Invalid Login Included in Login App 25 2 req 5 23 other 2014 19 11 17 50 E Test Description Login Failed Invalid username or password Afterwards User logs in successfully Main Testing Targets Action 1 DP Error Popup Action 2 RA Invalid Login Action 3 NA Login Failed Invalid username or password 3 Activity Report error gt Merge Login E Decision Ts User Correct gt Activity Report error NO Activity Report error Included in Login App 4 m Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 107 CONFORMIQ Automated Test Design L Ideabytes Modifying a Model 1 lest case 1 Successful Login as its name suggests covers a successful login while 2 lest case 2 Invalid Login covers an unsuccessful login In test case Invalid Login Conformiq generated the following data values User name admin e Password 3 The reason Conformig generated this set of values and not o
65. value list Specification Can also be used with decisions Valid User Name Valid User 4 B Condition Equals L wd ES Lidl Cw POP rere Use a FE Second Value Good users Value List x Value List Name Good users 4 FS Item 1 Armen P Value Name Armen I userName Armen Tr password 123 a E Item 2 Stephan Value Name Stephan K userName Stephan E password abc IE double click to add Value List item Data Driven MBT Copyright Conformig Inc and its subsidiaries All rights reserved Friday November 21 2014 53 CONFORMIO Automated Test Design p deabytes Dealing with Dynamic Data Placeholders e In some situations actual values of fields may not be known at modeling time but important for test execution See bank account number example in slide notes e Such fields have to be modeled as Strings and so called place holders i e strings with some special characters to indicate that these values are not real but placeholder values Examples Account No or Valid User Name eo can then be replaced at test execution time with real values Placeholders can also be used to facilitate data driven test execution Example Execute same tests generated with valid username n times with n concrete valid user names substitutions This technique could be used In the Evan user UserInfo simple Login Activity Diagram p
66. y generation data objects are generated for actions that can consume or produce data Based on interface object type Conformiq Creator generates either specific message form and or table entry data objects Each specific data object can either be a value value list or variable data object a CONFORMIQ Automated Test Design d Ideobutes About Data Tables e Data tables have to be specified in structure diagrams Generally useful for modeling the impact of pre configured or received data on SUT operation i e internal data management Have to be used to model the data content of tables shown in a user interface i e Ul tables e During repository generation add query remove modify action keywords for each data table are generated When adding table entries using the inline approach form message to entry transformation functions have to be used Is Data Table Query Result Valid Boolean function returns false If no match to a query could be found Queries return only the first item matching to a query e Adata table can be initialized via a XLS and CSV file Erida Nilnmyvrambhnanr 94 n44 Friday November 21 2014 J J CONFORMIO Automated Test Design p deabytes Data Object Value Types e Value lt field gt EQUAL 1 One specific value or reference to variable field value is specified for every field in a Value data object Don t care ignore field Can b
Download Pdf Manuals
Related Search
Related Contents
Equilibre Satin Léger ShipCAM - ShipConstructor Software Inc. Guía de funciones GPS Web Sprint TV, películas y PDFを開く LevelOne 4 FE PoE + 1 FE SMF SC Industrial Switch, 30km NebDocs User Manual ' Service Manual - Wiki Karat GPS Vehicle Tracker – User Manual – Version 6.2 Copyright © All rights reserved.
Failed to retrieve file