Forum Discussion

fgarcial's avatar
fgarcial
Occasional Contributor
11 years ago

How to set a name field up to a number of characters in the custom string generator

Hi Guys,



I'm trying to generate some test data using your Data Generator, but I'm running into an issue while trying to generate Names of a minimum length of 10 characters. I'm using custom string with the next Regular Expression:



- %10s%NAME(Any, First)



If I try that then Test Complete Version 10 crashes on me. I also tried:



- %10s(%NAME(Any,First)+[ ]{10})

- %.10s%NAME(Any,First)



With no success and always getting a crash. Am I doing it wrong or is it an issue with the Data Generator?

5 Replies

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Francisco,


     


    TestComplete crashes in my case, as well. I've reported this issue to our R&D team. I think that it will be fixed in one of the future product updates.


     

  • fgarcial's avatar
    fgarcial
    Occasional Contributor
    Thanks for the update! I'll be looking forward to the fix. Thanks
  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Francisco,


     


    I've got some update from our developers - they will fix the issue in the next product update. At the moment, I cannot tell you when we release the new version.


    If it's critical for you, I suggest that you contact our TestComplete Support team - they may prepare a patch.


     

  • fgarcial's avatar
    fgarcial
    Occasional Contributor
    Thanks!



    I'm currently not in a hurry but I would love to know when the fix is out.



    Thanks for the help.
  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)
    Hi Francisco,

     


    TestComplete 10.20 was released. I've failed to reproduce this issue with this version. Please check how it works in your case.