Solved

What is the best practice for using 5 different data sets in each recovery?

  • 21 July 2023
  • 1 reply
  • 12 views

Userlevel 4
Badge +2
  • Head of Community
  • 38 replies

If I have 5 sets of Configuration Parameters, each set has 3 CP,

I want to use set#1 in the first run,

use set#2 after the first recovery scenario...etc

What is the best practice? Thank you.

icon

Best answer by Community Administrator 21 July 2023, 11:31

View original

1 reply

Userlevel 4
Badge +2

You should use Reuse TestStep Block with 3 parameters (value 1, value 2, value 3) to fill data in test case or Recovery Scenario.

RTB - Fill info
Business Parameter
Param 1
Param 2
Param 3

- In Test case, you set a buffer RecoveryCount = 1, then call RTB - Fill info (Set1_CP1, Set1_CP2, Set1_CP3)

- In Recovery Scenario, you use 4 IF condition to check buffer RecoveryCount as below

IF // Recovery first time
Condition
TBox Set Buffer Value ActionMode
RecoveryCount 1 Verify
Then
TBox Set Buffer Value ActionMode
RecoveryCount 2 Input
RTB - Fill info (Set2_CP1, Set2_CP2, Set2_CP3)

IF // Recovery second time
Condition
TBox Set Buffer Value ActionMode
RecoveryCount 2 Verify
Then
TBox Set Buffer Value ActionMode
RecoveryCount 3 Input
RTB - Fill info (Set3_CP1, Set3_CP2, Set3_CP3)

IF // Recovery third time
Condition
TBox Set Buffer Value ActionMode
RecoveryCount 3 Verify
Then
TBox Set Buffer Value ActionMode
RecoveryCount 4 Input
RTB - Fill info (Set4_CP1, Set4_CP2, Set4_CP3)

IF // Recovery forth time
Condition
TBox Set Buffer Value ActionMode
RecoveryCount 4 Verify
Then
TBox Set Buffer Value ActionMode
RecoveryCount 5 Input
RTB - Fill info (Set5_CP1, Set5_CP2, Set5_CP3)

Reply