Professional Documents
Culture Documents
Yeah, which really sucks when you have global variables being set by your
startup script... :)
I did some playing around today, because I'm doing similar stuff.
Whether or not that will work for you depends entirely on what you are
trying to accomplish. :)
web_image_click problem
But whether or not that is appropriate really depends on what you mean by
"test all the links."
-----Original Message-----
From: John Arrowwood [mailto:jarrowwx@hotmail.com]
Sent: Friday, June 27, 2003 3:08 PM
To: winrunner@yahoogroups.com
Subject: Re: [winrunner] Every day i need to select deifferent 15 items
until the whole list is completed
out?
Let's do the math. Assuming that the test is to select between 1 and 15
23+180 = 203.
Now, if you ONLY did combinations of EXACTLY 15, and if it were possible
to
do ONE FULL TEST at the rate of one per second, it would take you:
764,629,534,598,820,978,498,067,094.79452 YEARS!!!
I don't think the SUN will last that long, let alone the release cycle
on
whatever software you are testing... :)
If they want EVERY combination between 1 and 15, you have to add the
times
up...
So, No...you are NOT going to do every combination. Period. It's not
going
to happen. Go back to whoever wrote the requirements and ask for
clarification of what they need. Also, you might calculate how long it
takes, on average, to do a transaction, and based on the final ship
date, or
the build drop schedule, calculate how many tests you can do in a cycle,
and
make them adjust their requirements to fit the available time.
>Shanthi Tummala
Take out the space at the end after the .*...that's what is causing it to
not match.
Check file permissions. Make sure the exp folder is not read-only. Make
sure the folder that the script lives in (meaning the file "script" is also
read/write), as is the folder that the results go in (like "debug" if you
are running in debug mode).
Also, are you running from TestDirector? Are you running in Batch mode?
Both of these change where the results will be written to...
Which property grid? GUI spy? You want to read them programmatically? You
can't run TSL and have the GUI spy open at the same time, so no...
If you just want the info, there is a little "copy" button at the bottom
that generates the following, for example.
{displayed: 1,width: 623,x: 0,y: 37,abs_x: 0,class: window,MSW_class:
MS_WINHELP,abs_y: 37,maximizable: 1,focused: 0,height: 667,module_name:
"M:\\WINNT\\winhlp32.exe",active: 0,MSW_id: "-1596140352",handle:
5505208,minimizable: 1,owner: "winhlp32.exe",nchildren: 20,label: "TSL
Online Reference",enabled: 1,TOOLKIT_class: MS_WINHELP}
If you want code that can parse that into an array, cut and paste the
following (but make them public)
extern RSTART,RLENGTH;
pos = 1;
value = "";
do
{
start_pos = pos;
}
while ( ! quote_next );
}
while ( ! MatchAt( pos, CLOSE_BRACE, desc ) );
return E_OK;
}
physdesc = "{";
ArrayKeys( properties, keys, ASCENDING, CASE_INSENSITIVE );
for ( i in keys )
{
physdesc = physdesc &
""&
Quoted( keys[i] ) & ": " &
Quoted( properties[ keys[i] ] ) & ",";
}
physdesc = substr( physdesc, 1, length( physdesc ) - 1 );
physdesc = physdesc & " }";
return physdesc;
}
Your right I didn't think about two numbers in the file name, but probably
would have found it while debuging the code :).
Rick
----Original Message Follows----
From: "John Arrowwood" <jarrowwx@hotmail.com>
Reply-To: winrunner@yahoogroups.com
To: winrunner@yahoogroups.com
Subject: Re: [winrunner] Increment String Value
Date: Thu, 26 Jun 2003 19:43:59 -0700
Always good not to assume too much about the data you are working with.
Hi ,
Try to use GUI Check point inthe WR, click on create-gui check point - for
object window, then select the field for whcih u want to see the focus is
there or not,
Ravi
----- Original Message -----
From: "amith kumar s m" <amithkumarsm@yahoo.co.in>
To: <winrunner@yahoogroups.com>
Sent: Friday, June 27, 2003 11:36 AM
Subject: [winrunner] how to check cursor position??
> Hi group,
>
> In my AUT, I want to check if the cursor is placed in the
> edit box or not.
> How do I tackle this problem.
>
> Thanks in advance,
> Amith
>
{
class: window,
label: "!Application Form\\ .* ",
MSW_class: ThunderRT6FormDC
}
1. have the called test use "treturn <value>;" to signal pass/fail, as was
already suggested
2. have the called test bail out completely on failure using "texit;"
3. test all return codes and put if conditions around everything (very
invasive, harder to read the code)
4. have a TSL exception handler that sets a flag, or even causes test
execution to stop.
Whether you can use option 2 or similar depends on whether there is anything
you want your 'main' script to do after executing (or skipping) all the
tests in the "set".
Hi,
I believed that issue was already solved last week. As my QA Leader's
per request, I need to generate 50 Stakeholders for each Organization.
So I ran same script o make sure it works purposely before start to
generate 50 persons. I'm facing new problem again. Please read information
as follows:
GUI_close_all();
GUI_load("C:\\Program Files\\Mercury
Interactive\\WinRunner\\tmp\\AddST\\AddST.gui"); # acctually load gui file properly.
web_browser_invoke(IE,"http://66.207.34.249:8080/ecm");
set_window("Exigen Customer Management",147); # Run Wizard pops up and
ask for learn it.
edit_set("login","julieSA"); # login name: "guestsa" is replaced during
run script
edit_set("psw","julieSA");# psw name: "guestsa" is replaced during run
script
button_press("Submit");# message pops up: "Object is not currectly
displayed".
web_sync(10);
web_link_click("Customer");# message pops up: "Object is not currectly
displayed".
web_sync(2);
web_link_click("Stakeholder");# message pops up: "Object is not
currectly displayed". So on......
web_sync(5);
table = "AddST.xls";
rc = ddt_open(table, DDT_MODE_READ);
if (rc!= E_OK && rc != E_FILE_OPEN)
pause("Cannot open table.");
ddt_get_row_count(table,table_RowCount);
for(table_Row = 1; table_Row <= table_RowCount; table_Row ++)
{
}
ddt_close(table);
Thank you, D
Hopefully you won't have issues querying the checked state of the list item.
I once went round and round with MI trying to get support for a standard
MFC control with that feature, and they never could provide a solution for
it. Ug. :)
>From: Lakshminarayan_V@blore.tcs.co.in
>Reply-To: winrunner@yahoogroups.com
>To: winrunner@yahoogroups.com
>Subject: [winrunner]problem with Listbox having Check box .
>Date: Mon, 23 Jun 2003 18:22:32 +0530
>
>
>Pls any one suggest solution for this problem
>
>
>Hi All,
> I am facing a problem while scripting for a particular test case
>where
>in i have a list box which has the check boxes.
>
>The snap shot of the object is..
>
>(Embedded image moved to file: pic00041.pcx)
>
>set_window ("Card Order", 19);
>obj_mouse_click ("SSFrameWndClass_0", 108, 87, LEFT);
>list_select_item ("ThunderRT5ListBox", "FRITZNER,OTTO H"); # Item Number 0;
>list_deselect_item ("ThunderRT5ListBox", "HANKS, TOM "); #
>Item Number 1;
>
>v Above object is recognized as a list box.
>v However, when the list_select_item statement is used, the check box is
>not checked.
>
> Is there any solution for selecting the list item and check/uncheck the
> check box.
> The object cannot be configured as virtual object since it is
> dynamic??.The number of item may range from 1 to many.
>
> Anyone pls have any solution for this. Pls let me know ASAP.
>
> Regards,
> Lakshminarayan V
>
>
>
>[Non-text portions of this message have been removed]
>
>+-+-+-+-+-+-+-+-+-
>Unsubscribe: winrunner-unsubscribe@yahoogroups.com
>Questions, View http://groups.yahoo.com/group/winrunner/?yguid=7144566
>Moderater: Ed Badger EBadger@ACLabs.com
>+-+-+-+-+-+-+-+-+-
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
> ----------
>
>The information contained in this message is likely to be confidential and
>may be legally privileged. The dissemination, copying or disclosure of
>this message or its contents is strictly prohibited unless authorized by
>TATA CONSULTANCY SERVICES. It is intended only for the person named as
>addressee. If you have received this message in error, please immediately
>return it to sender at the above address without retaining any copy. You
>may also contact on 91-080-2207506 the Head of IDM on this.
>
>
>[Non-text portions of this message have been removed]
To: winrunner@yahoogroups.com
cc: (bcc: Seema Jagatap/HSSBLR)
I had a similar problem, but for IE. I called M-I support about it
and they had me register a dll (in the arch folder). No doubt NS
would require different dll's, so I can't tell you what to do, but
you should probably contact M-I support and ask them.
.
Thank you for your help, Subramaniyan!
"Problem ID 14577
How to copy text to and read text from the clipboard
Sometimes WinRunner's standard text functions,
obj_get_text and win_get_text, cannot capture all the
text the user needs. If the user copies the text to
the system clipboard, then all the text can be
captured....".
Hi vinai,
With regards,
Kumar.K.V
PCS
use
win_get_text(Window_name, var_in_which_the_text_is_stored)
sys_msg(var_in_which_the_text_is_stored);
rc=GetBrowserPath(browser_type,browser_path);
if (rc==0)
return E_GENERAL_ERROR;
invoke_application(browser_path,site,"",SW_SHOW);
return (E_OK);
}
as a workaround?
-----Original Message-----
From: Rajkumar Subramanian [mailto:rajkumarr_s@yahoo.com]
Sent: viernes, 20 de junio de 2003 7:58
To: winrunner@yahoogroups.com
Subject: [winrunner] Web browser Invoke
Group,
web_browser_invoke(IE,"http://www.google.com");
invokes internet explorer.
But
web_browser_invoke(NETSCAPE,"http://www.google.com");
doesn't invoke Netscape.
Regards,
Rajkumar.
Hi.
Ian Phillips
Chef de Projet QA
VistaPortal & PortalSE
InfoVista
6 rue de la Terre de Feu
91952 Courtaboeuf Cedex
Email: iphillips@infovista.com
Phone: +33 (0)1 64 86 85 46