The online community for software testing & quality assurance professionals
   
Active Topics Today's Topics
Sponsors:
Lost Password?

Home
BetaSoft
Jobs
Training
News
Links
Downloads

News Group:
software.testing


Testing
Automation
Performance
Engineering
Miscellaneous
Statistics
Poll
  QA Forums
  WinRunner
  Update component with a Tab key

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   Update component with a Tab key
lsanabria
Member

Posts: 8
Registered: Jul 2002

posted 07-10-2002 09:12 AM     Click Here to See the Profile for lsanabria   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by lsanabria Visit lsanabria's Homepage!
Hello,

My aplication update some componentes when I press the tab key, based in the text of one text component. But WinRunner don't perform the action when a run the script. I have the following code:

edit_set_insert_pos ("txtLocalAmountQP", 0, 3);
edit_type ("txtLocalAmountQP", "001");
edit_type ("txtLocalAmountQP", "");

The component if for decimal numbers and have autoformat.

------------------

IP Logged

bpolitzer
Guru

Posts: 352
Registered: Jun 2002

posted 07-10-2002 09:21 AM     Click Here to See the Profile for bpolitzer   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by bpolitzer
Try the following:

edit_type ("txtLocalAmountQP", "/t");


or:

type("");

------------------

IP Logged

bpolitzer
Guru

Posts: 352
Registered: Jun 2002

posted 07-10-2002 09:22 AM     Click Here to See the Profile for bpolitzer   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by bpolitzer
Sorry, I meant:

type("");

------------------

IP Logged

bpolitzer
Guru

Posts: 352
Registered: Jun 2002

posted 07-10-2002 09:25 AM     Click Here to See the Profile for bpolitzer   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by bpolitzer

function.txt

 
See attached file. For some reason, I cannot post the actual text of the function.

------------------

IP Logged

cranem451
Guru

Posts: 395
Registered: Mar 2002

posted 07-14-2002 12:28 AM     Click Here to See the Profile for cranem451   Edit/Delete Message Copy This Message   Reply w/Quote Search for more posts by cranem451
 Sample code: 1707006.zip

Try the code from above link with the Windows Notepad application. The text in the sample box should change size after "13" is typed in the Size editbox and the TAB key is "typed".

If it works in Notepad make sure to use the "set_window" then "win_activate" before any TSL function's that send keystrokes!!!

[This message has been edited by cranem451 (edited 07-20-2002).]

IP Logged

All times are PT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic | Top
Post New Topic  Post A Reply
Hop to:

Contact Us | BetaSoft Inc. | Privacy Statement

Copyright © 1997-2003 BetaSoft Inc.


Ultimate Bulletin Board 5.45c