hp-uft

How to save workbook and handle TITUS (or any other document classification add-in) popup?

六月ゝ 毕业季﹏ 提交于 2019-12-06 11:46:17
问题 I'm creating a script in HP UFT 12 which performs grid data validation against a CSV file and saves the results in a Excel file with two worksheets. I'm using Excel for this because it is much more clear for the user, as it allows cell formatting, is easier to compare the data and so forth. My code works in my machine, but my client has TITUS document classification add-in installed, so every time they run my script, it hangs because of the TITUS pop-up message that asks user to classify the

How do you simulate a keyboard enter event in UFT

↘锁芯ラ 提交于 2019-12-06 10:41:39
问题 I have a web application that I am testing with HP's UFT software. Within my application, there is a text field with an onkeydown attribute. When a key is pressed within the text field, a function is called which triggers different actions depending on what key was pressed. I am interested in the enter key. When the enter key is pressed, rows are created within the form. How can I simulate the enter key being pressed within the field? I have tried field1.Set Chr(13) field1.FireEvent

UFT-API: How to write the output of a select data action to the test's data source

孤街浪徒 提交于 2019-12-06 09:16:48
In a uft-api test I have a select data component that returns the query results. The results comeback in an array and I'm trying to figure out how to write the results back to the test's data pane, either excel or local table. Ike Aragon You can use GetDataSource Class of UFT API , it will work like this lets say you imported excel from FlightSampleData.xls, and named it as FlightSampleData, you have <input> sheet, accessing the sheet will be like below: GetDataSource("FlightSampleData!input).Set(ROW,ColumnName,yourValue); GetDataSource("FlightSampleData!input).Get(ROW,ColumnName); I recommend

Search and Replace a number of characters in Excel using VBscript

偶尔善良 提交于 2019-12-06 00:12:46
I need to search and to replace a specific part of a string in an Excel sheet. Here is my code and I don't know how I can exactly search this part in each Cell.value . my_new_string = "abc" For each objSheet1 in objworkbook2.sheets If objSheet1.Name = "Name1" Then LastRow = objsheet1.UsedRange.Rows.Count + objsheet1.UsedRange.Row - 1 For i = 1 To LastRow Step 1 For j = 1 To 15 Step 1 If objExcel1.Cells(i, j).value = "xyz" Then 'Here I have to check if the Cell value contains xyz and to replace it by **my_new_string** End if Next Next End If Next Any help please ? sourh Thank you all, this is

RPA Vs Traditional Automation Tools

China☆狼群 提交于 2019-12-05 08:07:42
问题 I am Test Automation engineer and recently got opportunity to explore RPA tool blueprism. After exploring I found it similar to UI automation tools supporting various technologies. Can anyone tell me what value RPA adds compare to traditional tools. I was interested to see how it can use 'intelligence' but couldn't find any feature. Can expert in this forum help me understand what RPA can do which traditional tool can not do ? I see similar questions but they do not give any answers I am

Launching UFT ( QTP ) Tests remotely through a batch file.

我的未来我决定 提交于 2019-12-05 01:50:00
问题 I have created a bunch of UFT 12 (ex QTP) tests and I have also created a batch file in order to run theses tests. When I run the batch file in local the tests are running fine. Here is the script I use : Set qtpApp = CreateObject("QuickTest.Application") Set fsObj = CreateObject("Scripting.FileSystemObject") Set qtpResObj = CreateObject ("QuickTest.RunResultsOptions") qtpApp.Launch qtpApp.Visible= true sfolderPath = "C:\QA\ManagerForOracleDB" Set mainFolderObj = fsObj.GetFolder (sfolderPath)

How does QTP wait till the page loads dynamic data?

半世苍凉 提交于 2019-12-05 00:17:34
问题 I have a scenario where the browzer status =done but still the page is not loaded. Is there a common procedure where the qtp can wait till the page is fully loaded? I tried with objBrowzer.sync,objPage.Sync,objPage.waitproperty "readyState","completed",50. But it does not work always. I cannot even but a wait statement so that it waits till that object appears.because in different cases different objects are present. Is there any common statement that would work in all scenarios? Thanks in

RPA Vs Traditional Automation Tools

拟墨画扇 提交于 2019-12-04 21:12:54
I am Test Automation engineer and recently got opportunity to explore RPA tool blueprism. After exploring I found it similar to UI automation tools supporting various technologies. Can anyone tell me what value RPA adds compare to traditional tools. I was interested to see how it can use 'intelligence' but couldn't find any feature. Can expert in this forum help me understand what RPA can do which traditional tool can not do ? I see similar questions but they do not give any answers I am looking for. Thanks, Nilesh The technological challenges of RPA and automation tools are quite similar. RPA

UFT11.50 - Service Test - How can I obtain the data from the response body

走远了吗. 提交于 2019-12-04 20:19:30
{ "Id": 456, "Type": null, "Name": "Store112", "Root": "\\\\server\\ShareFolder", "Username": "alm", "Password": null } This is a JSON file response body from a HTTP Request, how can I get the value of 'ID' property? Does UFT or QTP has a function to support this? In order to use a specific JSON property from the response you should do the following. Select the HTTP tab in the properties pane In the Response Body section select JSON from the drop down list Load a sample of the expected JSON response Then in the activity you want to use the value, click the link icon for the input parameter,

How to save workbook and handle TITUS (or any other document classification add-in) popup?

随声附和 提交于 2019-12-04 15:01:25
I'm creating a script in HP UFT 12 which performs grid data validation against a CSV file and saves the results in a Excel file with two worksheets. I'm using Excel for this because it is much more clear for the user, as it allows cell formatting, is easier to compare the data and so forth. My code works in my machine, but my client has TITUS document classification add-in installed, so every time they run my script, it hangs because of the TITUS pop-up message that asks user to classify the document upon saving. The message is not displayed to the user, probably because of objExcel