Question about StoreCsv command


#1

Hi there,

This is what I’m trying to do:
Screenshot_97

However, it gives me an error on the last line: " [error] TypeError: Cannot read property ‘voornaam’ of undefined".

It seems as if using variable ‘b’ (which has a random number stored in it, see line 2) is not a valid way of determining the row on which StoreCsv has to look. Is my assumption correct, am I doing something wrong or is this a bug?

Let me know if you need more information. Thanks in advance!

PS: If someone knows another way of picking a random value from a column in a csv then please let me know.


#2

Hi, in storeEval command you should use just b not ${b}, because now your variable name is ${b}.

${x} format is used to tell Katalon that you don’t wan’t letter x but you mean value from variable x


#3

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)


#4

Of course, that’s actually pretty obvious! It worked :smile:

Thanks a lot Piotr!