QTP

Access objects inside a WPF grid

你。 提交于 2019-12-12 02:59:16
问题 Application - .Net desktop Tool - UFT 12.5 UFT is able to identify WPF grid but not any object like checbox, textbox present in cells. How to get reference for such objects to perform any operation on them?? 回答1: You have not mentioned the type of application you are automating. Please use the 'Insight' feature in UFT if the operations to perform inside the grid is simple. 来源: https://stackoverflow.com/questions/35178671/access-objects-inside-a-wpf-grid

VBS file doesn't run through cmd prompt

大兔子大兔子 提交于 2019-12-12 01:12:14
问题 Dim sTestCaseFolder, strScriptPath, sQTPResultsPath, sQTPResultsPathOrig sBatchSheetPath = "D:\Project\Driver Script\Batch.xls" sTestCaseFolder = "D:\Project\" sQTPResultsPathOrig = "D:\Project\Result\" '========== Create an object to access QTP's objects, methods and properties ========== Set qtpApp = CreateObject("QuickTest.Application") 'Open QTP if it is already not open If qtpApp.launched <> True Then qtpApp.Launch End If qtpApp.Visible = True '========== Set the run options for QTP ====

How to store run-results from QTP to word file?

亡梦爱人 提交于 2019-12-11 23:01:32
问题 After I run my scripts in UFT, I want to store results in a word document that will have the same name as my tests or be relevant to test, so I can easily differentiate which result belong to which test. Can anyone help me with that? Here is the code: Dim oWord Set oWord = CreateObject("Word.Application") oWord.Documents.Add oWord.ActiveDocument.Saveas "C:\Users\Desktop\RunResults\TestForWordDocResults2" Dim oWordTestPath oWordTestPath = "C:\Users\Desktop\AutomationScripts

Unable to Set/Select Date on JavaObject through UFT/QTP

本小妞迷上赌 提交于 2019-12-11 17:19:45
问题 I am trying to set date on a Java Application. below is the image The part in red is as : JavaDialog("tagname:=DialogM").JavaList("index:=2") The part in Green is as : JavaDialog("tagname:=DialogM").JavaObject("tagname:=JCalendarField\$DayList", "Index:=0") I've tried rather vainfully to set date here. I tried using "select", "click" with 1 and 2 and it didn't work. Also tried use SendKeys method (Just in case) didn't work either. I'm out of ideas on what i would do to achieve this.

QTP descriptive programming issue

最后都变了- 提交于 2019-12-11 13:52:22
问题 Browser("MWAY").Page("MWAY_2").Frame("Frame").WebTable("programleveltable").highlight n1=Browser("MWAY").Page("MWAY_2").Frame("Frame").WebTable("programleveltable").GetROProperty("name") n2=Browser("MWAY").Page("MWAY_2").Frame("Frame").WebTable("programleveltable").GetROProperty("html id") n3=Browser("MWAY").Page("MWAY_2").Frame("Frame").WebTable("programleveltable").GetROProperty("html tag") msgbox "value"& vbCrLf & n1 & vbCrLf & n2 & vbCrLf & n3 Browser("MWAY").Page("MWAY_2").Frame("Frame")

CDate function using different locales

孤者浪人 提交于 2019-12-11 13:11:59
问题 I am using QTP (therefore VBScript) and I seem to have a problem with the CDate function. When my colleague in Malaysia is using it there is not a problem. When I use it here in Spain I have the following error. Now all I am asking is if there are any known issues with this function or any other related ones like FormatDateTime between different locales. Anybody knows this? Thanks in advance. 回答1: The error specifies the problem. todateObject.GetROProperty("value") contains a value that CDate

Script fails when the computer is locked (QTP 11.0) .Is there any workaround?

て烟熏妆下的殇ゞ 提交于 2019-12-11 12:38:50
问题 I use QTP 11.0. When i run a script and in between if computer gets locked, the script fails.Is there any workaround? Thanks in advance... 回答1: You must unlock the computer. QTP/UFT requires an "interactive" desktop session to do much of the automation, and the Windows OS behaves differently when it is locked. A good way around this issue is to use Virtual Machines for your automation lab that always remain unlocked. Access security is then maintained by the host machine or the client

VBScript (QTP) - fixed width file - check contents

帅比萌擦擦* 提交于 2019-12-11 12:36:07
问题 If I had a fixed width file (.txt) with specs (which characters form which field) such as: 1-10 id_no 11-25 seq 26-30 cur_code 31-40 first 41-90 cur_desc 91-120 misa Example 3 lines in the file: 7284585 98354u38654 347 USD jfsnkjndf;kjsdgn;jndfsjngjdsngnkjdsfngkjsdnfgjnfhUnited States Dollar 728458598354u38654 347 USD jfsnkjndf;kjsdgn;jndfsjngjdsngnkjdsfngkjsdnfgjn Euro 7284585 98354u38654347 GBP jfsnkjndf;kjsdgn;jndfsjngjdsngnkjdsfngkjsdnfgjn Pound What vbscript code would I have to write

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified : Wierd issue

只愿长相守 提交于 2019-12-11 11:51:36
问题 I am working on one .vbs file in which I am connecting to DB using below lines of code and than running some queries. Set cm = CreateObject("ADODB.Command") cm.ActiveConnection = "Driver={Microsoft ODBC for Oracle};Server ="+sInst+"; UID="+sUID+";PWD="+sPWD cm.CommandType = 1 cm.CommandText = sSQL cm.Execute() Set cm = Nothing Strange thing for me is when I am copying these lines to QTP and run it from QTP, it's working fine. But when running .vbs file (by double clicking and from cmd), it is

Test if a SOAP WSDL is up or down in vb script?

好久不见. 提交于 2019-12-11 10:33:39
问题 I am trying to Verify if the WSDL is UP and Running or NOT in VB Script. IF we open the WSDL in browser, if we get an XML in that then the WSDL is UP and Running If it is blank/timing out/not responding then WSDL is DOWN I want to write a VB Script program for this? I was expecting some thing like this in VB Script to run in QTP/UFT or EXCEL VBA MACRO. This program is written in Java public static void main(String args[]) { String wsdl = "http://lxomavnat005.dev.qintra.com:10301/icl/services