Questions tagged [uft-api]

UFT (Unified Functional Testing) is a testing tool that supports UI and API tests. This tag is for UFT's API tests.

46 questions
1
vote
1 answer

HP UFT screenshot image and compare

I have a client that would like to run an automated test in an environment that captures full page screenshots of data on a web app and use those baseline images to compare against the same screens of a web app called from a VM for a subsequent test…
user5199
  • 359
  • 2
  • 15
1
vote
0 answers

UFT 14.03 - Calling Web Service with data from XML only runs the first record. How come?

I am a newbie to UFT and I am following the examples in the UFT 14.03 tutorial to call web services (https://admhelp.microfocus.com/uft/en/14.03/UFT_Tutorial.pdf) The tutorial has the web service data being populated from an Excel file. I took the…
Burak
  • 19
  • 4
1
vote
1 answer

Replacing portion of a URL in HPE UFT / VBscript

So I am trying to get a script to work that will obtain the current URL of the open tab, replace a portion of the URL, and enter in/navigate to the new URL which has the replaced text. I'm struggling with the replace function as well as how to…
1
vote
0 answers

Error while Executing Update query to update Access DB table using UFT

I am trying to execute an update query in UFT that connects to Access DB, but an error "Operation must use an updateable query" is thrown. Need solution. code used: Dim fld Dim newConn Dim newCommand set newConn =…
1
vote
1 answer

How to import wsdl dynamically thru custome code in UFT-API

I'm new to UFT-API and working on a project. This is the scenario, i have a data table that in excel format which have three (3) columns, WSDL, SOAP_REQUEST and CHECKPOINTS. I will be looping in this excel data, each loop, i need to import new wdsl,…
ibulseco
  • 47
  • 4
1
vote
1 answer

How to check a transaction is successful or not, when executing UFT API Test in Load Runner

I am using UFT 12.02 to create UFT API tests, the same tests i am using in Load Runner to check the transaction response time. The challenge i am facing is to check for success and failure during execution. In Load runner we can easily check the…
Asad A
  • 11
  • 1
1
vote
1 answer

How to click Chrome plugins like "Download" and "Print" button in qtp

I was trying to download a pdf report and the download button was "chromes download plugin button" which i am not able to click using qtp script. The properties shown for all three buttons "Print","Download" and "Rotate" are same: "html…
1
vote
4 answers

Disable checkpoints at runtime on HP UFT API

I am testing a webservice and need to disable a few checkpoints at runtime. Those checkpoints won't be mandatory for certain arrays, and the test would fail with them. Is there any possibility of using custom code, or an existing UFT feature, to do…
Ricky
  • 73
  • 1
  • 12
1
vote
1 answer

UFT API testing - Read request from a file during runtime

I am doing web service testing by importing the WSDL using UFT API testing. I am placing request content in text mode and running the test and it returned a successful response. How can I read an xml file and send as a request during run time using…
Abhi
  • 11
  • 2
1
vote
0 answers

UFT API equivalent for QTP "ExitAction" and/or "ExitIteration"

I really wish HP's API ServiceTest was more friendly. Sorry to keep asking these kinds of questions. I'm in an activity and want to exit out of it without break the logic up into 2 pieces of code so that I can do an "if/else" to get it out of there.…
Jan D
  • 51
  • 3
1
vote
1 answer

Adding Rows to a Local DataSource for API Testing

I want to use my Local Data Table as a dynamic source that I can add an unknown set of rows into. Is that doable? The goal is to just attach it as a driver to the loop that needed to load data from an excel sheet that contains a subset of our…
Jan D
  • 51
  • 3
0
votes
0 answers

how can i get first text[1] inside a complex DIV using UFT?

this is the xpath of global DIV: /html/body/div/div/div[1]/div Pic of that DIV: enter image description here his html :

How to log in:

E-Mail:
Arwa Hm
  • 3
  • 2
0
votes
0 answers

Why I am not able to save notepad in UFT?

Set objFSO=CreateObject("Scripting.FileSystemObject") Set objTFile=objFSO.CreateTextFile("C:\test\Test.txt") SystemUtil.Run "C:\test\Test.txt" Window("Notepad").Activate Window("Notepad").Type micCtrlDwn + "v" + micCtrlUp wait…
0
votes
1 answer

Unable to click on radio buttons while executing script-UFT tool

I am unable to click on radio button while executing script by using UFT/QTP tool. Below is my code: Browser("Welcome!").Page("Welcome!_9").WebList("pickupOnePauId").Select "Aisha…
Anuradha
  • 1
  • 1
0
votes
1 answer

code execution does not stop on the break point

I am doing the API Automation in UFT 12.54. In the event code section, I have some lines of code, but while debugging, execution does not stop on the breakpoint. Does any one have solution to this?
Sidharth
  • 27
  • 7