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

Default state of new action

$
0
0
By default, new actions are
  • Reusable
  • Non-reusable

From what I can see in Action property, by default the "Reusable action" checkbox is checked. So, new action must be Reusable. Check attached image.

I looked for results all around web, and all seem to have different answers.

.jpg  Default action property.jpg (Size: 213.54 KB / Downloads: 2)

Coaded UI or Selinium

$
0
0
Hi ,
I wanted to learn a new tool. Can any one give me insights. Which tool between the Coaded UI/selinium has more demand in market.

Thanks!
Aditi..

how to capture properties on mouse click;

$
0
0
Hi Team,

I am unable to find a way to capture WindowID on mouse doubleclick/click on windows calculator.
By using fireevent I am able to capture properties one at a time that to only for Web based elements.
Can some one help me with Windows Calculator Application.
I want to capture Window ID on clicking on every button in calculator and store it in a file.

Thanks,
Aditi..

Stand alone scripts in qtp

$
0
0
Can anyone tell me what is Standalone scripts??? Thanks in advance.

OTA Client Cleanup Test?

$
0
0
Hi, is it possible to add or enable the cleanup test through the OTA client? I currently run one of my test sets through VBS using the OTA client and am uncertain if the cleanup test kicks off.

Would it be possible to load recovery scenarios through the OTA client as well?

UFT does not recognize objects when meta tag is used with http equiv x ua compatible

$
0
0
Hello All,

I am testing a Web application with UFT 12.01.
As my application is having alignment issues with IE11, development team is trying to over-ride the IE that is used to render the page using the following code .

Code:
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=5">
..
Note: The X-UA-Compatible meta tag allows web authors to choose what version of Internet Explorer the page should be rendered as.

After this code was deployed, UFT was unable to identify any of the objects in the web browser.

However, when I update the meta tag as below, UFT is able to identify objects in the web browser, but still the alignment issues persist .

Code:
<html>
<head>
<meta http-equiv="content-type" content="IE=5">
..

Can you please let me know what should be done to make UFT to recognize objects when <meta http-equiv="X-UA-Compatible" content="IE=5"> is used.

Note: We are using object repository. We have a customized property for every field (say : qt_id) that is configured in UFT.

Exe invoked through UFT is unable to access IIS and SQL Server service

$
0
0
Hi all,

We have a configuration wizard(.exe) which configures the prerequisites in which it access the SQL Server service and IIS.
When i am invoking this exe through UFT, it seems exe is unable to access the SQL Server service and an error is thrown "Run time error '430': Class does not support Automation or does not support expected interface"

The exe internally uses the windows script file to check that WebFolder exists or not. Even though the web folder is present in IIS, exe is throwing an error " WebFolder does not exist"

But this wizard(exe) is working fine, when i invoke the exe manually. No errors are thrown.

The command i have used is:

Code:
SystemUtil.Run "Wizard(exe) complete path","","wizard(exe) directory location ",""

I feel the problem is with the access when UFT invokes the exe but the same exe if i invoke manually it is able to access the IIS and SQL SERVER.

I have already posted the issue in HP forum but reply couldn't solve the issue.
http://h30499.www3.hp.com/t5/Unified-Fun...lse#M13864

Not able to click the save button in Save As window while downloading from SAP

$
0
0
Hi All,
I am automating the downloading data from SAP with Spreadsheet. But my script gets failed, after clicking the continue button Spreadsheet window
but not able to click the save button in the Save as window.

Code:
SAPGuiSession("Session").SAPGuiWindow("Data Browser: Table T000").SAPGuiMenubar("mbar").Select "Table Entry;List;Export;Spreadsheet..."
SAPGuiSession("Session").SAPGuiWindow("Select Spreadsheet").SAPGuiButton("Continue (Enter)").Click
Set oFsave=description.Create()
oFsave("text").value="&Save"
Window("Select Spreadsheet").Window("Save As").WinObject(oFsave).Click

Please help me.......
Thanks in advance
Kathirvel nagaraj

QTP/UFT 12.02 recording question .Page vs .SAPPortal

$
0
0
We recently upgraded to QTP/UFT 12.02 and started using the new tool.
We have an SAP program that is accessed via our SAP Portal, and when I record a script I get a script that cannot be shared with the other user of the program. And if he records a script, I cannot run it.

Here is what is recorded when I am logged in:
Code:
Browser("Task Management - Enterprise").SAPPortal("Task Management - Enterprise").Frame("isolatedWorkArea").SAPEdit("Task ID:").Set "1090840"

When the other user is logged in this is what gets recorded
Code:
wser("Task Management - Enterprise").Page("Task Management - Enterprise").Frame("isolatedWorkArea").WebEdit("Task ID:").Set "1090840"

We have the QTP/UFT set to use WEB and SAP add-ins.
I have attempted to change up and use different combinations of the add-ins to see if I could find a solution to our problem. No luck so far.

We log into the same PC (Where the QTP/UFT program is installed) and we have checked to see if there were different permissions or authorizations set, but we both seem to be setup the same way.

I did make a change so that when I started recording I was seeing the Browser().Page()... in the recording, but when I got down to a table view It stopped recording the screen.

Has anyone seen a similar issue with .Page and .SAPPortal?

I have been searching this wonderful forum, and the web, for over a week now. Any help or suggestions will be greatly appreciated.

How to validate mandatory filed (*) in web application using

$
0
0
There are 10 fields present in the application out of which 7 fields are mandatory. The Mandatory fields have (*) symbol as Web Element are present after the filed. Eg. First Name * (First Name is Web Element). Now how to validated * symbol is present after the mandatory fields.

Entering Values in Mainframes screen (X,Y co-ordinates)

$
0
0
I am working on mainframes environment.
so, i use Terminal Emulator add-in to work.

I am trying to automate a task which requires user to input in (X,Y) co-ordinates in mainframes.

To explain in detail

I am trying to run a job by changing an value in (26, 37) co-ordinates. And that value, i will parametrize and will get it from a spreadsheet and will feed it to UFT.

So each time i get that value from sheet, update in that job, submit it. Again in next iteration i get next value from sheet, update that in job, submit it.

Now, the value which requires update in each iteration is in (26, 37) co-ordinates of length 5 characters.
When i try to capture the object, it captures as whole Row, coz, whole row in that job is non-protected field. so i dont have any choice other than to update in x,y co-ordinates.

Please help me on how to update a value in x,y co-ordinates in Mainframes...
Thanks in advance!!

Webtable Checkbox in UFT

$
0
0
Hi, i am using UFT 12.50

Currently i have checkbox table with 2 columns only, first column include the checkboxes respective to its descriptions. I want UFT able to tick the checkbox if the table is changing. let say i record first checkbox in the first row with the description named as Daniel, but table changes as Daniel is now on third row.

i tried using Visual Relation Identifier, it worked but still not tick the third row. can you help me?

String Pattern

$
0
0
Hi, I need help from you guys.

Input String: abhijit abhijit
O/p String: aBhIjIt AbHiJiT

I need a script to get alternate character Capital. Big Grin

String Pattern : Alternet Character Capital

$
0
0
Hi, I need help from you guys.

Input String: abhijit abhijit
O/p String: aBhIjIt AbHiJiT

I need a script to get alternate character Capital. Big Grin

5 Save button QTP

$
0
0
I have 5 save buttons in 5 tabs. The tabs are placed one after the other. My object repository have these added as 5 save buttons with name save 1, save 2, save 3 , save 4, save 5. All are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except
Code:
First button
Index 0 html id:=btnSaveTab1 outerhtml:=<input id=""btnSaveTab1"" class=""Button"" onclick=""document.getElementById('a1').click();"" name=""btnSaveTab1"" value=""Save"" type=""button"">",

Second button
"html id:=btnSave "outerhtml:=<input id=""btnSave"" class=""Button"" onclick=""document.getElementById('a2').click();"" value=""Save"" type=""button"">",

Third button
"html id:=", outerhtml:=<input id=""btnSaveTab1"" class=""Button"" onclick=""document.getElementById('a1').click();"" name=""btnSaveTab

Fourth button
"html id:=btnSave outerhtml:=<input id=""btnSave"" class=""Button"" onclick=""document.getElementById('a2').click();"" value=""Save"" type=""button""

5th button
"html id:=", "outerhtml:=<input class=""Button"" onclick=""document.getElementById('a5').click();"" value=""Save"" type=""button"">",

Problem with large webtable

$
0
0
My need is very simple. I have a large webtable that contains the results of a search. I need to verify the contents of a particular column in each row. The table may contain anywhere from 1 to n results. I search on an indicator displayed in my webpage to tell me how many results I have then I run through a For loop from 1 to NumResults and get the cell data from the appropriate cell.

My problem is this. My results table my contain 200 results but when I call webtable(x).rowcount it will give me a count of 31 (approximately the size of what can be displayed on the page without scrolling). So when I loop from 1 to 200 everyting after 31 is undefined and it will bounce around giving me results from other rows. I've tried .refreshObject on the webtable to no avail (unless i'm using it wrong).

I've tried verifying a row then clicking the scroll down arrow before clicking on the next row object. No luck.

I've tried verfitying a row then clicking the down arrow to emulate keyboard usage but no luck here either.

My developers say the entire results table is loaded at the beginning so I shouldn't need to scroll to load the table.

My application is a SmartGWT application.

Please help!

Scheduler

$
0
0
I have a question about UFT. I currently run UFT scripts off of an excel sheet with a driver. I was wondering if there is a way to schedule (date and/or time) when each of those tests run and insert that into my excel?

Currently my driver runs the following:

testFile                                Sheet                          Execute
TestSheet.xlsx                    SampleSheetName  
TestSheet.xlsx                    BrowserLaunch         N
TestSheet.xlsx                    Database                    Y


Where each test script is listed in their own sheet in an Excel file called SampleExcelSheet.xlsx. I basically want to add a feature where I can run each test at a specific date. Perhaps add a new column called Date of execution?

QTP system related issue

$
0
0
In one machine, if we run the script, All cases are passed. If we checked the test results,It is showing as " Object is not found" then I tried to get the object properties Using ObjectSpy.I am not getting the Object details.It is showing as "Internet Explorer cannot display the webpage" in browser & page name.But the same script if i run in other machine, Script has been passed. We thought that is machine related issues. If you have an idea about what are the settings we need to do in IE or QTP, Just give me the solution.

When trying to recognize the object in QTP, each object is recognized as “WinObject:S

$
0
0
1. UFT is not recognizing objects on wizard page.
2. HTML View source code is not displaying once we hit F12 on wizard page.
3. When trying to recognize the object in QTP, each object is recognized as “WinObject:SunAwtCanvas.”
4. When we record any operation on applet swings forms nothing is getting recorded in QTP.

Get list of webedits in repository

$
0
0
Is there a way to query what objects are defined in the repository?  (I want to verify that every object in the repository exists in the page.)

Specifically, I'd like to do something like this:


Code:
Set WebEditArray = Browser("MyBrowser").Page("MyPage").getObjectList("WebEdit")

ForEach we in WebEditArray
    if not Browser("MyBrowser").Page("MyPage").WebEdit(we).Exist(1) then
        Print "Missing WebEdit " & we
    End if
Next


Is there a getObjectList(...) function?
Viewing all 1653 articles
Browse latest View live