Generating dynamic data for the TypeText command

Hello,
I been using Eggplant for a few days now an i have a question about the typetext command. I need to add a time stamp to the end of a fixed string of data. I will then pass this to the Java application using the TypeText command.

Can this be done ?
I have tried the following:

put the time into CommentTime
TypeText "This comment was entered by Eggplant " + CommentTime

Comments

  • To add the time stamp to your TypeText command, you will want to use an ampersand (&) instead of a plus (+):
    Put the time into CommentTime
    TypeText "This comment was entered by eggPlant at " & commentTime
    --Types this on the SUT: "This comment was entered by eggPlant at 03:11 PM"
    
Sign In or Register to comment.