VB Script Interview Questions
Questions Answers Views Company eMail

Write a Script for ATM in QTP

2606

Hi Friends, I am facing some issues with If,else condition,i.e. i am working on some web page for ex:gmail page.now if i want to check if username is incorrect or already exist,i want to display error message in my test report,for this i am using a simple code first,i.e. If Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "Shekhar.g"= true Then Msgbox ("Username Does not Exist!") Else msgbox ("Welcome !") End If But still i am getting a syntax error If Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "shekhar.g"= true Then Msgbox ("Username Does not Exist!") Else msgbox ("Welcome !") End If I don't feel any thing wrong in this syntax but i don't understand why it shows such error,i am confused what went wrong,please help me out & do the favor,thanks a lot....

1 2212

Hi Friends my Question is very simple,in Manual testing when we click on a hyper link it directs us to the relavent page or it re-directs us to the current page,so there we can easily write testcase but same thing if we do in automation script using QTP & need to generate report using Reporter.report event how we will do it?thanks in advance...

979




Anyone have qtp11.0 crack?

1651

does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks

1763

Diff between web table ,datatable and data base (QTP)

TCS,

2 5666

what is fire event method in qtp?

TCS,

3 15937

when we use filter funtiom invb script(QTP)

TCS,

1575




how to acces the remote mechine using vb cript(QTP)

TCS,

888

In our application qtp unable to indentify the menu items,we tried number of times to add objetcs into object repository but fail. through normal recording mode only objects going to add into repository but while running same recording script qtp showing a error like " unable to indentify the object". in repository there is no any properties and pro values for that object and also i tried with virtual object config also unable to find the object in application and in repository. Then what i have to do to identify menu objects????? can anybody hell me pls..............

Blue Star,

2 3480

how to write validation function for date in vb script

1487

regular expression that will recognize a browser as long as its name property starts with mybrowser

Banking,

1083

How to Enter Values on the Command promt using VB script

873

write a vbscript for finding the sum of the numbers from 1- 50

3 21655

In qtp, how to use XML files for framework. if the XML files are more Efficient than Excel files?

1 1222


Post New VB Script Questions






Un-Answered Questions { VB Script }

Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.

1094


I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?

118


1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.

825


what types of bugs will we find out in banking projects for automation testing?

1106


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

1444






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.

1867


1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?

2861


I need to get some data from data base and store this (retrieved) data in a excel sheet using VB script in QTP9.0 I have created connection for data base I have created as excels sheet by using Set XL=CreateObject("Excel.Application") XLworksheet.cells(1,1).value= rs.fields.item("<>") I have taken a for loop and changed the cells values (1 as i and another 1 as j) But still I am not able to get Plz kindly tell me know this . It is very urgent

1080


How to Import data from a file (file is on the desktop) to the data table

915


Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?

1353


who will create the object?

921


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

2199


Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?

2236


How to Import data from a file (file is on the desktop) to the data table

887


Does VB/Win make standalone .EXE files?

1996