Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction Data driven testing

Similar presentations


Presentation on theme: "Introduction Data driven testing"— Presentation transcript:

1 Introduction Data driven testing
You may extend the use of the replay functionality to perform data driven testing. Data driven testing is useful when you want to test a certain process multiple times, feeding the same flow with different data entries.

2 Record the test flow Data driven testing
First you need to record the full flow of your test case. In this example, we want to test the creation of multiple customers in our system.

3 You may also press Alt+N.
Data driven testing Record the test flow Click on the button New. You may also press Alt+N.

4 Record the test flow Data driven testing Click on the button Record.
You may also press Alt+R.

5 You may also press Alt+O.
Data driven testing Record the test flow Click on the button Ok. You may also press Alt+O.

6 You may also press Alt+Y.
Data driven testing Record the test flow Click on the button Yes. You may also press Alt+Y.

7 Data driven testing Record the test flow Click on the tab Home.

8 Click on the folder Customers.
Data driven testing Record the test flow Click on the folder Customers.

9 Data driven testing Record the test flow Click on the button New.

10 Click on the input field Name.
Data driven testing Record the test flow Click on the input field Name.

11 Data driven testing Record the test flow Enter Name.

12 Click on the input field Address.
Data driven testing Record the test flow Click on the input field Address.

13 Data driven testing Record the test flow Enter Address.

14 Data driven testing Record the test flow Click on the button Ok.

15 Record the test flow Data driven testing
Stop the recorder by pressing the two control keys and save the recording.

16 Enter the text New customer.
Data driven testing Record the test flow Enter the text New customer.

17 Record the test flow Data driven testing Click on the button Save.
You may also press Alt+S.

18 Use Excel to define the data
Data driven testing Use Excel to define the data Let's look at a sample Excel workbook, where we have defined 3 customers with a name and address.

19 Use Excel to define the data
Data driven testing Use Excel to define the data Click on the button Excel 2013.

20 Use Excel to define the data
Data driven testing Use Excel to define the data Click on the link C:\Users\Michael Olsen\Desktop\CustomersRepeater.xlsx.

21 Use Excel to define the data
Data driven testing Use Excel to define the data First, it is important that you notice the name of the sheet we have in the workbook.

22 Use Excel to define the data
Data driven testing Use Excel to define the data Click on the tab Sheet1.

23 Use Excel to define the data
Data driven testing Use Excel to define the data Secondly, make sure that the data itself is defined starting at row 2. Row 1 is used as heading. The Cell A contains the name and the Cell B contains the address.

24 Use Excel to define the data
Data driven testing Use Excel to define the data Click on the cell B2 with the value Adr1

25 Use Excel to define the data
Data driven testing Use Excel to define the data Click on the button Close.

26 Link recording and data
Data driven testing Link recording and data We need to make the recording aware of the data we want to use.

27 Link recording and data
Data driven testing Link recording and data Click on the button Edit. You may also press Alt+D.

28 Link recording and data
Data driven testing Link recording and data Click on the menu Replay (Quality Assurance) role.

29 Link recording and data
Data driven testing Link recording and data This role is ideal when working with test cases. The preview to the right gives a clear view of the steps involving data.

30 Link recording and data
Data driven testing Link recording and data To the left, we have all the steps from our recorded session. What we want to do now is to group a number of steps into a repeater, which we will link to our data, defined in the Excel workbook.

31 Link recording and data
Data driven testing Link recording and data Click on the first step that needs to be repeated

32 Link recording and data
Data driven testing Link recording and data Click on the last step to be repeated.

33 Link recording and data
Data driven testing Link recording and data Click on the dropdown button of the button named Group.

34 Link recording and data
Data driven testing Link recording and data Click on the menu Repeater.

35 Link recording and data
Data driven testing Link recording and data First, we need to locate the Excel workbook.

36 Link recording and data
Data driven testing Link recording and data Click on the button ....

37 Link recording and data
Data driven testing Link recording and data Click on the list element CustomersRepeater.xlsx.

38 Link recording and data
Data driven testing Link recording and data Click on the split button Open. You may also press Alt+O.

39 Link recording and data
Data driven testing Link recording and data Then, we need to provide the name of the sheet to use from the workbook.

40 Link recording and data
Data driven testing Link recording and data Click on the input field Custom parameter.

41 Link recording and data
Data driven testing Link recording and data Enter Custom parameter.

42 Link recording and data
Data driven testing Link recording and data Click on the button OK. You may also press Alt+O.

43 Link recording and data
Data driven testing Link recording and data You have to replace the fixed entered data from the recording session.

44 Link recording and data
Data driven testing Link recording and data Click on the link Name

45 Link recording and data
Data driven testing Link recording and data Fixed values, such as keyboard input, become data driven, by referring to the data using the function named GetRepeaterValue. This function has one parameter, which is the name of the cell.

46 Link recording and data
Data driven testing Link recording and data Enter the text GetRepeaterValue(A).

47 Link recording and data
Data driven testing Link recording and data Click on the button OK. You may also press Alt+O.

48 Link recording and data
Data driven testing Link recording and data Click on the link Address

49 Link recording and data
Data driven testing Link recording and data Click on the input field Keystrokes as text.

50 Link recording and data
Data driven testing Link recording and data Enter the text GetRepeaterValue(B).

51 Link recording and data
Data driven testing Link recording and data Click on the button OK. You may also press Alt+O.

52 Link recording and data
Data driven testing Link recording and data When done, you may save the recording, which is now ready to run.

53 Link recording and data
Data driven testing Link recording and data Click on the menu File. You may also press Alt+F.

54 Link recording and data
Data driven testing Link recording and data Click on the menu Close.

55 Link recording and data
Data driven testing Link recording and data Click on the button Yes. You may also press Alt+Y.

56 Run the test Data driven testing Click on the button Replay.
You may also press Alt+R.

57 You may also press Alt+Y.
Data driven testing Run the test Click on the button Yes. You may also press Alt+Y.

58 You may also press Alt+O.
Data driven testing Run the test Click on the button Ok. You may also press Alt+O.

59 Run the test Data driven testing
The replay will now run the test. In this case it will repeat the creation of a new customer 3 times.

60 Data driven testing Run the test Click on the button OK.

61 How to produce documentation for all data entries
Data driven testing How to produce documentation for all data entries By default, when using the repeater group feature, the produced material will only show the first data entry performed in the test run.

62 How to produce documentation for all data entries
Data driven testing How to produce documentation for all data entries However, you will be able to change this, so that ClickLearn may produce the written and visual documentation for all data entries performed in the test.

63 How to produce documentation for all data entries
Data driven testing How to produce documentation for all data entries Click on the button Edit. You may also press Alt+D.

64 How to produce documentation for all data entries
Data driven testing How to produce documentation for all data entries Click on the menu Replay (Quality Assurance) role.

65 How to produce documentation for all data entries
Data driven testing How to produce documentation for all data entries Click on the menu Writer role.

66 How to produce documentation for all data entries
Data driven testing How to produce documentation for all data entries Double click on the folder Repeat steps according to a VbScript: Content=Produce first; Custom file=CustomersRepeater.xlsx; Custom parameter=Sheet1.

67 How to produce documentation for all data entries
Data driven testing How to produce documentation for all data entries Click on the combobox .

68 How to produce documentation for all data entries
Data driven testing How to produce documentation for all data entries Click on the list element Produce all.

69 How to produce documentation for all data entries
Data driven testing How to produce documentation for all data entries Click on the button OK. You may also press Alt+O.

70 How to produce documentation for all data entries
Data driven testing How to produce documentation for all data entries Click on the menu File. You may also press Alt+F.

71 How to produce documentation for all data entries
Data driven testing How to produce documentation for all data entries Click on the menu Close.

72 How to produce documentation for all data entries
Data driven testing How to produce documentation for all data entries Click on the button Yes. You may also press Alt+Y.


Download ppt "Introduction Data driven testing"

Similar presentations


Ads by Google