QTP

EmbedScriptFromFile & RunScriptFromFile - QTP/UFT

孤者浪人 提交于 2019-11-30 18:30:59
问题 Please help me in using EmbedScriptFromFile & RunScriptFromFile for executing JS file in QTP/UFT. I'm trying to fetch N number of values using JS file, and receive the same in QTP/UFT in an array. For which, I have got to know about EmbedScriptFromFile & RunScriptFromFile in QTP/UFT help section. But when I've tried to use the sample code, I couldn't make it as expected. Please help me in this issue Java Script code I'm using: function cloneArray(arr) { var ret = []; for (var i = 0; i < arr

how to Implement Cruise Control with QTP?

自闭症网瘾萝莉.ら 提交于 2019-11-30 15:30:12
I would like to integrate QTP with Cruise Control, which I have done so far, i'm stuck at the reporting part. I would like to somehow report back to Cruise Control with the results, how can I accomplish this? Please help? I remember there was a useful series on how to integrate CCNET with various build and testing tools including QTP. This is what I bookmarked: Part 1: Continuous Integration using MSBuild, CruiseControl.NET, FxCop, NUnit, NCover + Subversion - From the software development trenches But somehow it seems to have vanished. Today I found the updated version by accident. It doesn't

How can I run a QTP test from the command line?

百般思念 提交于 2019-11-30 15:26:55
There are a few situations where I need to launch and run a QTP test from the command prompt. For example, I'd like to use Windows Task Scheduler to run QTP tests at various times throughout the night, but there is (seemingly) no flag that I can use have QTP.exe open and run a test. How can I accomplish this? It's true that with QuickTest Pro, you cannot directly run a test by calling C:\Program Files (x86)\HP\QuickTest Professional\bin\QTPro.exe "C:\Some Test\" All hope is not lost, however. There is a way to create a small VBS file that can run any arbitrary QTP test when that VBS file is

how to Implement Cruise Control with QTP?

爱⌒轻易说出口 提交于 2019-11-29 21:44:59
问题 I would like to integrate QTP with Cruise Control, which I have done so far, i'm stuck at the reporting part. I would like to somehow report back to Cruise Control with the results, how can I accomplish this? Please help? 回答1: I remember there was a useful series on how to integrate CCNET with various build and testing tools including QTP. This is what I bookmarked: Part 1: Continuous Integration using MSBuild, CruiseControl.NET, FxCop, NUnit, NCover + Subversion - From the software

How To Stop Wscript Exe

主宰稳场 提交于 2019-11-29 18:04:28
I want to shutdown QTP which is invoked through Wscript.exe. Ankita I used these three commands and it works perfectly fine. TASKKILL /F /FI "USERNAME eq Ankita" /IM wscript.exe" TASKKILL /F /im QTAutomationAgent.exe TASKKILL /F /im QTPro.exe Nagu You cannot create multiple instances of QuickTest Application on a single machine. Even though you say CreateObject("QuickTest.Application") 10 times, all will be holding same instance of the application. Closing the quickTest using API method described above is the absolute solution. taskkill.exe /IM qtp.exe Maciej Zaleski Killing a process without

How do you write your QTP Tests?

为君一笑 提交于 2019-11-29 09:44:33
问题 I am experimenting with using QTP for some webapp ui automation testing and I was wondering how people usually write their QTP tests. Do you use the object map, descriptive programming, a combination or some other way all together? Any little code example would be appreciated, Thank you 回答1: Here's my suggestion. 1) Build your test automation requirements matrix. You can use samples from my blog http://automation-beyond.com/2009/06/06/qa-test-automation-requirements-usability/ http:/

How to call a function (with parameters) which is in function library, taking the function name from a variable?

风流意气都作罢 提交于 2019-11-29 07:19:50
I'm trying to use getref to call a function from the function library associated with the test. My code - In action1 str = "sample" msg = "hi" x = GetRef("Function_"&str)(msg) msgbox x In the function Library, Function Function_sample(strMsg) Function_sample = strMsg End Function I'm getting the error - "Invalid procedure call or argument." But it works fine if the function is placed in the same action. How to call a function (with parameters) which is in function library, taking the function name from a variable? Ekkehard.Horner Minimalistic working example: Lib.vbs: Option Explicit Function

How getObject Function internally works?

北城余情 提交于 2019-11-29 04:53:19
I'm Automating Inventor 2013 using UFT as follows:- Set oApp = GetObject(,"Inventor.Application") Set oDoc = oApp.ActiveDocument Here I'm using GetObject() function to get reference of running Inventor Application. but I have a questions about GetObject() function that 1)How it find out any application is present or in running state? 2)How it access header class of particular application so we will access of all methods and properties of that application's class? can anybody explain this? GetObject and CreateObject are part of COM automation provided by VBScript. VBScript can't use all the COM

Can I use a language other than VBScript to programmatically execute QTP Tests?

大兔子大兔子 提交于 2019-11-28 18:56:47
I have VBScript code which launches QuickTest Professional, executes a series of QTP tests, and emails the results. This works well, but I would prefer to use a language with better tools support (a good IDE for example). I am currently calling .Net libraries from the launch script, so I was wondering if it was possible to use a language like C# to accomplish the same task. If so, are there any good resources which address this? I could find very little on this topic via Google and there do not seem to be any other questions on SO about this topic. For clarity, I have included the code for the

Natural Sorting using VB script

夙愿已清 提交于 2019-11-28 11:50:40
I want to sort below items using natural sorting: "Z1","Z3","Z2","Z20","Z10" After sorting, I am expecting the order below: "Z1","Z2","Z3","Z10","Z20" When I tried using array list, Set oAlist=CreateObject("System.Collections.ArrayList") oAlist.sort I am getting a sorting result based on ASCII: Z1,Z10,Z2,Z20,Z3 Please help me on how to do this natural sorting using vb script Ekkehard.Horner For theory see here (follow the links!). Practical demo recordset: Option Explicit Const adInteger = 3 ' 00000003 Const adVarChar = 200 ' 000000C8 Dim sInp : sInp = "Z1,Z3,Z2,Z20,Z10" Dim aInp : aInp =