Hi Aadhavan,
You Can create Multiple Variables based on the basic datatype Combinations like chars only, special characters(use function 4),numerics Check
- @randdigits(minlen,maxlen)@
- @randrange(min,max)@
- @randtext(minlen,maxlen,case)@
- @randchars(minlen,maxlen,charlist)@ [using this you can generate any kind of data it can even perform the activities of above 3]
and the if you need a to generate random of 2+ different combinations create one more variable using the basic variable and use the below functions
@occval(n%string,n%string[,n%string...])@
@percval(n%string,n%string[,n%string...])@
There is no point of using randlov or seqlov in your use case.
just use the variable in you data pool then.
------------------------------
Thanks,
Rajkumar
------------------------------
Original Message:
Sent: 06-23-2020 11:29 AM
From: Aadhavan Diaz
Subject: SEQLOV issue
Thanks Rajkumar for your inputs. The requirement is as below
- We are generating negative test data for the and delivering it in form of csv files
- These negative data has few categories, say if the field is of string type then I will have to generate different categories of data like Numeric,AlphaNumeric,Boundry Check,Null, Special character check,Symbols check etc. Along with this we have to generate few business validations as well.
- If I use randlov list then all these categories are not getting covered, as the data generated is random.
I tried many workarounds and at last settled by creating a seedlist in database using CA TDM and fetching the values from that table using seqlov. This is working now.
If you have any other suggestion for the above requirement please share that.
Thanks in advance
Aadhavan
Original Message:
Sent: 06-23-2020 03:17 AM
From: Rajkumar Mansuria
Subject: SEQLOV issue
Hi Aadhavan,
SEQLOV/RANDLOV - LIST function is designed to take static list of values(if a function in it Resolved once during execution) and I believe it should work that way only.
Don't exactly understand why you are using SEQLOV function. Why no just use "@occval(1%@randtext(1,20)@,1%@randdigits(3,10)@)@" if you want to generate random strings or numbers. There are multiple other ways like creating as seedlist/table and then storing the random data in it first and then getting the data from the table. We can help in a better way, if you tell us the actual requirement and not the function to provide correct solution.
------------------------------
Thanks,
Rajkumar
Original Message:
Sent: 05-26-2020 03:39 AM
From: Srikanth Gajawada
Subject: SEQLOV issue
Hi Aadhavan,
It looks like this is a defect. I could able to replicate the issue and tried finding an alternate approach, but nothing worked. Please open a support ticket. We will work with engineering team to provide fix.
Thanks,
Srikanth
Original Message:
Sent: 05-25-2020 09:28 AM
From: Aadhavan Diaz
Subject: SEQLOV issue
Hi Team,
In CA TDM portal SEQLOV function is not providing values in sequence
I am using the below function
SEQLOV(PERCNULL, @LIST(STRING, STRING[,STRING])@)
If I use this functions as @seqlov(0, @list(Devon,Cornwall,Surrey)@)@ then I am getting values in sequence when data is generated
but if instead of static values if I use functions
@seqlov(0, @list(@randtext(1,20)@,@randdigits(3,10)@)@)@
I am getting only the value of the first function. ie @randtext(1,20)@
How to resolve this issue. Any solutions.
Please suggest.
Thanks in advance.
Regards,
Aadhavan