View previous topic :: View next topic
|
Author |
Message |
kalukakkad
New User
Joined: 10 Mar 2005 Posts: 81
|
|
|
|
Hi,
I have a requirement to generate test data with input like below
Code: |
Para_1 Var_1 A
Para_1 Var_1 Test
Para_1 Var_2 B
Para_1 Var_2 Test
Para_1 Var_3 C
Para_1 Var_3 Test
Para_1 Var_4 D
Para_1 Var_4 Test
|
Expected output is all combinations of each Var*.
Var* should be of 10 bytes (if text is less than 10 bytes, padd it with spaces)
A, B, C, Text... should be of 60 bytes (if text is less than 60 bytes, padd it with spaces)
Expected Output is:
Code: |
Para_1Var_1...(Total 10 bytes)..A (Total 60 bytes)...Var_2....B...Var_3...C
Para_1Var_1...(Total 10 bytes)..Test (Total 60 bytes)...Var_2....B...Var_3...C
Para_1Var_1...(Total 10 bytes)..Test (Total 60 bytes)...Var_2....Test...Var_3...C
......
|
|
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Can you clarify your sample data, like make everything four bytes, separated by blanks, and ensure that all your combinations are covered in your sample data? |
|
Back to top |
|
|
kalukakkad
New User
Joined: 10 Mar 2005 Posts: 81
|
|
|
|
Code: |
Field_1(10 bytes long) Field_2(10 bytes long) Field_3(60 bytes long)
Para_1 Var_1 A
Para_1 Var_1 Test
Para_1 Var_2 B
Para_1 Var_2 Test
Para_1 Var_3 C
Para_1 Var_3 Test
Para_1 Var_4 D
Para_1 Var_4 Test
|
Sample Output : There can be more combinations
Code: |
Para_1 Var_1 A Var_2 B Var_3 C Var_4 D
Para_1 Var_1 Test Var_2 B Var_3 C Var_4 D
Para_1 Var_1 Test Var_2 Test Var_3 C Var_4 D
Para_1 Var_1 Test Var_2 Test Var_3 Test Var_4 D
Para_1 Var_1 Test Var_2 Test Var_3 Test Var_4 Test
Para_1 Var_1 A Var_2 Test Var_3 Test Var_4 Test
Para_1 Var_1 A Var_2 B Var_3 Test Var_4 Test
Para_1 Var_1 A Var_2 B Var_3 C Var_4 Test
|
|
|
Back to top |
|
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
kalukakkad,
How many places are you going to post the same question? |
|
Back to top |
|
|
|