TestProject Forum

How can i verify the randomly created string is present or not?

Use Case:-

  1. I have using random phone number addon to create random strings.
  2. Once the string is created i am using get text method.
  3. Now I want to verify the randomly created string is present or not

I am stuck in 3rd step using Test project smart recorder.

Hello @jyesh.ranjan
After you get the text, just add a validation and use the Contains for that random string.
But first make sure you save the random generated string in a parameter.

image

image