Home
Conformiq Creator 2 Tutorial
Contents
1. 1 In Progress Panel click Export test cases button WW Progress Panel 2 Project MyFirstProject oj Load model Generate test cases Export test cases 2 Right click on the ie ExcelTestsuite xls link in the Project Explorer and select Open With gt System Editor The test cases will be displayed in Excel in English language 3 Once the test suite has been opened in Excel click on the Test cases tab in order to view the test celTestSuite Compatibility Mode Page Layout Formulas Data Review View c Wrap Text General v 3 Home Insert calibri 4 yy Past Eat i aste B Z U 7 F t 2 E F u Clipboard G Alignment M Number B Login Activities Activity Login Action 2 FF Login Form Form Input Constraint Login data Value Fill in No action Fill Login Form form in Login Screen screen entering GoodUser in User Name textbox entering GoodPassword in Password textbox Click Login button in the Login Screen screen All combinations Login Activities Activity Login Action 2 FF Login Form Form Values matching Input Constraint User Name 9 BadUser Password BadPassword 10 Summary Fill in 11 Overall Verdict Open 12 Executed b ill in Test case 2 icrosoft Exce ET Merge amp Center 9 GQ 393 Conditional Format Formatting as Table Styles a co OP S3 hiv a a Sort amp Find amp lt 2 Clear 7 Filter Select Cel
2. v 100 1 1 4 Requirements Login Intesfeces sd 100 1 1 The system should chow an error message if the login is incorrect v inchuded in Login Features v 100 15 15 Activity Diagrams jv 100 6 6 Data v 100 2 2 Decison E OS Login screen Screen EFF Login form Form amp CB Login Button ery User Validation sf Irwalic Login tr Test Cases MyFirstPropect 0o Breakpoint Hits tS Model Defects o H Login Features Decision User Validation Condition Form Storage Variable Good Data Value is true i er T OP Error e Filters OFF Sort Tests Shortest Oldest Test Fest v O RA The sy Login Features Activity Login Action 2 FF Logi 23 1 req s 22 other 2014 Display Login screen screen D 1 Display Login screen screen 1 feld To Display Login screen Project MyFirstProject Q Login Features Activity Login Action 2 FF Logi 23 1 req s 22 other in form form in Login screen str 2 Fill Login form form in Login screen screen From Use Login form ity Click Login button in Login screen screen gt Lagin form form E t00 3 Click Login button in Login screen scre x x From User In order to review tests and data generated in the test double click on the test step arrow in the test step view The input output values generated on the particular test step will be shown on the right side of the test step view Also the model browser wi
3. are used to add values from the fields of Login form into the Form storage variable and use the stored data later in the example Copyright Conformig Inc 2014 All Rights Reserved 1 Inthe Palette under the Connectors category select Data flow connector E Conformiq Test Design Project Explorer Palette 3 DZ Outline O Kaap Nodes Initial Q Final amp Flow Final o Atiy E Event D Merge D Decision Block Connectors Control flow 2 Create a connection from the FF Login Form action into the header of the Form Storage variable User name String EDS Login Screen ta Password String H FF Login Form FS CB Login Button 3 Save the project Ctrl S 4 Tocheck that the values of the Login form are added into the Form Storage variable click on the Login form and observe the Properties view at the bottom of the window it should read Store Result in data flow to Form Storage Variable o 7 Jo a LJ Properties 5 maj ca 7o20 Input Constraint Login form Form Value 5 Value Name 4 E User name String EJ GoodName ZT BadName 4 lt click to add alternatives gt a E Password String E GoodPassword EJ BadPassword Copyright Conformig Inc 2014 All Rights Reserved Decision Node A decision node splits a control flow based on the evaluation of a condition The evaluation
4. of the condition can only have two results 1 Condition is fulfilled evaluates to true then the green Y es control flow is taken 2 Condition is not fulfilled evaluates to false then the red N o control flow is taken In this example the decision diamond node will validate a given user name and password Depending on the values of the user name and password the condition will be true or false In false cases the system will respond with an error popup message added earlier in a structure diagram the Login action to the Decision node 2 Name the decision as User Validation E S Conformig Test Design amp Project Explorer Palette 2 G Outline 7 O Login Interfaces sd Login Features ad 23 J p g og kaap Nodes Initial Q Final oe Flow Final Activity E Form Storage Login form Form e Username Strin E DS Login screen Screen e 3 CB Login Button Merge ol Password String E Eveni FF Login form Form Create new Decision node lt gt Decision Connectors i Control flow g Data flow amp Data Objects Value Tal Value List Variable Copyright Conformig Inc 2014 All Rights Reserved 3 Add an Activity and name it as Invalid Login Login Interfaces sd El Form Storage Login form Form 71 Username String DY DS Login screen Screen J Veer i G O n a o Password String FF Login
5. p 1 Select the Invalid login activity and then click on the action button 2 Add an action Display Popup Action gt Display Error message Popup Click OK button gt ri User ad Action Q Requirement Action Narrative Action A DP Error message Popup action should appear in the nvalid login activity Invalid login 3 Click on the DP Error message Popup action and double click Popup Contents item in the Properties view i Popup C Contents Default Initialized Error message Popup Value A Popup content specification window will appear 4 Select New Error message Popup Value and click OK button Copyright Conformig Inc 2014 All Rights Reserved 5 Inthe Properties window enter the error text in the Error message Text field In this tutorial the added text is Wrong user name or password Please try again Ta et Eronia message aria Precondition double click to specify gt dl EP icin Contents Error message Popup Value kec Error message Text Wrong user name or password Please try again Adding requirements to a model In Creator requirements may be added inside an activity Once the requirements are added to the model activity diagram they become targets for test generation Also a traceability matrix between the requirements and generated tests will be created automatically In this tutorial the requir
6. the Project Explorer tab right click on the model folder which is located inside the project and select New gt Structure Diagram S Conformig Test Design FY Conformiq Modeling Fan Project Explorer 4 2 Palette E Outline P E MyFirstProject gt E DC Go Into Copy Paste Delete Move Rename Import Export Refresh Run As Debug As Team Compare With Properties Restore from Local History J M Project Activity Diagram Ctrl C File Ctrl V Folder Delete Structure Diagram F2 Alt Enter Copyright Conformig Inc 2014 All Rights Reserved Name the structure diagram as preferred and click Finnish button The best practice is to give a structure diagram a meaningful name In this tutorial the structure diagram is named Login Interfaces Create Structure Diagram Select file that will contain diagram model Enter or select the parent folder MyFirstProject model a cz MyFirstProject model A Login Interfaces structure diagram should appear in the Model folder and also the Login Interfaces tab should appear on the canvas FE 2 Conformig Modeling fF Conformigq Test Design Project Explorer 25 a igg MyFirstProject b Login Interfaces sd Login Interfaces sl Copyright Conformig Inc 2014 All Rights Reserved On the left side o
7. the default and do not ask again Copyright Conformig Inc 2014 All Rights Reserved 2 Enter the license in Window gt Preferences gt Conformig gt Licensing Enter the license key in the corresponding place Evaluation Node locked or Floating and press OK button ty Licensing bo erial a Conformig i Evaluation Licerce Licensing DRA B BOY Ze LY 0726F rT bo onformaqectratChart M install Update O Floating License b Jiwa Ref ctoring Server p Run Debig Refresh pate 3 reuters bo Sorcha Digam b Team Your node Dis K29RB LEFO2 EY9S9W HAgQnS Creator views Conformiq Creator has two views one for modeling Conformiq Modeling view and one for generating tests reviews and exporting Conformiq Test Design view E Properties 2 Properties are not available E Problems 53 0 items Description Resource Path Location Type aml O items selected Conformiq Modeling view Copyright Conformig Inc 2014 All Rights Reserved File Edit Project Window Help HES if Saaex E S Conformiq Modeling Conformig Test Design Conformiq Test Design Conformiq lt gt gt Project Explorer 3 o i Test Targets 2 E 53 Model Browser 5 fi Test Case Dependency Matrix 8 Model Profiler paa E Q FiltersOFF GoalFiltersOFF Q Coverage Filters OFF There are
8. CONFORMIQ Automated Test Design Conformig Creator 2 Tutorial Contents PODOS ac heretics E E cates ects devise ea clase e vase recast et E E 2 FEMINO LOY scrsxe cigars steree cies EEE EEE 2 APPI ITON 6 ake Te Cerner meer eee cee One ne E roe cee eee ene eee 2 Launching Conformig Creator First TIME isiccccvertsoadscodcsasvenecenrceutdecsvendsoninendseeuvenssesncaedassavsedseateeniaseneeneanseesuniaes 2 POE VON pene E T ee ee 3 Creating anew Conformig Creator projeCt erirnispissisressiiirisisiiderr si sdadnagnasanoseaubennoeedtaainaaitendvasnncdsonsaumecesaneteees 4 SU CET SW FA aies ere ave rucen ouetaene neuer orctneidaveuoasindiannesveimereceseninenneren anes 7 renine mcd a 6 en b d me e 4 g en nen me eee ene ee eee nO me ener eee eee eee eee 7 Structure diagrami DIOPEI lle siscicscsscscnucsoavscesesateaddadansdvesenatesetobeceueeseuneddohacdsnnanedwenddphnneusrsiuecdscoatdsedeianewaed 12 PVN SCI CI AS faces dere cnes canoe A cu csaasieecoansene sete meosdaceoseann ssseecseou seas E 12 PTI CCU AUS eroesteccaeinn saeco E E A 12 Creating an Activity Diagram ccceccsseccseccseccseccsecceeccuecsecceccsucseuecsuecaueceneeeuceeeeeeeeueeeeceaeeueeseeenseenes 13 Settime Gia La CCV Ca OV ald iretcaaessohoecanesecunsiaaieseoseacstemnce tesa boadeutmennnhercnqnoucosuaiecanete AEE bacessaneseniananace 14 Working inside the activity diagram cccccescccccssscccceseccceeseccceesececeesececeuecceeeusecesaunecessuneceesensecets
9. Design L Project Explore 5 Palette oe Outline o E Properties 52 ja e oO MyFirstProject Resource Property Value 4 Info derived false editable true last mo November 3 2014 1 linked false locatior C Users alex Deskt name MyFirstProject path MyFirstProject ft Problems 53 ivan 2 errors 0 warnings 0 others Description Resource Path Location Type gt Errors 2 items O MyFirstProject Copyright Conformig Inc 2014 All Rights Reserved Structure Diagram The structure diagram is intended to be used for defining interfaces available for testing the given system or application From all of the structure diagrams in a project Conformig Creator automatically generates a so called action keyword repository that is used to specify the operation of the system or application under test in activity diagrams The best practice for creating models is to start with structure diagrams followed by the activity diagram model and do this sequence of actions in small iterations generating test suites in between Creating a structure diagram To create a structure diagram for this tutorial e Make sure that the Conformigq Modeling perspective is selected File Edit Project Conformiq Window Help S Conformig Modeling Conformigq Test Design Project Explorer 7 gt Palette Outline e Onthe left side of the screen navigate to
10. a sub diagram for Activity Node Invalid login In first two errors there is no data that should be compared against anything in order to take a yes or no branch from the decision node what is the incoming data that needs to be validated and what should it be validated against One of the ways of handling these scenarios is a Variable In the third error it is stated that the nvalid login activity is empty The reason for this is that there is not enough information for Creator to generate tests An activity cannot be empty it should either have an action or a sub activity Copyright Conformig Inc 2014 All Rights Reserved Action properties In Activity Diagram the properties window us used to manage conditions and actions ie Manage the behavior of the system or application under test zz Properties Palette b Fill Login Form N bes Ba Ly g Precondition lt double click to specify gt S Nodes w a E Input Constraint Login Form Value Initial P gt Value Name 4 E Password String EJ GoodPassword Final E BadPassword f E lt click to add alternatives gt amp Flow Final 4 E User Name String EJ GoodUser Activity E Baduser lt click to add alternatives gt 3 DS Login Screen Event Store Result in data flow to Form Storage Variable E Form Storage Login Form EZ FF Login Form Password St
11. al node An arrow should appear b Click on the arrow and drag the control flow over the Login activity A control flow will appear connected between the initial node and the activity p 4 Hover the mouse over Login activity and Add Action icon should appear 5 Click the Add Action icon gt Display Screen Action gt Display Login screen Screen 4 E Display Screen Action E3 Display Login screen Screen 6 Click the Add Action icon gt User Entry Action gt Login screen Screen gt Fill Login form Form 4 fog User Entry Action a Login screen Screen FS Fill Login form Form Copyright Conformig Inc 2014 All Rights Reserved 7 Click the Add Action icon gt User Entry Action gt Login screen Screen gt Login form Form gt Click login Button User Entry Action a Login screen Screen Fill Login form Form a Login screen Screen gt Login form Form M Click Login Button Note The actions DS Display Screen FF Fill Form and CB Click Button are generated automatically from the structure diagram At this point an activity is created which mimics the structure diagram Login screen and its content and uses the keywords generated automatically from the structure diagram Adding input values into actions At this moment the activity is created and the actions are added into the activity Next task is to add the necessary data insid
12. e Next button Wizards type filter text 4 amp Conformiq L Conformig Creator Project C Show All Wizards Copyright Conformiq Inc 2014 All Rights Reserved At this point Conformig will show the first step of the Conformig Creator project creation wizard Add a name to the project select create an empty project and hit the Next button Conformig 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 Project name MyFirstProject Use default location Location C Users alex workspace MyFirstProject Browse Create project using template Create empty project Create project and import model files Now Conformig should show step three of the Conformig Creator project creation wizard In this step users have an option to choose a Test Design Configuration For this tutorial please use the default name for design configuration DC The name of the DC can be changed but this is not mandatory After the settings are completed hit the Next button Conformig Creator project creation wizard 1 Give project a name MyFirstProject 2 Create model files empty project 3 Specify testing configuration 4 Define scripting backend for test design configu
13. e click to specify gt In the Properties tab under Input Constraint Login Form Value enter two user name and password values In this tutorial the user names will be GoodName and BadName and passwords will be GoodPassword and BadPassword To add multiple values click on the lt click to add alternatives gt and add the next value j Properties 4 re F ou Fill Login form Form in Login screen Screen 0i Precondition lt double click to specify gt a Input Constraint Login form Form Value Value Name 4 E User name String I GoodName E BadName TA lt click to add alternatives 4 E Password String E GoodPassword E BadPassword TA lt click to add alternatives gt i Data Coverage Each possible alternative at least once CA Store Result in lt double click to specify Note A user has also option to specify data coverage conditions This option occurs only when value lists or alternate input values are specified The options of the data coverage are shown below E Properties 3 maf 2 a Fill Login form Form in Login screen Screen T Precondition lt double click to specify gt 4 E Input Constraint Login form Form Value 5 Value Name 4 EJ User name String EJ GoodName EJ BadName C lt click to add alternatives gt 4 Password String E GoodPassword EJ BadPassword lt click to add alternatives gt Each pos
14. e the actions in order to use it later for validation and other purposes Once the data is added into actions it needs to be stored into a Data Object in order to use the data later in the model In this tutorial two user name and password values will be added to a FF Login Form action and stored in a Variable for further usage 1 Click once on the FF Login Form located in the Login activity Era DS Login Screen G5 g 5 FF Login Form CB Login Button 2 Locate the Properties view on the right side of the screen and double click on the nput Constraint Properties 3 or el AY TO 3 An input constraint specification popup should appear on the screen Select New Login Form Value and hit OK button Specify Input Constraint for Fill Login form Form Ab Don t care Default initialized Login fo Fo New Login form Form Value NJ Cancel Copyright Conformiq Inc 2014 All Rights Reserved The Properties tab of the Fill Login Form should look like the picture below C Properties 23 mal ATN Fill Login form Form in Login screen Screen Precondition double click to specify gt a Input Constraint Login form Form Value 5 Value Name 4 E User name String EJ Don t care E lt click to add alternatives gt 4 E Password String EJ Don t care Es lt click to add alternatives E Store Result in doubl
15. ement will be added as written in a specification The requirement name is The will system should show an error message if the login is incorrect In order to fulfill the requirement an error handling logic be described in the activity diagram a Select the Invalid Login activity and click on the action button Select Requirement Action from the action selector and press OK button Select Action to add gt Cry Display Popup Action b IS Display Screen Action b EA Set State oe Action Q ye M Narrative Action 3 Inthe Properties view add in the Requirement Identifier The system should show an error message if the login is incorrect and save the project E Properties 5 JDEME Requirement Action al ne double click to specify gt BP pec Copyright Conformig Inc 2014 All Rights Reserved 4 Draw a control flow from the Invalid Login activity to the Login activity and save the project 4 DS Login screen Screen FF Login form Form CB Login Button E Form Storage Login form Form User name String 4 Password String Invalid Login cre DP Error Q RA The sy User Validation Login Successful Generating Tests From a Model After the model is created user needs to upload the model to Conformiq Computation Server and apply the Testing Goals to the engine in order to get the needed tests generated Beside
16. eneess 14 yo AY HAV How and ACUONG eee eee re ee oe 15 Adding input values into ACTIONS cccccccsssecccceseccccesececeeececcenecceeeusececsuneceeeencesseeecessenecessugecesseaeeets 16 VDE a E E E 18 DOr FLOWN e E E N E E E E E E E E E AE 18 PCS FO NOOC osecas E EEEN 20 POTION FO OSS ia E T N 23 POPUD Spe a E pert vie tu A A E A E E tases 26 Adding regu irements 10 4 Model esrneniionsi NS Sour eeeensn Sent eee 27 Gencraline Test Foma Mode eroen a E 28 Exo OPUS tesis rom Creator soeecmeirreir aen E EA 32 Copyright Conformiq Inc 2014 All Rights Reserved Purpose The purpose of this document is to introduce the basics of modeling a system or application to be tested This tutorial shows the key concepts and features of Conformiq Creator and will help users to get started with Conformig Creator projects Terminology e Conformig Test Design perspective A perspective that lets a user to generate tests specify test coverage goals review export and trace tests to coverage goals e Conformig Modeling perspective A perspective for creating your model e Activity Diagram A diagram for defining activity flows e Structure Diagram A diagram for defining interfaces available for testing a system or application e Action Either a predefined Creator action or action keyword automatically generated when saving a Structure Diagram Actions are used in Activity Diagrams in order to express the operation of the system or a
17. equirement and Test Case Synchronization Requirements No connector w _ Disable notifications about QML requirements missing See Advanced for advanced test generation options Restore Defaults Apply P OK Cancel 6 Repeat step 3 Press Generate test cases button 7 Once the tests are generated in the Test Targets view expand the Requirements section and expand the i ea itself It can be seen that the requirement is covered by a test number 3 FE FiltersOFF Q GoalFiltersOFF Q CoverageFiltersOFF DC 100 24 24 Testing Goals 1 v 100 1 1 4 Requirements v 100 1 1 4 The system should show an error message if the login is incorrect v v Included in Login Features x x v 100 15 15 gt Activity Diagrams v 100 6 6 gt Data v 100 2 2 b Decision Copyright Conformiq Inc 2014 All Rights Reserved In the Test Targets view click on the column number 1 i e the first test case The test will be selected and shown as message sequence diagram The model browser will show how the test is exercising the model TT E ConformiqModeting I Conformig Test Design LoS Proyect Explorer E Test Targets MyFirtProject L a Model Browser MyFirstProject BA Test Case Dependency Matrix 4 Model Profiler se P E FitersOFF GoaiFittersOFF Q CoverageFiltersOFF Login Features DC 4 model DC 100 24 24 Testing Goals so Login Festures ad main
18. er Validation decision diamond You will notice when clicking on the decision diamond that in the Properties view the First Value field is now using the data from the Form Storage variable 6 Properties 52 Login Interfaces sd User Validation P gt Name User Validation 4 KE Condition Equals gt First Value data flow from Form Storage Variable bye Second Value lt double click to specify gt E DS Login screen Screen FF Login form Form Bal Form Storage Login form Form CB Login Button User name String Password String Invalid Login User Validation yy DP Error Login Successful RA Error r 4 Double click on the Second Value item A value specification field should appear i z f amp Name User Validation 4 Condition Equals dkh A pakirne For Store Variable le Second Value double click to specify gt 5 Select New Login Form Value and click OK button E Properties 3 tE voia User Validation Specify Second Value for Equals t N User Validati E Variable Data Object a Sa E l EE 4 amp Condition Equals gt First Value data flow from Form Storage Variable he Second Value double click to specify gt paar E New Login Form Value Eu VeV ogir orm Valle Copyright Conformiq Inc 2014 All Rights Reserved At this point i
19. f the canvas select a Palette tab File Edit Diagram Search Project Conformiq W Ee k o m lt X 100 4 gg MyFirstProject gt Be DC a model b gt Login Interfaces sd b Login Interfaces sl Select Screen object from the palette Project Explorer lt gt Palette General Enumeration Enumeration Value Gia External Interface LI Custom Action Sequence Type Choice Type Primitive Field Enumeration Field Data Table Data Table A Data Mapping Primite Cell Enumeration Cell Ul Table Form Widgets Button g Hyperlink E Text Box Check Box C Dropdown Enumeration Radio Button Enumeration Copyright Conformig Inc 2014 All Rights Reserved e Once the screen is chosen navigate the pointer to the canvas and click the left button The Screen object should appear unnamed e Name the Screen object as Login Screen so Login Interfaces sd 5 e Select a Form object from the Palette and click on the Login Screen A form should appear inside the Login Screen Note a Form object is by default a child object hence it cannot be added to canvas as such but must be added inside a parent object E Login screen 5 Login form Note Objects can be added by three ways e Hovering the mouse over an object or canvas e Selecting the object from the palette e Selecting the object from the toolbar on the top T Conformigq Modeling Conformigq Test Design Pa
20. form Form CB Login Button Invalid Login User Validation 4 Adda Control Flow form User Validation decision diamond to Invalid Login activity Once the Control Flow from a Decision is drawn user needs to choose which path will be associated with the Control Flow Choose Create False Control Flow N s Login Interfaces sd ao ogin Features ad 2 _ o7 Username String ae Password String 4 DS Login screen Screen FF Login form Form CB Login Button valid Login Create False Control Flow p Create True Control Flow YV User Validation Final 5 Adda Final node to the canvas and name it as Login Successful Copyright Conformiq Inc 2014 All Rights Reserved 6 Adda Control Flow from the Decision to the Final node Note that the Control Flow is automatically successful Save the project Eg DS Login screen Screen EFF Login form Form Form Storage CLogin f Form CB Login Button aimee User name String Password String Login Successful 7 After saving the project three errors should appear in the Problems tab fe pa gut Problems 2s 3 errors 0 warnings 0 others Description 4 Errors 3 items Missing specification of First Value in Condition Missing specification of Second Value in Condition TODO Please add either actions or another Activity Diagram as
21. fresh Run As Debug As Team Compare With Replace With Properties Alt Enter Working inside the activity diagram Once the activity diagram is created user can start adding activity objects either from the palette tool bar located above the canvas or by hovering over the canvas File Edt Diagram Search Project Conformiq Window Help s2 BeS 100 vigde IL Modeling Conformiq Test Design Project Explorer 3 Palette 2 BE Outline O Login Interfaces sd ju x E Properties 2 ADE ea Display Measurement C Show Ruler C Show Grid F Grid In Front Flow Final amp Grid Line Y Snap To Grid QO Activity Color C Snap To Shapes Style SpacedDot v Restore Defaults Event Merge Ruler Units Inches v Grid Spacing 0 125 Copyright Conformiq Inc 2014 All Rights Reserved Activity Flow and Actions 1 Click on the Initial node in the palette and click on the canvas in order to add the node File Edit Diagram Search Project Conformiq Window Help H 2 100 Pr S 20OSTSO Z Conformigq Test Design E Conformiq Modeling E Project Explorer 52 Palette 5 Outline O Login Interfaces sd Login Features ad 2 5 baD E Nodes a amp Flow Final m Activity 2 Select an Activity node add it to the canvas and name it as Login 3 Adda Control flow from the initial state to Login In this tutorial the automatic completion drawing is used a Click the initi
22. lette Bz Outline m Login interfaces sd gt E Login Sereen Copyright Conformiq Inc 2014 All Rights Reserved e Under the Form Widgets category in the Palette select a Text Box object and add it inside the Login form Name the Text Box as User name E Login screen Login form Username e Create another Text box object Add it inside the Login form and name the object as Password Login screen E Login form Username Password e Adda Button object inside the Login form and name it as Login E Login screen Login form Password Login e Inthe User Interface category of the Palette select a Popup object and add it to the canvas Name the object as Error message Make sure to save the project frequently E Login screen E gt Error message FS Login form User name e Password Login Copyright Conformig Inc 2014 All Rights Reserved Structure diagram properties User can set properties of an object in a Structure Diagram as well as in an Activity Diagram The Properties view is located on the right hand side of the canvas when in Conformig Modeling view For example when clicking on a text box in a Structure Diagram Conformig allows changing properties such as type of the object string number or status Enable Disable Hidden Don t care Login Interfaces sd 23 E Properties 3 e E amp Y TO Text Box E Login screen OA Error message pape Velour E Login for
23. ll highlight the action activity that is exercised at the particular test step Test Targets MyFirstProject 2 A 38 Model Browser MyFirstPr 23 Test Case Dependency M Model Profiler O me Filters OFF Q GoalFiltersOFF Q CoverageFiltersOFF Login Features DC 100 24 24 Testing Goals 1 2 3 v 100 1 1 4 Requirements v 100 1 1 4 The system should show an error message if the login is incorrect v v Included in Login Features X X v 100 15 15 gt Activity Diagrams v 100 6 6 gt Data v 100 2 2 b Decision E DS Login screen Screen _ FF Login form Form CB Login Button E Form Storage Login form User name String Password String User Validation Login Successful Field Value 5 1 Display Login screen screen 1 field EP Progress Panel 23 8 To Display Login screen Project MyFirstProject 2 Fill Login form form in Login screen screen 1 field Te From User A j J Load model Generate test cases Export test cases User name GoodName Password GoodPassword Copyright Conformig Inc 2014 All Rights Reserved Exporting tests from Creator The generated tests can be exported into various formats for manual or automated test execution The generated test suit can also be uploaded to an ALM test management system In this tutorial tests are exported into Excel spread sheet in human readable format English
24. ls Editing Cell Insert Delete Format Open Executed against SUT Release Fill in Fill in Test Execution date amp time Fill in action s o Application displays Login Screen screen No errors can be observed at the SUT No errors can be observed at the SUT Executed against SUT Release Fill in Test Execution date amp time Fill in M 4 gt gt Test suite TraceabilityMatrx 2 IKI ee Ready 3 100 Copyright Conformig Inc 2014 All Rights Reserved
25. m Name User name j Type Sth Default Status Default Value Structure property If the Properties section is not visible user should go to Window gt Reset preferences gt Yes This option will reset the view and the Properties window should appear Live checking Creator analyzes automatically every diagram each time it is saved and marks errors and warnings with a special marker red circle or warning sign on the object on the canvas where the problem is located Error messages related to the markers are also listed by diagram in the Problems view mt Problems 23 1 error 0 warnings 0 others Description a Errors 1 item TODO Please add an Initial Node to Activity Diagram Activity Diagram Activity diagrams Activity diagrams offer a flow chart like modeling notation which is commonly used to describe overall desired system operation Conformig Creator supports a subset of standard activity diagram symbols to specify control flows as well as data flows in activity diagrams Activities and decision specifications have to be enhanced with actions conditions and data objects to make activity diagrams suitable for automatic test generation Conformig Creator uses activity and structure models to generate an optimum set of scenarios tests in order to cover the applied heuristics for test case generation Copyright Conformig Inc 2014 All Rights Reserved Creating an Activity Diagram 1 Inthe C
26. n the Properties view the Second Value item should contain the Login Form and its text fields User Name and Password L Properties 23 xE JAE 7 E gt User Validation f li Ha Validation Value Name 4 EJ User name String E lt click to add alternatives gt 4 E Password String E pum t care 6 Inthe Value Name field type Good Data 7 Inthe User name field type GoodUser 8 Inthe Password field type GoodPassword gt User Validation Name User Validation 46 Ooa Aip Eir ue data flow from f Storage Variable a Ss Second Value Good data Value amp Value Name Good data 4 E User name String E GoodUser Es lt click to add alternatives gt 4 E Password String E GoodPassword TA lt click to add alternatives When generating tests Creator will gather all data stored in the variable and compare it against the values that are added into the Second Value Good data item If the data from the variable equals matches Good data Creator will create a test covering the yes branch In other cases Creator will create a test case covering the no branch Copyright Conformiq Inc 2014 All Rights Reserved Popups Popups are used to describe the popup windows on the real application This tutorial shows a way to handles error scenarios by using a popup to show an error message to the user if the user name and password combinations do not match
27. no Conformiq projects Create a new project Model Browser provides a read only representation of the model parts in the tool that enables Import an existing project Test targets view shows the final status of black box coverage figures test case matrix correlates ai amr e Tag ane aada vuil nn er ee the coverage options to the test cases that cover them i Open example project E Test Cases 2 Breakpoint Hits Model Defects D H Test Case Steps 53 E WE 0T 7 E E Progress Panel 22 me F v7 H E Q Filters OFF Sort Tests Project lt no project selected gt ID Name Targets coverec A P Load mode Generate test cases Export test cases No project selected Test Case Steps view shows the interaction between the tester and the system under test Also it is Select a project in Project Explorer Tesi Cae Nick Stace ell V EES A Gai cose Gath Thc EE EA possible to view detailed information about the messages that are transferred between the tester PE ae aS ae ei ES 9 and system under test in the given test case Progress messages no messages Show details Test targets summary no update info Show details Coverage summary no info O O items selected Conformigq Test Design view Creating a new Conformig Creator project In order to create a project go to File gt New gt Project in the main Conformig menu bar This will open New Project dialog Expand the Conformig folder choose Conformig Creator Project option and hit th
28. onformiq Modeling view navigate and right click on the Model folder 2 Navigate New gt Activity Diagram Ei S Conformiq Modeling Conformig Test Review 4 Project Explorer 3 5 Outline f Structure Diagram sd ei 4 i gt MyFirstProject gt Be De Go Into Copy Ctrl C Ctrl V Folder Delete Structure Diagram Paste Example FD F5 Properties Alt Enter 3 Enter anew name of the diagram optional and hit Finnish button Create Conformig Activity Diagram Select file that will contain diagram model Enter or select the parent folder MyFirstProject model iy lt P a log MyFirstProject Diagram nam Adwanced gt gt Copyright Conformiq Inc 2014 All Rights Reserved Setting main activity diagram In order to generate tests from the model Creator requires information on which activity diagram is the main activity diagram so the test generation would start from that particular activity diagram 1 Right click on the activity diagram Login Features in the Project Explorer and select Set main activity diagram 4 Project Explorer 3 Palette DE Outline m Login Interfaces sd a igg MyFirstProject t BE DC 4 g gt model g a2 Login Features ad _ Pd gt 22 Login Interaces b gt Login Interfaces zl Set main activity diagram Open Open With Copy Ctrl C Paste Ctrl V Delete Delete Move Rename F2 Import Export Re
29. pplication under test e Test Design Configuration Test Design Configuration is an entity in a Conformig Creator project that stores test coverage goals as well as scripting backends for exporting the tests generated based on these goals A Conformigq Creator project can have multiple test design configurations The test coverage goals can be modified in the Conformiq Test Design view e Test Targets view An editor in Conformig Test Design perspective that lets user to select coverage targets for test generation e Scripting backend A plugin that allows exporting the tests generated by Conformig to a specific output format for example Excel scripting backend exports generated tests into excel document as human readable tests Application Under Test The application under test that is modeled in this tutorial is a simple Login page screen This tutorial will capture the basic functionality of a login screen and guide the user through the process of creating a model generating tests and exporting the generated tests in English language in MS Excel format for manual test execution Launching Conformig Creator First Time 1 After the installation is complete launch Conformig Creator and choose a workspace directory for the projects Select a workspace Conformig stores your projects in a folder called a workspace Choose a workspace folder to use for this session Workspace C Users alex workspace Use this as
30. ration 0 scripters selected Tet Design Configuration nme 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 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 cones Copyright Conformig Inc 2014 All Rights Reserved Next Conformig will show a Scripting Backend selection dialog In this example the generated test cases will be exported into human readable format in Excel document hence select Exce Scripter jar and press the Finnish button Conformiq Creator project creation wizard 1 Give project a name MyFirstProject f 2 Create model files empty project 3 Specify testing configuration DC target set default 4 Define scripting backend for test design configuration Source Designer Installation v Browse _ QCALMScripter jar C RallyScripter jar At this moment the project should have been created If so the creator project has been created successfully If not repeat this chapter again File Edit Search Project Conformiq Window Help E Smax VN j Conformiq Test
31. ring 9 CB Login Button User Name String D gt Merge D Decision th Block 3 O 0 sinc i By DP Error message Popup Connectors iil RA The system should Control flow Login successful p Action property If the Properties section is not visible user should go to Window gt Reset preferences gt Yes This option will reset the view and the Properties window should appear 1 Click on the User Validation decision node 2 Navigate on the Properties tab and notice the User Validation decision has an Equals Condition that has First Value and Second Value fields This has been automatically added by Creator fee amp 7 o Ca First Value lt double click to specify gt Re Second Value double click to specify gt NOTE Conditions are needed for Creator decision nodes to understand when a true or false yes no path should be taken The options for different condition types can be observed by double clicking on the Condition icon in the Properties tab Specify Condition for Decision User Validation Combined Condition 4 Comparison fx Equals fx Does Not Equal lt gt fx Less Than lt fx Less Than or Equal lt fx Greater Than gt fx Greater Than or Equal gt true false Cancel Copyright Conformig Inc 2014 All Rights Reserved Drag a Data flow from the header of the Form Storage variable to the Us
32. s test generation Conformig will generate a coverage report that will show what parts of the model have been covered as well as how tests are linked to the requirements that have been added in the model Conformig will also show how each test is exercising the model 1 Change the view to a Conformig Test Design perspective B File Edit Diagram Project Window Help GaAs 100 H S Conformiq Modeling Conformiq Test Review 2 Press Load Model button under the Progress view EP Progress Panel 5 H Project MyFirstProject 3 Generate test cases Export test cases Copyright Conformig Inc 2014 All Rights Reserved 3 Press Generate test cases button i Progress Panel i E Project MyFirstProject io n 2 ao j Load 3 Generate test cases Export test cases The tests will be generated and shown in the Test Cases view File Edt Diagram Project Window Help a E E F 00L DESAI 7 La e II E Conformiq Modeling IE Conformig Test Design D Project Explorer 5 ie Test Targets MyFirstProject 4 Leg MyFirstProject Filters OFF Goal Filters OFF v Coverage Filters OFF es oc s amp model OC 63 15 24 Testing Goals fas Login Features ad mair v 0 0 1 Requirements Login Interfaces sd v 67 10 15 Activity Diagrams Login Interfaces si eee v 67 4 6 Data v 50 1 2 Decision fie Test Cases MyFirstProject o Breakpoint Hits SF Model Defects 1 F Test Case Steps ael A OQ o li Select 2 test case in Te
33. sible alternative at least once possible alternative at least once At least all possible pairs All possible combinations All possible combinations on all control paths Copyright Conformig Inc 2014 All Rights Reserved Variables A variable lets a user to store data values and use it across the activity model In this tutorial the data added to a Variable will be the values of the User name and Password fields that are located in the Login form activity 1 Select a Variable from the Data Objects category in the Palette and place it on the Canvas E Data Objects m Value Value List Variable A window of a Variable Data Object Selection should appear Choose Form gt Login form Form and hit OK button This means that the variable will store all the data from a specified form Select Variable Data Object to add String fis Date 2 Specify a name for Variable optional In this tutorial the Variable is named as Form Storage lt i Username string ES 0S Login screen Screen E Pastore scaina L FF Login form Form 2 CB Login Button 3 Save the project Ctrl S Data Flows Data flows allow user to graphically express how the data flows between the actions and data objects in this example a Variable Data flows are optional For more information about data flows please refer to the manual In this example data flows
34. st Case List wew to see its details SB Model Browser MyFirstProject BH Test Case Dependency Matrix i Model Profiler Login Features BD Progress Panel Project MyfirstProject ly ey Generate test cases Export test cases As it can be observed on the right side of the picture above the Model Browser shows that the no branch of the User Validation decision diamond has not been covered hence the path along with the Invalid Login activity has being marked in red This usually means that either there is something wrong with the model or that Conformiq Creator needs higher lookahead depth For more information on lookahead depth please refer to the Conformiq Creator user manual Select click the project folder Login Features ad main gt Login Interfaces sd gt Login Interfaces sl Copyright Conformig Inc 2014 All Rights Reserved 5 Navigate to Project gt Properties gt Conformig Options insert a Lookahead Depth value to 3 and click OK button type filter text Conformig Options O v w d iii Lookahead Depth Maximum Communication Delay b Conformig Options of F T hica PRE EN en j A Run Debug Settings dik r5 0 Test Case Selection Test Selection OptimizedforCompactness w Test Suite Options Only Finalized Runs _ Stop At Full Requirement Coverage Stop At Full Coverage Test Case Naming Automatic Test Case Naming Test Case Mame Format Test Case Test Case Numbering Offset 0 R
Download Pdf Manuals
Related Search
Related Contents
MC-BALANCE Quick Reference 3.1GB.01 MC-BALANCE Magnat Pro Power 203 Spartan II PLC - Glas Add-On Computer Peripherals (ACP) TXN17411-AO network transceiver module PT-38 Dale Tiffany TA100700 Instructions / Assembly Instructions Copyright © All rights reserved.
Failed to retrieve file