VB Script Interview Questions
Questions Answers Views Company eMail

HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.

1996

how to add action through AOM in QTP

3031

i need to sort the data using qtp script for this how i need to write a qtp script

3144

Why to add checkpoint in QTP What's the purpose of checkpoints & how to add it

2 5586

How to map test cases with Automation script? Please explain in details.With example Thanks for your co-operation(In Advance)

Google, IBM,

1 6265

I want to count the total no of links present in yahoo home page. The script like Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo!India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing But while running the script it is fail (the object not present in the object repository).How to overcome please tell me the detail steps...for QTP9.30

1 3766

Hi this is Vinoth. I need a help on below mentioned question A combobox contains list of items assume as 5 I have to get each items Individually and I have to Export to datatable. Please help me on this. Thanks

1628

what is the object hyrarchy in QTP for a web based application

1804

How to add actions in driver script to run those actions in QTP?

1444

i have to open a notepad having no. of words in dat file by recording in qtp and then find a particular word and display true or false

1637

while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans

IBM,

1486

how to display all the links in one page using vb script in qtp.

DST Global Solutions,

1 8518

Hi Friends, I have an issue like the describe below: I'm using QTP and I'm testing on SharePoint. As you knoe, SharePoint has a customize function for user, so that, If I add an object Web Table at the first time, that object was recognized by "index" and "html tag", after that, if someone change the display of web part, the "Index" of my object was changed as well and QTP unable to select that Web Table. Can you guide me how to identify or anyway to keep that Web Table object as unique object? Thanks a lot.

CSC,

2506

Could Anybody tell me the Script for REVERSE an Interger int reverse(int num) Ex:246 to 642.. Thanks in Advance.

Amazon,

3 4240

Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..

Amazon,

1951


Post New VB Script Questions

Un-Answered Questions { VB Script }

What is the purpose of on error resume next statement?

498


What is the use of the date function in the vbscript language?

501


Mention the environments where vbscript could be run?

580


Explain the tristate constants in vbscript?

499


Hi, Can anyone please send me vb script examples to practice vb and also material to learn vb scripting in QTP? my email id : hareen_11@yahoo.com

1762






How to open a file. What is the perpose of true and false mode there?

540


i have a problem with this error(this error related edit and delete button,when i click this button in datagrid..i will get this error)"Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation." this is my code : <%@ Page Language="VB" Debug="false" %> <%@ import Namespace="Sytem.Data" %> <%@ import Namespace="System.Data.OleDB" %>

(Search Based On Staff I.C No) IC.No (XXXXXX-XX-XXXX)   ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> ' runat="server"> Total Leave Taken : Days

2290


Does VB/Win make standalone .EXE files?

2833


Which function is used in the vbscript language to convert the specified expression into a date type value?

458


Explain the extension .hta?

474


How do you declare a variable in vbscript?

553


Explain vbscript in detail?

551


i wrote vbscripit code in notepad i got error i am in learning stage if u ps tell me what wrong in my code my error is "object required descriptive at line one run time error"and my code is "set usernameobj=Descriptive.Create() usernameobj( "name").value="Username" set passwordobj=Descriptive.Create() passwordobj("name").value="password" set signinobj=Descriptive.Create() signinobj("name").value="sigin" browser("gmail").page("gmail").WebEdit("usernameobj").set ("enter username") Browser("gmail").Page("gmail").WebEdit("passwordobj").Set secure.Crypt.Encrypt("enter password") browser("gmail").page("gmail").WebButton("siginobj").click

1351


Mention what is the main difference between function and sub-procedure?

489


How will you convert a given number to long in vbscript?

442