Forum Discussion

ralyn_sg's avatar
ralyn_sg
Contributor
10 years ago
Solved

Creating a random value for a form that has to be automated

Hi.I am new to Test Complete and need to automate a web application.This application requires me to create a new user with a distinct name each time.In order to do this I have to create distinct and r...
  • brk9394's avatar
    10 years ago
    Ralyn,

    To remove the ":" and "/", you can use this instead:

    KeywordTests.Test1.Variables.Var1=aqConvert.DateTimeToFormatStr(aqDateTime.Now(), "%m%d%Y %H%M");



    Also, this page lists the format specifiers so you can adjust it to suit your needs:

    http://support.smartbear.com/viewarticle/59311/