WinRunner Problems User of Switch or Loop Use switch or loop? Yeah, which really sucks when you have global variables being set by your startup script... :) >From: "Decker, Jay" <
[email protected]> >Reply-To:
[email protected] >To:
[email protected] >Subject: RE: [winrunner] Use switch or loop? >Date: Fri, 27 Jun 2003 14:56:55 -0700 > >Unless you select Run | Stop. Selecting Stop allows the values in an >array to be re-initialized without updating them through the Watch >Window or restarting WinRunner....of course all your variables are >un-initialized and will need to be reset. > >-----Original Message---->From: John Arrowwood [mailto:
[email protected]] >Sent: Friday, June 27, 2003 2:48 PM >To:
[email protected] >Subject: RE: [winrunner] Use switch or loop? > > >Sorry, last one got sent before it was done... > >static list[] = >{ 1= > "item1", > "item2", > # ... > "itemN" >}; > >Then, in your code, you could do something like: > >for ( .... ) >{ > rc = web_link ( list[i], valid ); ># ... >} > >Get the idea? > >Word of warning, though: While debugging, re-running does NOT update >the >array if you have changed the init code. Only the first time. after >that, >you have to either modify it via the Watch Window, or restart WinRunner, > >because the init _expression is only evaluated the first time.
>Personally, I >think it's a bug. They would probably say it is by design. > > > > > >From: "Decker, Jay" <
[email protected]> > >Reply-To:
[email protected] > >To:
[email protected] > >Subject: RE: [winrunner] Use switch or loop? > >Date: Fri, 27 Jun 2003 12:11:39 -0700 >> > >set_window ("Exigen Customer Management", 2); >> > >For (i = 1; i <= 7; i++) > >{ >> switch (i) >> { >> case 1: >> link = "User maintenance"; break; >> case 2: >> link = "Group Maintenance"; break; >> case 3: >> link = "Services"; break; >> case 4: >> link = "Organization Maintenance"; break; >> case 5: >> link = "Type Maintenance"; break; >> case 6: >> link = "Role Maintenance"; break; >> case 7: >> link = "Query Maintenance"; break; >> default: >> continue; break; >> } >> >> > > AB=web_link_valid (link, valid); >> if (AB == E_OK) >> { >> msg = sprintf ("%s is%svalid", link, (valid == TRUE) > >? " " : " NOT "); >> report_msg (msg); >> } >> else >> { >> report_msg (" Operation failed."); >> } > >} >> >> >> > >-----Original Message----> >From: daphne loh [mailto:
[email protected]] > >Sent: Friday, June 27, 2003 11:45 AM >To:
[email protected]
> >Subject: [winrunner] Use switch or loop? >> >> > >Hi, > >I'm testing seven html text links in the left-side panel in web app. It > >contains: User maintenance, Group Maintenance, Services, Organization > >Maintenance, Type Maintenance, Role Maintenance, Query Maintenance. How > > >do you use switch or loop function to verify name of text link is valid > > >and navigate to an appropriated page. >> > >Let me list one of object's physical descr: > >{ > > class: object, > > MSW_class: html_text_link, > > html_name: "Group Maintenance" > >} >> >> > >set_window ("Exigen Customer Management", 2); AB=web_link_valid ("Group > > >Maintenance", valid); if (AB == E_OK) > >{ >> if (valid == TRUE) >> { >> report_msg (" Link name is valid."); >> web_link_click("Group Maintenance"); >> } >> else >> { >> report_msg (" Link name is not valid."); >> } > >} > >else > >{ > >report_msg (" Operation failed."); > >} > Reading values from property grid
I did some playing around today, because I'm doing similar stuff. If what you are trying to do is programmatically ask WinRunner to tell you, for instance, what the X and Y coordinates are, use obj_get_info() or win_get_info(). If you want to get all of them at once, use obj_get_desc() and win_get_desc(). For the latter, what are the properties you pass in? Whatever it is you want to know... What I did was this: I made a list of all the available properties for the "object" class, (see GUI map
configuration) and then used get_record_attr() to get a list of anything that might be non-standard for that object which is part of the learned properties. Made the whole thing 'obligatory' and then passed that to win_get_desc. So long as you don't ask for the "parent" property when calling win_get_desc(), it works great! Whether or not that will work for you depends entirely on what you are trying to accomplish. :) >From: "Anand J Joshi"
>Reply-To: [email protected] >To: <[email protected]> >Subject: [winrunner] Reading values from property grid >Date: Fri, 27 Jun 2003 09:39:31 +0530 > >Is it possible to read the values which are in the property grid. > > >Anand J Joshi web_image_click problem Here's one way...create a loop. In that loop, build the physical description for the link (but use a regular _expression for the file name), and increment the location from 0 until you get one where a test of obj_exists() or web_obj_exists() comes back as something other than E_OK. But whether or not that is appropriate really depends on what you mean by "test all the links." >From: "bgkiran2002" >Reply-To: [email protected] >To: [email protected] >Subject: [winrunner] web_image_click problem >Date: Fri, 27 Jun 2003 04:25:16 -0000 > >Hi, > Can anybody help me in this situation! > I am testing a site which is having many 'Go' buttons. i.e., >For each name/link there is one 'Go' corresponding to that. The >links in the page will vary based on the selection. I need to test >all the links in the page. > How to do this. I am new to winrunner, could you pls help me. >Physical desc: >{ > class: object, > MSW_class: html_rect, > html_name: "go_d_e0f2ff_153.gif", > location: 2 >} > >// The location is changing based on the image location. > >Thanks in advance >Kiran
Every day i need to select deifferent 15 items until the whole list is completed
I would suggest looking up "Pairs Testing" or "Pairs combination". There is a Pairs utility at www.satisfice.com to help you figure out a subset of what you want to test that will still provide some measure of security knowing you have tested a good majority of your application. -----Original Message----From: John Arrowwood [mailto:[email protected]] Sent: Friday, June 27, 2003 3:08 PM To: [email protected] Subject: Re: [winrunner] Every day i need to select deifferent 15 items until the whole list is completed Oh, geez. Well, all possible combinations of 15 total selections, or a certain amount in one and a certain amount in the other? And are there valid and invalid test cases? Are there equivalence classes you can cut out? Let's do the math. Assuming that the test is to select between 1 and 15 items, until all possible combinations have been tested: 23+180 = 203. There are 203 test cases with only selecting one. For selecting two, there are 203 * 202 = 41006 For 3, 203 * 202 * 201 = 8242206 for 4, ...* 200 = 1648441200 for 5, ...* 199 = 328039798800 for 6, ...* 198 = 64951880162400 for 7, ...* 197 = 12795520391992800 for 8, ...* 196 = 2507921996830588800 for 9, ...* 195 = 489044789381964816000 for 10, ... * 194 = 94874689140101174304000 for 11, ... * 193 = 18310815004039526640672000 for 12, ... * 192 = 3515676480775589115009024000 for 13, ... * 191 = 671494207828137520966723584000 for 14, ... * 190 = 1.2758389948734612898367748096e+32 for 15, ... * 189 = 2.411335700310841837791504390144e+34 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. >From: shanthi Tummala >Reply-To: [email protected] >To: [email protected] >Subject: Re: [winrunner] Every day i need to select deifferent 15 items >until the whole list is completed >Date: Fri, 27 Jun 2003 07:11:56 -0700 (PDT) > >Hi >John >I need to test all the possible combinations >Thanks > >John Arrowwood <[email protected]> wrote: >Depends, do you need to be exhaustive and test all possible >combinations? (see you next millenium...) > >Or do you just need to do SOMETHING? > >You need to specify the WHY of the test case more than the WHAT. > > >From: "tummala_sh" > >Reply-To: [email protected] > >To: [email protected] > >Subject: [winrunner] Every day i need to select deifferent 15 items > >until the whole list is completed > >Date: Thu, 26 Jun 2003 19:49:08 -0000 >> > >Hi >> > >Could any one help me. >> > >I am very new to winrunner >> > > In my GUI application I have 2 list boxes which has the check > >boxes. One list check box has 23 items and other has 180 items. The > >maximum total items (from 1 and 2 list boxes) that I can check are 15 > >items and run the job. >>
> >Each time I need to select different 15 items every day. >> > >I would appreciate if any one could suggest me a better approach on > >this. >> > >I was able to run the test for 1 set, . I had used both cotext and > >anolog mode >> > >Thanks >> >> >> >> >> >> > >+-+-+-+-+-+-+-+-+> >Unsubscribe: [email protected] > >Questions, View > >http://groups.yahoo.com/group/winrunner/?yguid=7144566 > >Moderater: Ed Badger [email protected] > >+-+-+-+-+-+-+-+-+>> > >Your use of Yahoo! Groups is subject to > >http://docs.yahoo.com/info/terms/ > > >Yahoo! Groups SponsorADVERTISEMENT > >+-+-+-+-+-+-+-+-+>Unsubscribe: [email protected] >Questions, View http://groups.yahoo.com/group/winrunner/?yguid=7144566 >Moderater: Ed Badger [email protected] >+-+-+-+-+-+-+-+-+> >Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. >Shanthi Tummala can i have regular expression on windows label.... Take out the space at the end after the .*...that's what is causing it to not match. >From: "Balakrishna" >Reply-To: [email protected] >To: <[email protected]> >Subject: [winrunner] can i have regular _expression on windows label.... >Date: Tue, 25 Mar 2003 18:32:41 -0800 > >Hi guys. > >I'm having a prob.. >
>My window desc is > > { > class: window, > label: "Application Form (Academic Year : 01-Jun-2003 - 31-Mar-2004)", > MSW_class: ThunderRT6FormDC >} > > I change it to.. >{ > class: window, > label: "!Application Form .* ", > MSW_class: ThunderRT6FormDC >} > >winrunner cannot recognise the form still.. any ideas ..It's a vb >application.. > >balu gui checklist errors 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... >From: "usersnova" <[email protected]> >Reply-To: [email protected] >To: [email protected] >Subject: [winrunner] gui checklist errors >Date: Fri, 27 Jun 2003 18:30:37 -0000 > >When creating gui checklists, I can't run them because i get an error >that says that it can't open the expected results file to which the >results are written to. > >obj_check_gui(Object, Checklist, File, Time); > >Any thoughts? > >Thanks >-Mark Reading values from property grid 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) ---------- BEGIN ---------static const WHITESPACE = "[ \t\r\n]*"; static const IDENTIFIER = "[^\.\,\:\{\}\ ]*"; static const QUOTE = "\""; static const QUOTED_CHARS = "[^\\\"]*"; static const ESCAPED_CHAR = "\\."; static const UNQUOTED_VALUE = "[a-zA-Z0-9_]*"; static const COLON = ":"; static const COMMA = ","; static const OPEN_BRACE = "{"; static const CLOSE_BRACE = "}"; extern RSTART,RLENGTH; static function MatchAt( in pos, in pattern, in str ) { auto temp; temp = substr( str, pos ); return ( match( temp, pattern ) == 1 ? RLENGTH : 0 ); } static function ParsePhysicalDescription( in desc, out properties[] ) { auto pos, start_pos, found; auto quote_next; auto key, value; pos = 1; # start by skipping the open curley brace found = MatchAt( pos, OPEN_BRACE, desc ); if ( ! found ) return E_SYNTAX; pos += found; # parse the properties do { # skip the comma (not valid the first time through) pos += MatchAt( pos, COMMA, desc ); # skip any whitespace pos += MatchAt( pos, WHITESPACE, desc ); # get the identifier name found = MatchAt( pos, IDENTIFIER, desc ); if ( ! found ) return E_SYNTAX;
key = substr( desc, pos, found ); pos += found; # skip the : and whitespace found = MatchAt( pos, ":" & WHITESPACE, desc ); if ( ! found ) return E_SYNTAX; pos += found; # check to see if this is a quoted or unquoted value found = MatchAt( pos, UNQUOTED_VALUE, desc ); if ( found ) { value = substr( desc, pos, found ); pos += found; } else # extract the quoted value { if ( ! MatchAt( pos, QUOTE, desc ) ) return E_SYNTAX; else pos++; value = ""; do { start_pos = pos; # get any characters not quoted nor escaped found = MatchAt( pos, QUOTED_CHARS, desc ); value = value & substr( desc, pos, found ); pos += found; # get any quoted characters found = MatchAt( pos, ESCAPED_CHAR, desc ); if ( ! found && ! MatchAt( pos, QUOTE, desc ) ) return E_SYNTAX; if ( found ) value = value & substr( desc, pos + 1, 1 ); pos += found; # check for error condition quote_next = MatchAt( pos, QUOTE, desc ); if ( pos == start_pos && ! quote_next ) return E_SYNTAX; } while ( ! quote_next ); # skip the quote pos++; } # end of quoted string value handling # save the value into the array properties[key] = value; # skip any whitespace
pos += MatchAt( pos, WHITESPACE, desc ); } while ( ! MatchAt( pos, CLOSE_BRACE, desc ) ); return E_OK; } static function Quoted( in value ) { if ( match( value, "[^a-zA-Z0-9_]" ) ) return "\"" & EscapeChars( value, "\"", "\\" ) & "\""; else return value; } static function BuildPhysicalDescription( inout properties[] ) { auto keys[]; auto i; auto physdesc; 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; } ---------- END ---------->From: "Anand J Joshi" >Reply-To: [email protected] >To: <[email protected]> >Subject: [winrunner] Reading values from property grid >Date: Fri, 27 Jun 2003 09:39:31 +0530 > >Is it possible to read the values which are in the property grid. > > >Anand J Joshi Increment String Value 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" <[email protected]> Reply-To: [email protected] To: [email protected] Subject: Re: [winrunner] Increment String Value Date: Thu, 26 Jun 2003 19:43:59 -0700 >if u would like to have display .. adc_user002.. loke that >plz follow the code, > >blah="abc_user001"; >Numeric_Location_int=match(blah,"[0-9]"); >Out_Data_str=substr(blah,1,(Numeric_Location_int-1)); >Out_Data_str2=substr(blah,(Numeric_Location_int))+1; >blah2=Out_Data_str & "00" Out_Data_str2; So if blah="abc01_user001", what will you get? Always good not to assume too much about the data you are working with. how to check cursor position?? 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" To: <[email protected]> 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 > Regular expression on windows label.... use this form: { class: window, label: "!Application Form\\ .* ",
MSW_class: ThunderRT6FormDC } Hope this works... :) Ravi How to Fail a Called Script???
There are many options for this... 1. have the called test use "treturn ;" 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". >From: "juliejester" <[email protected]> >Reply-To: [email protected] >To: [email protected] >Subject: [winrunner] How to Fail a Called Script??? >Date: Tue, 24 Jun 2003 00:55:46 -0000 > >Hi, > >I have 10 scripts that are being called (not in batch mode) by one >main script. If one of my processes in the script has an "Error" I >want to have the script "Fail" and not continue on. Currently if I >have an "Error", it reports it to the test log as an error but it >continues on to the next script being called - which I don't want. > >Is there a way if I get an "Error" with my script, I can "stop" the >individual script and "stop" the calling script to halt all further >script running??? > >Thanks, Julie > >p.s. > >I have tried the following code in my script to no success... > >rc=process_scheduler(); # checking process for Pass or Fail# >if (rc!=E_OK) >texit; > > and
> >rc=process_scheduler_request(); >if(status==5) #5 = Error >stop_wr(61); #Ctrl F3 function >
Object is not currectly displayed. 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: WR cannot find an object from beginning. So run wizard and error message pops up all the time like: Object is not currently displayed. For instance: marked as read color 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 ++) { button_press("Add New Stakeholder"); ddt_set_row(table,table_Row); web_set_run_event_mode(TRUE); list_select_item("ten",ddt_val(table,"ten")); web_set_run_event_mode(FALSE); web_sync(5); edit_set("fname",ddt_val(table,"fname"));
edit_set("lname",ddt_val(table,"lname")); edit_set("full",ddt_val(table,"full")); edit_set("dob",ddt_val(table,"dob")); web_sync(5); web_set_run_event_mode(TRUE); list_select_item("cons_type",ddt_val(table,"cons_type")); web_set_run_event_mode(FALSE); web_sync(5); web_set_run_event_mode(TRUE); button_press("Save Changes"); web_set_run_event_mode(FALSE); web_sync(4); button_press("Add New Stakeholder"); } ddt_close(table); However, if executed whole script step by step (using keyboard F6). It works perfect. No an error message popping up. It’s weird. I really have no idea how does WR treat it in different way. Does anyone workaround it. Please help me to figure out. Earlier reply would be highly appreciated. Thank you, D problem with Listbox having Check box . Solution: Specify the optional "offset" parameter. Make it enough pixels so that it clicks right in the middle of the checkbox. 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: [email protected] >Reply-To: [email protected] >To: [email protected] >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: [email protected] >Questions, View http://groups.yahoo.com/group/winrunner/?yguid=7144566 >Moderater: Ed Badger [email protected] >+-+-+-+-+-+-+-+-+> >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] GUI object are not idetified......... I had also faced similar problem once ...but because of incompatibility of browser with winrunner ....i have winrunner 7.0 installed on my system and it does not support IE6.0 ..so i had to uninstall and install IE5.5 ...it started working.... ---So in these cases incompatibility of browser verison with winrunner version may be one of the reason.
--Seema "pruscoe" <[email protected]> on 06/20/2003 01:19:25 AM Please respond to [email protected] To: [email protected] cc: (bcc: Seema Jagatap/HSSBLR) Subject: [winrunner] Re: GUI object are not idetified......... 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.
--- In [email protected], Rajkumar Subramanian wrote: > Hi, > > I have a problem with Netscape. When i record the gui > objects using winruuner on netscape, winrunner doesn't > recognise the GUI objects. It always displays > obj_mouse_click, obj_mouse_click..... statements etc. > What should i do in winrunner, for identifying gui > objects on netscape. > > I am new to this group as well as this winrunner. > > Regards, Rajkumar.
How to force "win_get_text" to capture full 2048 chars? . Thank you for your help, Subramaniyan! Forgive me, but do you know of a specific KnowledgeBase Problem ID that addresses this issue? I tried some searches on "Increase the Text length" and on "win_get_text", and the closest I could find is the following: "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....". (This CTRL-C to the clipboard approach won't work for me, though...because it still requires line-by-line text capture plus concatenation.)
BTW, my WinRunner General Options/ Text Recognition" CheckBox is set to OFF for "Use Image Text Recognition Option". Thanks again for any advice! Using the GUI Maps... Hi vinai, I think the best approach to learn the objects is (1) Set to Global GUI mode (2) Use the GUI map editor and learn objects present in all ur application screens even popup error screens. Then u save that gui . (3) Put GUI_load in ur startup script and use that for all ur test sets. With regards, Kumar.K.V PCS --- In [email protected], "svtn" <svtn@y...> wrote: > Hi Kishore, Roy and all, > > Yes it works. Many Thanks! > > I am wondering if there are any sample GUI test suites developed > using winrunner available on the net for free. All my google(search) > on the net did not result in any fruitful results. I am looking for > this test suite because it would give me an idea of how to organise > the different test cases and also how to reuse the test cases. Any > pointers? > > Thanks > > Vinai > > --- In [email protected], "Yagna A" wrote: > > Hai Vinai > > while Loading WR one Add-in window comes .at that tym > > u select Visual Basic.. then u'll def find Rapid Test > > Script Wizard > > Bye > > Kishore > > --- svtn <svtn@y...> wrote: > > >I did restart after setting to Global mode. But it > > >still doesn't work. >>> > > >Thanks >>> > > >Vinai >>> > > >--- In [email protected], "SubbaReddy Pulakandam"
> > ><subbareddy_p2@r...> wrote: > > > > > after u select Global mode for gui map , u > > >will have to restart ur winrunner > > infact wat raj adviced > is > > >correct > > try once > if not we will help u out > > cheers > > subbu > > > >On Wed, 18 Jun 2003 svtn wrote : > > > > >dear raj and all, > > > > >The "Global GUI Map" is what selected in the > > >General Options. But > > > > >that doesn't help. Can it be due to any other > > >reason? > > > > >thanks, > > > > >Vinai > > > > >--- In [email protected], Raj Rohilla > > > > > > > >wrote: > > > > >> Check the GUI file mode.. > > > > >> > > > > >> If you are working in GUI map file per test > > >mode then > > > > >> also you won't get Rapid test script wizard. > > > > >> > > > > >> Check in the General options and if GUI map > > >file per > > > > >> test is selected,, then select Global GUI map.. > > > > >> > > > > >> hope this works.... > > > > >> > > > > >> Cheers > > > > >> RAJ > > > > >> > > > > >> --- svtn <svtn@y...> wrote: > dear prasad and > > > > >> all, > > > > >> > > > > > >> > Even when the webtest is unchecked in the > > >add-in > > > > >> > manager, I couldn't > > > > >> > see the "RapidTestScript" Wizard in the > > >Create menu. > > > > >> > Can there be any > > > > >> > other reason? > > > > >> > > > > > >> > Thanks, > > > > >> > Vinai. > > > > >> > > > > > >> > --- In [email protected], "GAV > > > > >> > Prasad\(SQA\)" > > > > >> > <prasadgav@i...> wrote: > > > > >> > > Dear Vinay, > > > > >> > > > > > > >> > > "Rapid Test Scrip Wizard" will not be > > >available if > > > > >> > "Web Test" is > > > > >> > enabled in Add-in manager. > > > > >> > >
> > > > >> > > To use "Rapid Test Scrip Wizard" uncheck > > >the > > > > >> > webtest check box in > > > > >> > Addin manager during loading of WinRunner. > > > > >> > > > > > > >> > > Once the WR is loaded navigate menu > > >Create--> > > > > >> > Rapid Test Script > > > > >> > wizard. > > > > >> > > > > > > >> > > WinRunner 7.5 Documentation is available > > >with > > > > >> > Winner Runner Help > > > > >> > menu. > > > > >> > > > > > > >> > > Thanks > > > > >> > > Prasad > > > > >> > > ----- Original Message ----> > > > >> > > From: svtn > > > > >> > > To: [email protected] > > > > >> > > Sent: Tuesday, June 17, 2003 2:52 AM > > > > >> > > Subject: [winrunner] Using the GUI > > >Maps... > > > > >> > > > > > > >> > > > > > > >> > > Hi all, > > > > >> > > > > > > >> > > I am new to winrunner (hardly 2 weeks ). > > >I am > > > > >> > using winrunner 7.5 > > > > >> > to > > > > >> > > automate the testing of a GUI application > > > > >> > developed in c++ and > > > > >> > > windows. I have a couple of questions > > >regarding > > > > >> > the GUI Objects > > > > >> > and > > > > >> > > GUI Map Editor. > > > > >> > > > > > > >> > > 1. I have the docuementation for > > >winrunner 6.0 > > > > >> > which says > > > > >> > > that "RapidTest Script Wizard" is the > > >best way > > > > >> > to learn the GUI > > > > >> > > objects in the application to be tested. > > >But, I > > > > >> > am not able to > > > > >> > find > > > > >> > > the "RapidTest Script Wizard" in the > > >Winrunner > > > > >> > Screen . As a > > > > >> > result, > > > > >> > > I save the GUI MAP when recording the > > >test case. > > > > >> > However, I often
> > > > >> > get > > > > >> > > into problems like some objects not found > > >in GUI > > > > >> > Map when I > > > > >> > execute > > > > >> > > the object. > > > > >> > > > > > > >> > > 2. In the process of creating Test Suite > > >for the > > > > >> > application, I > > > > >> > am > > > > >> > > not sure if I have to create one big GUI > > >map > > > > >> > file containing all > > > > >> > > objects or small GUI map files > > >corresponding to > > > > >> > individual test > > > > >> > cases. > > > > >> > > > > > > >> > > Any help is highly appreciated. > > > > >> > > > > > > >> > > Thanks, > > > > >> > > Vinai. How to trap VB/Java run time Script errors in Web pages? use win_get_text(Window_name, var_in_which_the_text_is_stored) sys_msg(var_in_which_the_text_is_stored); (Take the exact one from winr) hope this helps Web browser Invoke The web_browser_invoke function is like this public function web_browser_invoke(browser_type,site) { auto browser_path,rc; rc=GetBrowserPath(browser_type,browser_path); if (rc==0) return E_GENERAL_ERROR; invoke_application(browser_path,site,"",SW_SHOW); return (E_OK); }
so you can use
invoke_application("NETSCAPE PATH",site,"",SW_SHOW); as a workaround? -----Original Message----From: Rajkumar Subramanian [mailto:[email protected]] Sent: viernes, 20 de junio de 2003 7:58 To: [email protected] 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. I feel some patches to be installed. Is it right? But there no information about this in the documents. Please let me know what should done for this. Regards, Rajkumar. Web browser Invoke Hi. It depends on the version of Netscape you have installed. Netscape is used to invoke version 4, Netscape6 is to invoke version 6. Ian Phillips Chef de Projet QA VistaPortal & PortalSE InfoVista 6 rue de la Terre de Feu 91952 Courtaboeuf Cedex Email: [email protected] Phone: +33 (0)1 64 86 85 46