Ask a Question

Set custom names in Data Generator

porcupineRabbit
Occasional Contributor

Set custom names in Data Generator

Hello,

we are using the DataSource Test Step as a DataGenerator, to create random names (Property Type: Custom String, Value: %NAME(Any, FirstName)).
Is it possible to somehow add names or replace the names generated?

 

Thanks in advance,

Kostas

5 REPLIES 5
AAB
Regular Contributor

Re: Set custom names in Data Generator

Hi @porcupineRabbit 

 

I don't think so using this object in ReadyAPI. I think they've hardcoded those random names. That's the meaning of random.

But why aren't those names not good enough please? Why should they be different to your oppinion? Can't you use these? or aren't there enough names?

 

@TatyanaWeb  @Nastya_Khovrina ?

 

Kind regards,

AAB

porcupineRabbit
Occasional Contributor

Re: Set custom names in Data Generator

Hello AAB,

the names are just fine and but we would like to generate some e.g. with Greek characters.

If they are hard-coded then it is not possible, for sure. Is there any other object we can use @AAB ?

 

Kind regards,

Kostas

AAB
Regular Contributor

Re: Set custom names in Data Generator

@porcupineRabbit 

You could for example create a textfile with those strange characters and use this as datasource? 😉 

 

Kind regards,

AAB

porcupineRabbit
Occasional Contributor

Re: Set custom names in Data Generator

Hello again AAB,

I was trying to avoid using an external source but as it seems, its the only way to go (except from creating a custom randomizer using Groovy)

Thank you for helping.

 

Kind regards,

Kostas

AAB
Regular Contributor

Re: Set custom names in Data Generator

@porcupineRabbit 

 

Well, look what the latest version of ReadyAPI is giving us:

https://support.smartbear.com/readyapi/docs/functional/steps/create-file.html

 

maybe you can use this?

 

Kind regards,

AAB

cancel
Showing results for 
Search instead for 
Did you mean: