Test Data Manager

  • 1.  How to repeat the same row value for no of times

    Posted Aug 04, 2017 05:44 AM

    Hi team,

     

    I want to repeat he same row value for no of times.

    Ex: I am generating the data for 10 fields. I am taking value from seedlist for one of the column. I want to generate the 5 rows for each value in seedlist as shown below.

     

     

    Seedlist:

    Name
    Name1
    Name2
    Name3
    Name4

     

    Table to be generated:

    Column1Column2Column3
    Name1Some Value as per the ruleSome Value
    Name1Some ValueSome Value
    Name1Some ValueSome Value
    Name1Some ValueSome Value
    Name2Some ValueSome Value
    Name2Some ValueSome Value
    Name2Some ValueSome Value
    Name2Some ValueSome Value

    ...

     

    Please help me in creating the rules for this scenario.

    Thank You.

    Rajasekhar



  • 2.  Re: How to repeat the same row value for no of times
    Best Answer

    Broadcom Employee
    Posted Aug 04, 2017 11:12 AM

    Hi Rajasekhar,

     

    You can create 4 as per your example or custom number of rows you need per value in the data pool. Only for the first row, fetch the seedlist value for the name column. For all other rows, set the name field to reference the name field in the previous row as shown below

     

    ^COLUMN1(-1)^

     

    You can then use global repeater to iterate the items in your list

     

    Thanks,

    Anil



  • 3.  Re: How to repeat the same row value for no of times

    Posted Aug 08, 2017 05:35 AM

    Thank You Anil for the response. 

    It would be great if you can give some more details, if possible any document please share. I am afraid i did not understand the solution.

     

    Thank You very much.

     

    Regards,

    Rajasekhar



  • 4.  Re: How to repeat the same row value for no of times

    Broadcom Employee
    Posted Aug 08, 2017 02:21 PM

    Rajasekhar,

     

    Assuming you want 4 rows of each item in your seed list - Name, the model in your data pool will be as below.

     

    Column1Column2Column3
    @seqlov(0,@seedlist(Name)@)@Some ValueSome Value
    ^COLUMN1(-1)^Some ValueSome Value
    ^COLUMN1(-1)^Some ValueSome Value
    ^COLUMN1(-1)^Some ValueSome Value

     

     

    You can iterate this N number of times depending on your seedlist and requirement's.

     

    Hope this explains the solution better.

     

    Thanks,

    Anil



  • 5.  Re: How to repeat the same row value for no of times

    Posted Aug 16, 2017 10:18 AM

    Hi Anil,

    Sorry for late reply.

    Thank You for your help. It worked. I have created 4 rows.

    Curious to know how to make it dynamic. If i want to repeat 10 times i have to create 10 rows now. and this no is keep changing for me.

    Is there any option/way to make it dynamic for repeating the rows.

     

    Thank You.

    Rajasekhar