SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Mar 2000
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Getting SilkTest to print \"<\" character in textbox

    I'm new to SilkTest, and am trying to test my first web app. I'm reading data into my testcase, which is then printing the data into a form. I have been trying to read in a < character, and it blows up with a Syntax Error every time I run it. I've tried using the chr() function, but even that doesn't work. I think Silktest is converting the ASCII code back to a character when it is reading it into the testcase rather than when it is writing it to the form. Any ideas on how I can get this to work?

    Thanks
    -JJohnson

  2. #2
    Senior Member
    Join Date
    Jul 2002
    Location
    Paris (France)
    Posts
    182
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting SilkTest to print \"<\" character in textbox

    I had the problem last night actually. use SetText("<my text>") rather than TypeKeys("<my text>").



    ------------------
    David Genrich
    Icarian
    555 North Mathilda Ave
    Sunnyvale, CA 94086
    davidg@icarian.com

  3. #3
    Member
    Join Date
    Dec 1999
    Location
    Seattle, WA
    Posts
    64
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting SilkTest to print \"<\" character in textbox

    ...or use &lt;Greater&gt; to represent the &gt; character. the greater and less than in typekeys are reserved for special keys, e.g. &lt;Delete&gt;
    <BLOCKQUOTE]<font size=1 face=Verdana, Arial, Helvetica]quote:</font]<HR]It doesn't matter if I go to heaven or to hell, I have friends in both places.<HR]</BLOCKQUOTE]

  4. #4
    Junior Member
    Join Date
    Nov 1999
    Location
    Chelmsford, MA, USA
    Posts
    24
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting SilkTest to print \"<\" character in textbox

    You can also use the Chr() function. Just pass Chr() the number which represents the ASCII code for the '>' character. This works for making new lines, the '{' characters, etc.

    Use your key character map on windows to find this out or find an ASCII chart in a text book. You can also find this stuff in VC++, VB, VJ++ and other dev environments.

    Cheers

    ------------------
    <UL TYPE=SQUARE>
    <LI>Peter
    <LI> pfwick@epicon.com
    <LI>Epicon, Inc. [/list]
    <UL TYPE=SQUARE]
    <LI]Peter
    <LI] pfwick@nortelnetworks.com
    <LI]Epicon, Inc.
    </UL]

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 02:28 PM.

Copyright BetaSoft Inc.