Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [vbscript]

VBScript (Visual Basic Scripting Edition) is an Active Scripting language developed by Microsoft that is modeled on Visual Basic. It is designed as a "lightweight" language with a fast interpreter for use in a wide variety of Microsoft environments.

0
votes
1answer
72 views

Code to automate a web form in SilkTest tool using VB/.NET Language? [closed]

I am new to Silk test and dont know VB or .NET coding. Please provide a sample code to automate a website/form in VB or .NET?
1
vote
0answers
17 views

Verify isempty for user defined datatype in VBS

In UFT, my code return nothing (In watch it'll show as empty - user defined datatype) And I am trying to validate returned value isempty or isnull But it's ignore the statements and going further. ...
0
votes
0answers
50 views

Is it possible to get the properties of a cell of javatables

I am following the below code and it's not working JavaWindow("Window").JavaTable("Generic Table (Single)").ChildItem(1,2, "JavaEdit",0).getROProperty("background") I want to check what all ...
2
votes
1answer
92 views

How to change the settings and add-ons in IE using VBScript?(without registry)

I am trying to update the IE settings like (Security level, popups, Zoom ... ) and also wanted to enable addons in "Manage addons". I wanted to updated those settings using VBscript/JavaScript with ...
1
vote
1answer
647 views

How to identify & choose unique properties for objects identification in QTP/UFT?

When I write test script (Descriptive programming) in QTP/UFT, I find difficult to figure out & choose unique properties for objects identification, now here I want to know that is there any way ...
3
votes
1answer
68 views

Compilation error on variable declaration in QTP

I just started to learn QTP 11.00 In one program I am getting one compilation error on this line on QTP tool Dim plus = 10 Here I am unable to understand this what is wrong with this line please ...
0
votes
2answers
1k views

Problems to execute a UFT script by a VBScript file

I'm facing a problem when I try to execute a UFT script using a VBScript file to call it. The code inside the .vbs file is below: dim uft Set uft = CreateObject("QuickTest.Application") uft.Visible =...
3
votes
1answer
152 views

If condition passes, but the code is not executed

I'm facing a problem with my GUI test. I want to check if a certain screen of an application is loaded or not; for this I'm using a bitmap checkpoint and a test area checkpoint. I'm using both because ...
0
votes
1answer
3k views

UFT 12.52 / VBScript - Test object exist, is visible and enabled before take an action

I'm automating tests using UFT 12.52 for an application. I captured the objects for a repository and then started to create a sequence of actions on the objects. However, there is a frequent problem....
1
vote
1answer
371 views

How to check property of JavaToolbar button with UFT/QTP?

There is a toolbar in the java application with buttons: ..., security, tools, login, logout. UFT object spy can reach down to a certain button, but in script (descriptive programming) UFT can only ...
0
votes
1answer
702 views

How to convert exponential number to normal number in qtp?

Getting some exponential value in qtp/uft while performing multiplication with huge numbers. But I want the exact decimal value of it. E.g.: I am getting something like 15525.22352000e25 I need ...
0
votes
2answers
374 views

How to Limit the number of decimals with out Rounding off in VBS/UFT

I want to limit the number of digits after decimal point, I am trying "FormatNumber" function but it's rounding the last number. Is there any other way to "FormatNumber" with out rounding off e.g: ...
0
votes
2answers
893 views

How to re run the test failed in batch runner programatically?

I have a certian number of scripts that i run in a batch runner. I want that if a test fails, it should run again once. i want to programatically re run the test incase it fails or enters a recovery ...
4
votes
0answers
75 views

how to add an existing script to uft using AOM/vbScript? [closed]

So I have a script which connects to QC and opens a test in UFT and runs it. The problem with this is that the open command closes the previously opened tests. I want to copy the file -> add -> ...
0
votes
1answer
568 views

UFT shows “The operation cannot be performed” message when setting cell data in checkbox in Java Table

UFT shows "The operation cannot be performed" message when setting cell data in Java Table: JavaWindow("Name1").JavaDialog("Name2").JavaTable("Name3").SetCellData 8, 0, 1
0
votes
1answer
28 views

I'm a beginner need guidance which software needs to be learnt to be an expert in vba automation

I'm a finance person want to automate things what we do in Excel and Outloook. Guide me, what language I need to learn to be a VBA expert. Br Uday
0
votes
1answer
1k views

How to get color of java table row/cell with QTP/UFT (java swing application)?

I need to test that the color of java table row has changed to some specific value. But till now I see no solutions of getting this property. Let's assume that jTableObj is OR or DP representation of ...
6
votes
3answers
2k views

How to limit test execution time in UFT/QTP?

I came across some situations (twice in one day, and I see they will not be rare) when test can run infinite time. Like there is a wait realisation for some account operation but there is an error ...
1
vote
1answer
433 views

Why JavaObject can not be addressed with descriptive programming in UFT 12.52

I am trying to address JavaObject (JPanel) by means of descriptive programming (DP) JavaWindow("label:=some label").JavaDialog("title:=some title").JavaObject([descriptor]) I checked existence of ...
0
votes
1answer
528 views

QTP is not firing recovery scenario

There is a good QTP recovery scenario called "Any error": But still QTP is not firing recovery scenario in several cases (as I've found here): Script Errors Object Not in Object Repository (OR) ...
1
vote
1answer
266 views

In QTP 12.51, how to identify dynamical element generated using ajax/jquery form

In my Datatable three rows are present. After clicking on Add button new row is generated and I need to put input values from datatable. Problem: How to identify field of each row dynamically for ...
2
votes
1answer
1k views

How to select tab buttons in java tab panel with QTP/UFT?

I want to switch between tabs in Java application using QTP 11.0. The problem is that tab buttons are not seen by qtp object spy as separate objects, the whole tab pane is seen as JTabbedPane: Any ...