Re: Copy Environment Variables to differnt scripts

2018-06-28 Thread sarahmear9
Thanks Nikhil for a quick response. However that's not what I'm looking for. Let me see if I can explain my problem in a different way. Script 1 has the following Env variables StartTime (Captures the start time of the script) EndTime(Capture the End time of the script) I want to copy

Copy Environment Variables to differnt scripts

2018-06-27 Thread sarahmear9
Hi, Is there an easy way to copy the environment variable names from one script to another? I don't want to load them because then they are external and I cannot update them, My scripts are executed by different people on different machines. However most of these scripts use the same

Re: Issue running a batch file with scripts that have differnt add-ins

2018-06-12 Thread sarahmear9
On Tuesday, June 12, 2018 at 1:16:53 AM UTC-4, ari metaforum wrote: > > > > Hi you should activate the add-in before you execute the script > > Thanking You! > Regards: Software Testing Training In Chennai > > Add-in

Issue running a batch file with scripts that have differnt add-ins

2018-06-11 Thread sarahmear9
Hi, I have few scripts that I would like to run using batch runner utility. I was able to run the scripts but I noticed the scripts that failed had error "Add-in" not activated.How can I run multiple scripts using the batch runner if each script has different add-ins. If I execute each

Please show me how to use descriptive programming for WinListView.

2018-04-11 Thread sarahmear9
Hi I want to use descriptive programming for WinListView. Windows("abc") is in the object repository. The problem is that the dialog I'm working on has two WinListView objects. I cannot use windows id or hwnd because I'm afraid they might change. Both WinListView have almost same

How to get average using variable instead of columnnames.

2018-02-07 Thread sarahmear9
Hi, I want to get the average from B2:B4. Following statement works. objExcel.Cells(7, 2).Formula = "=AVERAGE(B2:B4)" However instead of using B2 directly how can I use a variable? *Example:* ColumnName = "B2" objExcel.Cells(7, 2).Formula = "=AVERAGE(ColumnName:B4)" 'this doesn't

When to set excel Objects to nothing

2018-02-02 Thread sarahmear9
Hi guys, Can we use the same excel object in different functions but same Action? I guess my concern is I'm calling the subs more than 1 time and not setting the object to nothing until the end. Is that ok? What's the best approach? Thanks *Example:* Dim objExcel, objWorkbook,

Problem with Importing the sheet with numbers.

2018-02-02 Thread sarahmear9
Hi, Can we export and import multiple times during runtime? *Iteration 1* Enter numbers to column 1 (row 1-5) Export the excel file Take Sum of those numbers and save excel file Import the sheet *Iteration 2* Enter numbers to column 2 (row 1-5) Export the excel file Take Sum of those numbers

Windows 10 - Edge browser

2018-01-24 Thread sarahmear9
Hi I'm trying to record on Edge browser with Windows 10. I've done everything explained on the following site.(I've the agent installed, we've all the windows 10 updates...) *http://uft-help.saas.hpe.com/en/14.00/UFT_Help/Content/Addins_Guide/Edge_Extension_Setup.htm*

Multiple tabs within one browser problem

2017-12-07 Thread sarahmear9
Hi, I'm trying to open multiple tabs in a same browser. Problem I'm seeing is that it works sometimes and other times url that should open in tab 3 opens in tab 2(which means it overwrites the URL in tab 2). Sometimes same issue occurs between tab 4 and tab 5. Other times it works 100% and

How to save results Execution time, duration time, CPU, total memory to excel sheet?

2017-11-17 Thread sarahmear9
Hi, Is there a way to export/save the script results (Execution time, duration time, CPU, total memory...etc) to excel sheet. I don’t just want passed or failed status. I found the following function online that shows how to copy results, what I don’t know is where is Execution time,

Debugging does not work anymore

2017-03-29 Thread sarahmear9
Hi, I've been using QTP for few months now and I've always debugged the code without any problem. For last few days during debug the system just halts after debugging few lines, clicking F10 does not move the cursor to next line. I've waited long enough and still no action. Finally I've to

Re: ALM - Warning Status

2017-03-02 Thread sarahmear9
On Thursday, March 2, 2017 at 1:25:07 PM UTC-5, sarah...@gmail.com wrote: > > Hi, > > We have few qtp scripts that we run on several machines daily. Not all > the machine have all the software all the time. When a software is not > available on the machine we want to show a warning that

Broken links - Operation timed out

2017-01-04 Thread sarahmear9
Hi I'm trying to get all the broken links from a website. I used the following code that I got from online. I've about 153 links. For some links I get the response back and for others I'm getting "Operation timed out" error. Please help! Most the links that I'm getting this error

Re: How to get index property of a link (GetTOProperty("index") is not working

2017-01-04 Thread sarahmear9
Yes this will work, but this does not answer my question, how do I know the index of the link? Some of the links have 3 to 4 duplicates. Thanks On Tuesday, January 3, 2017 at 2:34:17 AM UTC-5, Ravikiran wrote: > Please try append with index:=0 in the link > Browser("title:=",

How to get index property of a link (GetTOProperty("index") is not working

2016-12-30 Thread sarahmear9
Hi, I'm working on a website which has duplicate link names. When I run the following code, the script fails when it reach the duplicate link.(indicating there is more than one name for this link). How can I handle this situation? I'm guessing I should use index because that's unique

How to read

2016-12-22 Thread sarahmear9
Hi, How can I read the value "newsTickerLink" using DOM? http://groups.google.com/group/MercuryQTP?hl=en --- You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group. To unsubscribe from this group and

Cannot close Windows Media Player window

2016-12-20 Thread sarahmear9
Hi I need to click few links on a webpage and then close all the pages. One of the links opens a "Windows Media Player". I used the following code to close the window but with no success. If (Window("regexpwndtitle:=Windows Media.*", "text:=Windows Media.*").Exist (5)) Then msgbox

How to pass a parameter to a function using the descriptive programming?

2016-11-08 Thread sarahmear9
Hi, I'm writing a function where I need to pass a window object as a parameter using the descriptive programming. WinObj = """regexpwndtitle:=Print"" , ""text:=Print""" msgbox WinObj 'This prints "regexpwndtitle:=Print" , "text:=Print" PrintReport(WinObj) Function PrintReport(WinObj)

Re: How to click a WebMenu icon

2016-11-08 Thread sarahmear9
thanks, this worked. On Thursday, November 3, 2016 at 7:40:02 PM UTC-4, gurma...@gmail.com wrote: > Hi, > > You said that the web menu has 2 objects-image and link and that u want to > click on the image. > > Could u try the following: > Set imgobj=Description. Create >

Browser Count

2016-10-18 Thread sarahmear9
Hi, I want to find out how many browsers are open. Why does the following code always gives one extra browser count? I have 2 browsers open but the count is always 3. How to fix this problem? Thanks Set oBrowser = Description.Create oBrowser("micclass").Value = "Browser"

How to click a WebMenu icon

2016-10-12 Thread sarahmear9
Hi Browser("abc").Page("HelloWorld").WebMenu("TabView:0:scForm:j_idt98") The webmenu has an Home icon and some text link. If we click the icon, it takes you back home and if we click on link, it displays more links on the page. Spy captures both the icon and the text link as webmenu.

Re: How to access Webtable->Webelement(Combo box) data

2016-10-12 Thread sarahmear9
Hi, I understand how it works, I used index 0 to select the combo box and then used WshShell to move down in the combobox. Set WebObj = Browser("FruitoftheDay").Page("MY PAGE -").WebTable("ABC").ChildItem(1, 1, "WebElement", 0) WebObj.click WshShell.SendKeys "{DOWN}" WshShell.SendKeys

Re: How to access Webtable->Webelement(Combo box) data

2016-10-12 Thread sarahmear9
Hi, I used msgbox to get the values and this is what I get, msgbox WebObj.GetROProperty("innertext") *When *ChildItem(1, 1, "WebElement", 0)*, it returns the field name.* When ChildItem(1, 1, "WebElement", 1), it returns the * next to the field name When ChildItem(1, 1, "WebElement", 2), this

Get Browser Text Size, Zoom Size

2016-10-06 Thread sarahmear9
Hi I want to get the browser Text Size(Medium, Large, Largest, Small) and Zoom (100%, 200%, 250%...etc) Once I've that I want to change the value to what I want it to be and when the script is done I want to set it back to what it was before. I was able to get the Zoom size from the registry.

Re: Recovery Scenaro issue

2016-09-30 Thread sarahmear9
On Friday, September 30, 2016 at 8:30:51 AM UTC-4, Vikash Mishra wrote: > > Kindly provide the snap shot shop of popup > > On Thursday, September 29, 2016 at 7:22:52 PM UTC+2, sarah...@gmail.com > wrote: >> >> Hi >> >> I have a pop-up that shows up anytime we open the browser. So I added >>

Recovery Scenaro issue

2016-09-29 Thread sarahmear9
Hi I have a pop-up that shows up anytime we open the browser. So I added the Recovery Scenario to handle this. If the browser is launched via "SystemUtil.Run", recovery scenario runs fine; however if the browser is launched by clicking on a link from of our application then recovery

Re: Show web menubar

2016-09-28 Thread sarahmear9
Tried WshShell.SendKeys "%"&"v" WshShell.SendKeys "t" WshShell.SendKeys "m" it didn't work. Just curious what does & do here? Anyhow I tried the following and it worked. Thanks. 'If (Browser("AAA").WinToolbar("ToolbarWindow32").GetROProperty("height") = 38) then ' ' Width =

Show web menubar

2016-09-27 Thread sarahmear9
Hi, I want make sure if the web menu is not visible, then display it. I've tried the following but nothing is working. After the web page is displayed. WshShell.SendKeys "%v" WshShell.SendKeys "t" WshShell.SendKeys "m" then I tried WshShell.SendKeys "%vtm" then I tried

Scroll on a webpage

2016-09-27 Thread sarahmear9
Hi, I cannot scroll down on a web page. I've tried lots of methods but nothing seems to be working. Please help. 1. WshShell.SendKeys "PGDN" (doesn't work) *2. **WshShell.SendKeys "END" (doesn't work)* 3. Browser("abc").Page("MyPage").Image("search1sm").MakeObjVisible

Re: How to find out whether the machine is 32-bit or 64-bit?

2016-09-23 Thread sarahmear9
This helped, thank a lot. On Wednesday, September 14, 2016 at 7:23:04 AM UTC-4, Ravikiran wrote: > > there is one more simple script. run below script :) > Set oShell = CreateObject("Wscript.Shell") > Set oShellExec = oShell.Exec("%comspec% /c wmic os get osarchitecture") > Set oStdOutputText

Re: Issue with CheckProperty?

2016-09-08 Thread sarahmear9
Hi, Thanks for the response. Waiting for extra 60 seconds worked. However my question is if the page is displayed why does it take UFT 60 more seconds to check the property? Thanks On Wednesday, September 7, 2016 at 11:50:35 PM UTC-4, Madhan Kumar Mohan wrote: > I would suggest to put

Re: How to get text from a webpage (Webelement)?

2016-09-07 Thread sarahmear9
Thanks, GetVisibleText worked. On Thursday, August 25, 2016 at 12:28:59 AM UTC-4, Cuong Tran wrote: > Have you try the method object.GetVisibleText? > It will show all the text inside the object that you focus to. > > example: Msgbox >

Issue with CheckProperty?

2016-09-07 Thread sarahmear9
Hi, .Page("MyPage").CheckProperty "title", micRegExpMatch("ABC.*"), 6 Why does this work sometimes and other times it doesn't? Mostly I get the following error. Property "title" has the actual value: "". The expected value was regular expression match with "ABC.*". thanks -- -- You

Re: Webelement exist but cannot click on it.

2016-09-07 Thread sarahmear9
Thanks, using a different index worked. On Thursday, September 1, 2016 at 7:23:56 AM UTC-4, Venkat Vanga wrote: > There might be a chance of having more than one web element with same html > tag and outer html value. Try with different indexes like 0, 2, 3 If you > find more than one web

Webelement exist but cannot click on it.

2016-08-24 Thread sarahmear9
if (Browser("AAA").Page("ABC").WebElement("html tag:=EMBED", "outerhtml:=http://groups.google.com/group/MercuryQTP?hl=en --- You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group. To unsubscribe from

Re: How to get text from a webpage (Webelement)?

2016-08-24 Thread sarahmear9
Hi, Thank you for the response, but this won't help me. I can only extract if I see the text I'm looking for. It's a webpage with text then a box with lines around it that has "Version Number 3.11.02.104" . I want to get the number 3.11.02.104 I get all the text from the page but this

How to get text from a webpage (Webelement)?

2016-08-23 Thread sarahmear9
Hello, I want to get version number off a WebElement. I get all the text but the text on the Webelement that has the version number.. Any help is appreciated. Here's the code I'm using. Thanks Set childobjdes = Description.Create() childobjdes("micclass").value="WebElement"

Can we use regular expression in CheckProperty method?

2016-08-10 Thread sarahmear9
I used the regular expression in this but it always fails. Browser("ABC").Page("HELLO").WebElement("The table below contains") .CheckProperty "innertext", "The table below contains the information about.*", 3000 Are we not allowed to use regular expression with CheckProperty method? Thanks

Cmd.exe prompt

2016-08-02 Thread sarahmear9
Hi, Why does WshShell.Run "cmd.exe" open the command prompt in "Program Files\HP\Unified Functional Testing\bin>" thanks -- -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group,

Silver light button not clicked

2016-07-29 Thread sarahmear9
Hi I'm using UFT 12.5, I've the WPF, Silverlight and Web add-in. UFT recognizes the objects, but when I run the application it never clicks the button. Browser("SilverlightNames").Page("SilverlightNames").SlvWindow("Page") .SlvButton("Add").Click Add button is never clicked and

Re: Java Tree issue

2016-07-25 Thread sarahmear9
Thank you for the response. Unfortunately it didn't work. This is not a typical tree like "Windows explorer". Information and Names are just text but the "George M" is one of the checkbox under "Names" I can expand the Names folder but that's all. Information is just text. Thanks On

Java Tree issue

2016-07-22 Thread sarahmear9
Hi, Dialog has 3 tabs Information is the one of the tab name Names is first heading in the tree George M is the checkbox under Names I want to change the following "#0;#0;#1" to text so it's easier to read the code. .JavaTree("JTree").Select "#0;#0;#1" ( this line works) I tried the

Re: Narrator issue

2016-06-24 Thread sarahmear9
Thank you so much for your response! I cannot record. I've UFT 12.51. I tried low level and default, I've rebooted my machine. What Add-Ons do you've? Am I missing something else? Thanks On Friday, June 24, 2016 at 5:51:38 AM UTC-4, vikash.m...@gmail.com wrote: > Hello, its recording

Narrator issue

2016-06-23 Thread sarahmear9
Hi, ControlPanel->Ease of Access->Ease of Access Center->Start Narrator I cannot record and play this, Object Spy is not showing any window name or anything? I tried ShellScript (keyboard Short Cuts), they don't work. Can someone please tell me how to proceed? Thanks in advance! -- --

GetROProperty("all items") of WinList has my item but GetItem(i) won't get it.

2016-06-10 Thread sarahmear9
Hi I'm having a very hard time understanding why this code won't find my item "abc" from the WinList. ItemsCount is correct, allmyitems have the string of "abc" in it, however when I loop through it GetItem(i) skips the "abc" and goes to next item, and repeats few items until ItemsCount is

Item in the WinList cannot be found.

2016-05-18 Thread sarahmear9
Hi Dim oleft,otop,oright,obottom Dim itemexist oleft = -1 otop = -1 oright = -1 obottom = -1 itemexist = .WinObject("WinObject").WinList("Accounts").GetTextLocation("Blank Form", oleft, otop, oright, obottom) .WinObject("WinObject").WinList("Accounts").Click oleft, otop "itemexist" always

Re: Cannot select an item in the country combobox.

2016-05-17 Thread sarahmear9
On Tuesday, May 17, 2016 at 6:09:06 AM UTC-4, Suresh Bhandari wrote: > > Check for the spelling, "Cannot identify the specified item of the > WinComboBox object" > > Error means you are typing something wrongly… > > > > *From:* mercu...@googlegroups.com [mailto: > mercu...@googlegroups.com ]

Cannot select an item in the country combobox.

2016-05-16 Thread sarahmear9
Hi, I want select a country from a combo box. Window("Main").WinObject("All Countries").WinComboBox("WinComboBox").Select( "Iran") When I run this script, the combobox opens and closes about 5 times and then never selects "Iran". I get an error "Cannot identify the specified item of the

Re: Please help - Imagebutton is not clicked, page refreshes

2016-05-11 Thread sarahmear9
On Tuesday, May 10, 2016 at 11:16:06 PM UTC-4, Ashu wrote: > > have u tried by enabling mouse relplay controls? > > On Tuesday, May 10, 2016 at 11:42:37 PM UTC+5:30, sarah...@gmail.com > wrote: >> >> Hello, >> >> If (Browser("New Graduates").Page("Administration").Image(“Accept”).Exist) >>

Please help - Imagebutton is not clicked, page refreshes

2016-05-10 Thread sarahmear9
Hello, If (Browser("New Graduates").Page("Administration").Image(“Accept”).Exist) Then Browser("New Graduates").sync Browser("New Graduates").Page("Administration").Image(“Accept”).Click Browser("New Graduates").Page("Administration").Sync Wait(20) End If During debuging the

Re: Image button is not clicked.

2016-05-09 Thread sarahmear9
On Monday, May 9, 2016 at 10:49:57 AM UTC-4, Sekha wrote: > > Add this line in between , it should work. Else do a hard stop with wait() > > Browser("New Graduates").sync > > Sent from my iPhone > > On May 9, 2016, at 10:37 AM, Ganesh muralidharan > wrote: > > Have u tried

Image button is not clicked.

2016-05-09 Thread sarahmear9
Hello, If (Browser("New Graduates").Page("Administration").Image(“Accept”).Exist) Then Browser("New Graduates").Page("Administration").Image(“Accept”).Click End If The Exist line returns true but button is not clicked. Accept is an Imagebutton, it's in the OR. thanks in advance --

Re: Set screen resolution

2016-04-29 Thread sarahmear9
I added the following to change but it's failing on WinObject Window("regexpwndtitle:=.*Screen Resolution").WinObject( "regexpwndclass:=DirectUIHWND").WinComboBox("attchedtext:=Resolution").Drag 74,14 On Friday, April 29, 2016 at 2:00:01 PM UTC-4, sarah...@gmail.com wrote: > Hi, > > I've the

Re: Need to change Screen resolution in run time

2016-04-29 Thread sarahmear9
Has this worked for anyone? Thanks On Wednesday, April 21, 2010 at 12:01:16 AM UTC-4, sh.varma wrote: > Hi, > > Set NetwrkObj = CreateObject("WScript.Network") > ShowDesktop1 = "C:\Documents and Settings\" & NetwrkObj.UserName > ShowDesktop2 = "\Application Data\Microsoft\Internet

Add-In which are associated but not loaded.

2016-04-28 Thread sarahmear9
Hi, Originally when I created the test I associated a lot of unnecessary add-ins. Later I removed them so now I only have the add-ins that I need for the application. However when I run the test, the test will pass with the warning, "The following add-in(s) were associated with your test,

For Loop never stops

2016-04-28 Thread sarahmear9
Why does this loop never stops? It sits at Next statement and does nothing. I've to kill QTP process to stop this. Rcount = .WinObject("WinObject").WinList("WinList").GetROProperty("items count") ReDim x(Rcount) For i=0 to Rcount-1 Listitem =

object error, WinList is not recognized.

2016-04-27 Thread sarahmear9
Hi, I'm trying to click a Winlist item called "Hello World". Here's the code I've. When I look the properties of both WinObject and WinList they don't anything under title, text or name. Of course when I run this next day my objects are not recognized. How can I fix this?

Re: How to open a browser?

2016-04-27 Thread sarahmear9
Hi, I used this code to open a browser, but I get an error "Incorrect parameters in navigate..". Our IE explorer has two default pages, could that be the problem, if yes then how to bypass that. Thanks On Saturday, August 22, 2009 at 12:06:32 PM UTC-4, soni wrote: > Hi Bibek, > >