Thanks:  0
Likes:  0
Dislikes:  0

# Thread: How to generate the characters like from 0 to 9 and a to z and A to Z using silktest.

1. ## How to generate the characters like from 0 to 9 and a to z and A to Z using silktest.

Hi All,

I am automating one functionality that is we need to create the titles with the letters like 0 to 9, a to z and A to Z after that we need to verify the added titles are in sorted or not.

I've tried to generate the characters which are mentioned above using Ascii characters technique.
But for this technique, we need to use three for loops to generate the characters.

I want to know is there any way other way in SilkTest to generate the characters by using any other functions or code other than Ascii characters technique.

If any one knows about the metioned functionality, please let me know.

Thanks In Adavance.

Regards,
G.SUBBA RAO

2. ## Re: How to generate the characters like from 0 to 9 and a to z and A to Z using silktest.

Are you asking about TypeKeys()?

3. ## Re: How to generate the characters like from 0 to 9 and a to z and A to Z using silktest.

Try this code, is this what you need?

NOTE: you will need to add the parentesis to all functions below for some reason I was not able to add them

list of list of string lssLetters = { {"0", "9"}, {"a", "z"}, {"A", "Z"} };
list of string lsLetters = {};
int iStartCode = 0;
int iEndCode = 0;
int i =0;

Try this code, is this what you need?

list of list of string lssLetters = { {"0", "9"}, {"a", "z"}, {"A", "Z"} };
list of string lsLetters = {};
int iStartCode = 0;
int iEndCode = 0;
int i =0;

for each lsLetters in lssLetters
{
// NEED parentesis
iStartCode = Asc lsLetters[1];
iEndCode = Asc lsLetters[2];

for i = iStartCode; i &lt;= iEndCode; i++
{
Print Chr i; // NEED parentesis
Typekeys "Chr i"; // NEED parentesis
}
}

4. ## Re: How to generate the characters like from 0 to 9 and a to z and A to Z using silktest.

Hi,

See also the RandStr (sPicture) function....

With regards,
nelumoldovan49,

5. ## Re: How to generate the characters like from 0 to 9 and a to z and A to Z using silktest.

Hi Liparig,

Thanks for sending this information.
I will try this code and let you know, if i need any thing.

Once again thank you very much

Regards,
G.Subba Rao

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 9.68%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 09:11 AM.

Copyright BetaSoft Inc.