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

qtp vbscript issue

$
0
0
Hi, I need to create random number for txtlatitude column using vbscript and it should be automatically generated the random values for that column.
Please help, here is my QTP code

Code:
Browser("Untitled Page").Page("Untitled Page").WebEdit("txtuser_id").Set "1"
Browser("Untitled Page").Page("Untitled Page").WebEdit("txtdatetime").Set "05:12"
Browser("Untitled Page").Page("Untitled Page").WebEdit("txtlatitude").Set "212.25463"
Browser("Untitled Page").Page("Untitled Page").WebEdit("txtlongitude").Set "45.32546"
Browser("Untitled Page").Page("Untitled Page").WebButton("Save").Click
Browser("Untitled Page").Page("Untitled Page_2").Sync
Browser("Untitled Page").Close

UFT is not finding object in runtime but able to locate the object from repository

$
0
0
I have installed UFT11.5 with patch 0044.But the problem is UFT is not finding object in run time but able to locate the object from repository.
I was trying to run the existing scripts developed by UFT on windows 7 and QTP11

UFT 11.53 - Not recording Page checkpoint

$
0
0
Hi,

I have installed UFT version 11.53 (Build 0382) and I have IE 9/IE8. When I record the pages, it is not automatically adding/recording Page Checkpoint for all pages even after creating a checkpoint for each Web page before recording in "Tools > Options > GUI Testing tab > Web > Advanced node."

But in QTP 11 (with IE9) , it is working fine.

Does anyone face this issue in UFT 11.53 (IE9/IE8)? Kindly Help.

Note: I do not want to record Page Checkpoint using Standard Checkpoint for each page.

Regards
Ela

Getting Junk value in Combobox.

$
0
0
Issue: I'm facing an issue regarding WinComboBox.

Heirarchy :
Window -> WinComboBox
Class Name:=Window -> Class name:=WinComboBox (after using Object Spy) , getting the junk(i.e. Special charecters, e.g. : "text:=䌈ៈẀ眾") .
Why i'm getting those junk values and how can i get the proper values?

Aim : To compare the values from the combobox and to the user defined value.

Regards,
Pratik

Flex+Air object identification issue using UFT 11.5

$
0
0
I have a Flex+Air application and have all the necesary swc file compilation done during code deployment. QTP 11 is recognizing all the object.

Today I tried identifying the flex objects using UFT 11.5 on the same application, but UFT 11.5 is not identifying the objects.

Is there anything else that needs to be compiled with the application code for UFT 11.5 to work?

WebElement (only Weblist) is not getting identified in QTP 11, Windows 7

$
0
0
Hi,

In our project with QTP 11 and Windows 11...Weblist is getting identified as Webelement.

Other objects like Checkbox, Radiobutton are getting identified as Webelement. None of the Webelement object is getting identified in recording mode.

But am able to capture the Webelements other than Weblist using Functions.
The code to select a value from the Weblist is getting executed, but the value is not getting selected.

This is very urgent, please help me.

Object properties are not visible

$
0
0
my application is developed by .net and wpf, when we try to identify the object by using the object spy we are not able to see the properties of that object of combobox

How to Download QTP trail Version

$
0
0
Hi Team,

Could you please provide me the link to download QTP trail version.

Thanks & Regards,
Srinivas

QTP 11 - CreateFolder fails to create folder in shared network drive from Windows 7

$
0
0
Hi,

QTP script contains the below code

Code:
Set oFso = CreateObject("Scripting.FileSystemObject")
oFso.CreateFolder("w:/A72A")

w:/ is mapped to the shared folder on network .

CreateFolder method fails to create folder in Shared network drive when we execute this script on Windows 7 system.

Note: UAC in Windows 7 system is disabled and I have administrator permissions.

Could you please let me know what could be causing this issue.

Thanks and Regards,
Pallavi

Selecting file saved in a location

$
0
0
Hi,
I am working on a desktop application.

Suppose i want to open a file in paint which is in "D" drive in a folder. If i try to record, it records in co-ordinates and on execution it make problem.
[Window("Paint").WinObject("NetUIHWND").Click 43,45
Window("Paint").Window("Window").WinObject("NetUIHWND").Click 65,81
Window("Paint").Dialog("Open").WinTreeView("SysTreeView32").Select "Desktop;Computer"
Window("Paint").Dialog("Open").WinObject("DirectUIHWND").Click 348,63
Window("Paint").Dialog("Open").WinObject("DirectUIHWND").Click 348,63
Window("Paint").Dialog("Open").WinObject("DirectUIHWND").Click 119,167
Window("Paint").Dialog("Open").WinObject("DirectUIHWND").Click 119,167
Window("Paint").Dialog("Open").WinObject("DirectUIHWND").Click 302,220
Window("Paint").Dialog("Open").WinObject("DirectUIHWND").Click 302,220
Window("Paint").Close
]

If i try to create descriptive code it identifies as winobject when i go to open folder. I want to write vb code not recording method

Please help

QTP 9.0 supports WPF based .NET desktop application.

$
0
0
I have an application which is developed in WPF, C#, MYSQL (Database). I have QTP 9.0.

Application will be lanuching either thru QTP tool or without using tool.
When we clicked Run option in QTP, automaticaly application is closing.
Unable record also.
Question:
1. Will QTP 9.0 supports WPF based .NET desktop application.?
2. Which QTP version supports WPF based .NET desktop application.?

Open QTP using Driver Script

$
0
0
Hello,

1. I save the below code in notepade and saved it as Driver.vbs.

Code:
Dim qtpApp
set qtpApp=CreateObject ("QuickTest.Application")
qtpApp.Launch
qtpApp.Visible=True

2. I double clicked the Driver.vbs file. QTP does not open.

Any idea?

-S

I have the QTP installed in the C drive.
I have Driver.vbs file in H drive.

Note sure whether this is an issue. I can not save any file in C drive.

HP UFT 11.53 Patch 1 is Released!

$
0
0
HP has released a new patch for UFT 11.53 i.e. UFT 11.53 Patch 1 or UFT SP3P1 which fixes installation problem of UFT_00058 (released earlier Now removed). This service pack should be used when working with UFT 11.53.

You can download it here

How to disable automatic chrome updates for chrome 30, WIn7

$
0
0
Hi Frnds,

I had issue with chrome auto updates, UFT 11.5 supports chrome 30,
But when i install chrome 30, it is updating automatically to version 33.
Please help me if any one aware of this issue.

appreciate your help.

Regards,
Maruthiyadav

silverlight charts compatibility with UFT 11.50

$
0
0
Can we automate test these silverlight objects using uft 11.50?
• Hover text
• Tool tip of chart
• Mouse position in chart coordinates
• Color series
• Font style, font size and font color

Iteration in Local sheets for UFT11.5

$
0
0
Hi Team,

I have script with Global sheet(no rows) and 1 local sheet (5 rows) and set the test to run at all rows but I can't specify the local sheet to run to all rows. the execution of the script is running the first row on the local sheet only.

1. Anyone have any idea how can I set the local sheet to run to all rows using UFT11.5x without writing a code ?

2. Also there is no Split action option in UFT 11.5x. any Idea if this feature still exists?

Thanks,

qtp 11 not supporting activex addin

$
0
0
1. i am using qtp 11 trial version. At the time of starting ACTIVEX add in is checked but object spy does not recognize its components.

2. on silverlight application ie8 crashes

please help

Excel and Driver Script

$
0
0
Hi,

I have driver script that opens two qtp files: Test1 and Test2.

1. Test1:
Code:
Set ExcelApp = CreateObject("Excel.Application")
ExcelApp.Visible = True

Dim FilePath
FilePath = "W:\T.xlsx"

Set ExcFile = ExcelApp.Workbooks.Open (FilePath)
Set SheetOne = ExcFile.Worksheets("QTP")

ExcelApp.Cells(12, 8).Value = "first"

2. Test2:
Code:
ExcelApp.Cells(13, 8).Value = "second"

When I run the driver script, it opens Test1 and enter "first" in cell(12,8) during Test1 run but it does not enter "second" in cell(13,8) during Test2 run.

Both tests must enter data into the "QTP" sheet of the same excel file.

Please help.

-S

Why I need more then one End If ?

$
0
0
Hello experts, I am new to IT and trying to learn to script but unable to understand why I need EndIf four times in below script at the end for it to work. I have been writing other ElseIf statements and used EndIf only once at end of script and they worked fine but this one is requiring it 4 times. ??

Quote:Dim State, Region
State=Inputbox ("Enter a State")
Region=Inputbox ("Enter a Region")

If state= "AP" Then
If Region= "Telangana" Then
msgbox "Hello Reddy"
msgbox "Dist count is 10"

Else if Region= "Rayalasema" Then
msgbox "Hello GCR"
msgbox "Dist count is 4"

Else If Region= "Costal" Then
msgbox "Hello mohan"
msgbox "Dist count is 9"

End If
End If
End If
End If

Generate graphs from excel using QTP

$
0
0
Hi,
I want to generate graphs from an existing excel sheet using QTP.
Can anybody provide me the details on this.
Thanks.
Viewing all 1793 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>