VB Script Interview Questions
Questions Answers Views Company eMail

Write a Script for ATM in QTP

2645

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 2254

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...

1023




Anyone have qtp11.0 crack?

1687

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

1805

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

TCS,

2 5821

what is fire event method in qtp?

TCS,

3 16177

when we use filter funtiom invb script(QTP)

TCS,

1606




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

TCS,

922

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 3549

how to write validation function for date in vb script

1525

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

Banking,

1113

How to Enter Values on the Command promt using VB script

910

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

3 22134

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

1 1270


Post New VB Script Questions






Un-Answered Questions { VB Script }

How to write VB script for login module?

1975


Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?

1861


Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)

2503


why variable name should not exceed 255 characters?

1048


i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me

1123






create a form to accept username and password validate the username and password with using message box, display the corresponding user message

1464


can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.

1184


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..

1366


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

1744


how to set one column as primary key in QTP and fetch values accordingly

1213


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

2276


how to increase the values in text box in a given text box increament by two values by clicking on button

1014


what is the difference between modular and data and keyword driven framework

1071


how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me

10850


how to write validation function for date in vb script

1525