Quantcast
Channel: Micro Focus QTP (UFT) Forums - All Forums
Viewing all 1793 articles
Browse latest View live

Edit Recovery Scenario

$
0
0
Hello,
I am using UFT 11.51. Trouble with recovery scenario. How do I edit the scenario's code and make the change take effect? I have edited the scenario (.qfl file) outside of UFT. I removed the scenario from the list, added it back in, closed and opened my script and still do not see my change. What do I need to do to see the change (at this point I'm simply putting in a msgbox)? Also, is there a way to open and edit the scenario in UFT? If so, how do I do that?
Thank you

sort two dimensional array.

$
0
0
Hello guys ..


Can any one provide syntax..how to sort two dimensional array which contain numeric values..

EG:

Dim Myarr(2,2)

Myarr(0,0) = 0
Myarr(0,1) = 6
Myarr(0,2) = 5
Myarr(1,0) = 1
Myarr(1,1) = 4
Myarr(1,2) = 3
Myarr(2,0) = 2
Myarr(2,1) = 8
Myarr(2,2) = 7

Text field with red cross when running script

$
0
0
Hi everyone,

I am having an issue when populating the text fields while running my script from QTP. One of the input field will show a "RED" cross instead of data and then the UI will generate an exception.

Application: winform -> devexpress


Could someone help me with this issue?


Thanks

Very confused on how to deal with run errors

$
0
0
I'm new to QTP and trying to muddle through some vbs test scripts that I inherited from my predecessor. Most of them stopped running since I took over and I'm not understanding why run errors are occurring. I have UFT 11.53, set my browser to 100%, I'm admin on my computer, IE9 with compatibility mode off, and all other requirements are met per the application's requirements.

I hope someone can point me in the right direction for my questions below. I can't find these answers anywhere, and I'm very frustrated.

These are questions on what to do when a test fails with a run error. Most of the errors are Object not found errors which I have trouble fixing. I have a basic understanding on how to use the software. I completed the included GUI tutorial, but of course they did not make it difficult by throwing in situations where errors would occur and how to fix them :/


1. How can I "Update from application" when I'm in debug mode? I think this would be the best way to fix what needs to be fixed and to send me on my way. If it can't be done in debug mode, then how?


2. Is it possible to completely empty and populate a repository when UFT identifies object errors?
a. What's the easiest way to identify the offending repository that is causing the error?
b. Is there any side effects I should be aware of if I do rebuild a repository? For example, what if other scripts use the same repository? Is there a chance they will break now that I made changes to it?

3. On the above, UFT is in read-only mode during a test. So how can I do the above if it won't let me!?

Lastly, when I use the object spy after I get the object not found, the object spy matches what I already have in many cases? Let's say a radio button or a submit button. When I try to use the object spy suggestion in maintenance mode, the message tells me it matches what I already have. So no solution there either. How can it match but yet be wrong??

I know these are a lot of questions. I would be forever grateful if someone can take the time to enlighten me on these questions which are really holding me back from making UFT a useful tool.

Object doesn't support this property or method: 'webedit'

$
0
0
Hi,
Im getting the below error when im trying to enter a text in Email id text field.Can any one please help me.Im a beginner to QTP.

Object doesn't support this property or method: 'webedit'

Code:
Line (11): ".webedit("name:=login","htmltag=INPUT").Set("xxx")".

Object doesn't support this property or method: 'webedit'

$
0
0
Hi,
Im getting the below error when im trying to enter a text in Email id text field.Can any one please help me.Im a beginner to QTP.

Object doesn't support this property or method: 'webedit'

Code:
Line (11): ".webedit("name:=login","htmltag=INPUT").Set("xxx")".

Cannot find the "[ WebEdit ]" object's parent "[ Browser ]" (class Browser). Verify t

$
0
0
Hi,
Im getting the following error on the below code when im trying to login to yahoo account.My problem is some times its executing well,but sometimes it throws the following erroe.Can anyone plz help me.


Code:
With browser("title:=Sign in.*")
    With .page("title:=Sign in.*")
         .WebEdit("name:=login").Set "xxx"
         .WebEdit("name:=password").Set "Divya3169"

End With
end with
Error:
Cannot find the "[ WebEdit ]" object's parent "[ Browser ]" (class Browser). Verify that parent properties match an object currently displayed in your application.
Code:
Line (22): ".WebEdit("name:=login").Set "xxx"".

Import multiple values from excel into QTP

$
0
0
Hi All,

I am new to QTP and I am stuck with usage of datatables in QTP. Can you please help.

Requirement:

An excel sheet contains one customer and multiple ISBN. I need to pull customer and ISBN data from excel and need to place order. Here can you please let me know how can i do it in QTP. I tried data table but it didnot work for more than 1 ISBN.

Table in Excel:

Customer ISBN
Anil 9878998876 ## ISBN 1 in one cell
8976567777 ## ISBN 2 in another cell

doubt on webedit

$
0
0
hi,
Am unable to read text from webedit which is storing password.

kindly help me

error with msdn's description of overwrite value of CreateTextFile ??

$
0
0
Hi,

I see that on MSDN http://msdn.microsoft.com/en-us/library/aa265018(v=vs.60).aspx for CreateTextFile Method
It is written that The overwrite Property is False by Default,

overwrite: (Optional) Boolean value that indicates whether you can overwrite an existing file. The value is True if the file
can be overwritten, False if it can't be overwritten. If omitted, existing files are not overwritten (default False).


The Property by default should be True, I tried it without specifying anything and the text file is getting replaced. Please Verify at your end and let me know what is correct??

Automation of PDF Forms with Adobe Reader

$
0
0
I am facing some issues with the automation of Pdf forms. the issue is the Adobe reader hangs while setting values to objects( Mostly on List Object). QTP is able to identify the Objects and execute the scripts but Reader hangs at random object while setting the value.
I have below setUp.
QTP -11
APTT AcroQTP Addin - 10.1.2.45
Adobe Reader - 10.1.4

Code:
PDFDoc("xx").AcroXFAForm("xx").AcroXFAForm("xx").AcroXFAListBox("Obj1").Select
If PDFDoc("xx").AcroXFAFormx("xx").AcroXFAForm("xx").AcroXFAListBox("Obj1").Exist(3) Then
    PDFDoc("xx").AcroXFAForm("xx").AcroXFAForm("xx").AcroXFAListBox("Obj1").Setvalue "ajayW"
End If

Note: -I can't use any more older version of Adobe Reader

Please guide me to resolve this issue.

How to check PDF document by using QTP

$
0
0
I want to check PDF file is correctly download in our application or not.
What is code for this

How to mask the particular read only mode fields while capturing screenshot in QTP

$
0
0
How to mask the particular read only mode fields while capturing screenshot in QTP

E.g : The webpage is contains Name, Mobile no and etc.(fields are in read only mode) in the UI screen.
If I use 'CaptureBitmap' functionality in code, It will capture the screenshot of UI screen as it is.
But here I want to mask the Name & Mobile no details in the captured screenshots.

Do we have any workaround for this?

QTP 11 - GetVisibleText not getting text correctly in windows7 from Activex

$
0
0
Hi,

We used getvisibletext to get the actual text displayed in Activex object in application. We could not use GetROProperty as we do not have any other property that has the required text.
Script gets the required text when run on Windows XP correctly.
But, when executed on Windows 7, it returns part of text in lower case and also it returns some junk value.
I know GetVisibleText is dependent on OS.
But still, if there is any workaround or any other way to get the text from application, please let me know.

Application displays the below text
"800849 NOLE,MANDI DOB 01/01/1995 (19Y) sex F ABO/Rh A POS RC Units Transf 10 LastTransf 12/15/1994 HID HID1"
But GetVisibleText on windows 7 is getting the below text
"800849 NOLE,MANDI dob 01/01/1995 (19Y) sex f ABO/Rh A POS RC Units Transf 10 ^##`@ LastTransf 12/15/1994 HID HID1"

In Windows 7 UAC is disabled.

If there is any workaround, please let me know.

Thanks and Regards,
Pallavi

automate browser which do not have address bar

$
0
0
Hi
I was trying to automate browser which is opened by a link. This browser has no address bar. I was not able to access any of the elements through QTP.

Please help me...

Passing objects to Functions

$
0
0
I am trying to pass objects to functions and check if that particular object exists or not and depending on that functions would return true/false.
But the eval used here does not seems to work doing its job.
Object that i pass is of image type and it still goes inside if conditions after eval... any help plz

Code:
'In script file
'========
if WebApp_Exists( objHndM.Page("H&M IPS - Interior Production").Frame("navFrame"),"ButtonNew") then
objHndM.Page("H&M IPS - Interior Production").Frame("navFrame").Image("ButtonNew").Click
logPassFail err,"ButtonNew"
end if


'In the library file
'=============
Function WebApp_Exists(byref objEst,byval objName)

msgbox objEst.Image("ButtonNew").exist
    Dim CTRL_TYPES
        CTRL_TYPES = Array( "WebEdit" _
                  , "WebCheckBox" _
                  , "Image" _
                  , "WebButton" _
                  , "WinButton" _
                  , "WebElement" _
                  , "Link" _
                  , "WebRadioButton" _
                   , "WebRadioGroup" _
                  , "WebList" _
                   , "WebTable" _
                  )
        Dim iCount
  
   checkExistStatus = False

for iCount = 0 to Ubound( CTRL_TYPES)
             Dim ctrlType
             ctrlType = CTRL_TYPES(iCount)
             On Error Resume Next
             Err.Clear
   'ctrlType = "WebEdit"
  ' Set ExistStatus  = eval("objEst."& ctrlType&"(objName)")
    Set ExistStatus  = eval("objEst."&ctrlType&"(objName)")
      If  ExistStatus.Exist(0) Then
          checkExistStatus = True
          Exit Function
          else
          checkExistStatus = False
        End If
      Next

End Function

Unable to automate web page which do not have address bar

$
0
0
Hi All

I was trying to automate web page which do not have address bar(it is opened from a link in a web page which has address bar). But I was unable to access any of the elements in the page.

Please help me....

Need Help Understanding Parameters

$
0
0
Hi all,
I'm learning QTP and have a hard time understanding Parameters.Can you guys please explain to me what is that and what we can use them for?
Thank you

Can QTP automate VC++ application?

$
0
0
Hi Guys,
I've client server application that is developed in VC++. Can someone tell me if i can automate it with uft 11.5? I did some research and found that QTP 9.5 and 10.0 can't automate it but i'm wondering if we can automate it with later versions of QTP. Your input will be greatly appreciated.

Thanks in Advance
Arpan

Upgrade from QTP 9.5

$
0
0
Hi Fellow members,

I'm working in an Automation project using QTP 9.5 version. Can any of you please guide me as how i can upgrade to a higher version of QTP?
The project that i'm working on uses concurrent license.
Can i use the same license to upgrade to a higher version without having to spend anymore?
It might be greedy - but, is there an option to upgrade to UFT 11.5 with the same license?

Thanks,

Mathesh R
Viewing all 1793 articles
Browse latest View live