ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
Hi,

   I am new to QTP and vb.script.How to start to write
vb.script in QTP? Please give me suggestions?
 Question Submitted By :: Nagamanyam
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Hi, I am new to QTP and vb.script.How to start to write vb.script in QTP? Please give me suggestions?
Answer
# 1
for example: calculator(table as form1) boxes in editbox as 
the value1 and value2 and result,buttons as the 
add,sub,mul,divide ,clear this in application vbscript 
given bellow

vbwindow("form1").Vbedit("value1").set "10"
vbwindow("form1").vbedit("value2").set "20"
vbwindow("form1").vbbutton("add").click
vbwindow("form1").vbbutton("sub").click
vbwindow("form1").vbbutton("mul").click
vbwindow("form1").vbbutton("divide").click
 
Is This Answer Correct ?    2 Yes 1 No
Kondalu
 
  Re: Hi, I am new to QTP and vb.script.How to start to write vb.script in QTP? Please give me suggestions?
Answer
# 2
Hi dear it is very easy to write vb scripting.
First of all we have to understand what the actions to be
performed by us on the application.
Actions means entering a value or clicking a button or
selecting a value from a list dropdown list or selecting or
deselecting a check box.
example for a edit box
Browser("browsername").Page("pagename").Webedit("username").set"satyanarayana"
like the above for buttons    .click
for list boxes                .select"satyanarayana"
for radio buttons             .set
for check boxes               .set"on/off"
 
Is This Answer Correct ?    2 Yes 0 No
Satyanarayana
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
CAN SOME ONE TELL ME ABOUT QTP FRAMEWORK? I AM SUPPOSED TO GIVE THE QTP FRAMEWORK THIS WEEK SO PLEASE HELP  2
what is throw object ?  1
when i perametarization of the test through outputcheckpoint,i have seen run time error i.e outputcheckpoint mismatch .Plz tell anybody to me(qtp).How to clear that?  1
what is active screen,keyboard view? BirlaSoft2
I have a Webedit object. some text is entered in that object I want to know the font sixe of that text.How could I do this using QTP? This is a requirement for me. I am happy if any one help on this GE3
How to use QTP for Regration testing, plz tell as with short Example of login window? plz tell as....  2
How can we close all webbrowsers which are opened in out desctop?  4
What is the use of Accessibility check point?  2
Can anyone tell me what is the equivalant method to be used in QTP for "web_obj_get_text" used in winrunner. My winrunner code is below. set_window("Confirm Add Subscriber"); rc = web_obj_get_text("Add subscriber:","#8","#1",orderID,"The order number is","\.",1); basically I need to retrieved the "orderID " from a string present in 8th row & 1st col of table "Add subscriber"  1
in how many ways we can write the user defined functions one way i know that i.e storing it in .vbs another way i does not know my friend said that .qtf or something but start with q letter can any buddy knows about this DigiTech3
WHICH PROCESS U FOLLOW IN COMPANY IGT1
VM1 = "Invalid username or password. Please try again. " VM2 = "Email id is required.Password is required. " VM3 = "Email id is an invalid e-mail address.Password is required. " VM4 = "Password is required. " VM5 = "Email id is required. " VM6 = "Email id is an invalid e-mail address. " 'Rowcount of the Local sheet Rowcount = DataTable.GetSheet("Invalid login transactions").GetRowCount 'Valid emailid and Password Emailid = "test@iteamic.com" Password = "Password0" 'For i = 1 to Rowcount 'Parameterised Email_id Browser("Browser").Page ("Page").WebEdit("emailAddress").Set DataTable("Email_id", dtLocalSheet) EID = Browser("Browser").Page ("Page").WebEdit("emailAddress").GetRoProperty("value") 'Parameterised Password Browser("Browser").Page ("Page").WebEdit("password").Set DataTable("Password", dtLocalSheet) PWD = Browser("Browser").Page ("Page").WebEdit("password").GetROProperty("Value") If EID = Emailid And PWD = Password Then Reporter.ReportEvent micPass, "EID & PWD check", "Email id and Password is correct, One iteration of Invalid login attempts is not being executed" Else Browser("Browser").Page("Page").WebButton ("Sign-In").Click 'Output value exported to the local sheet Browser("Browser").Page ("Page_2").Output CheckPoint("Home page_Sign in") 'Storing the output value in a variable(OUTPUT OUTPUT = Datatable.GetSheet ("Invalid login transactions").Getparameter ("Validation_message_signin").value 'comparing the Variable Output and the Validation message for a given input If OUTPUT = VM1 Then Reporter.ReportEvent micPass, "VM1", "Invalid username or password. Please try again. " else if OUTPUT = VM2 Then Reporter.ReportEvent micPass, "VM2", "Email id is required.Password is required. " else if OUTPUT = VM3 Then Reporter.ReportEvent micPass, "VM3", "Email id is an invalid e-mail address.Password is required. " else if OUTPUT = VM4 Then Reporter.ReportEvent micPass, "VM4", "Password is required. " else if OUTPUT = VM5 Then Reporter.ReportEvent micPass, "VM5", "Email id is required. " else if OUTPUT = VM6 Then Reporter.ReportEvent micPass, "VM6", "Email id is an invalid e-mail address. " else Reporter.ReportEvent micFail, "EID & PWD check_FAIL", "Validation message checkpoint failed. The captured v msg is not required" End if End if I am getting syntax error saying "Expected 'End If'" at the last line, Why is this? Kindly explain...  1
If you use low level recording,what objects will be recorded in Object Repository and what properties? CTS3
what is database check point, how will you parameterize the database from seperate data table? JPMorgan-Chase2
How can we write script for a .net application in QTP? Can we use VB Script for .net application.  1
what is the use of VIRTUAL OBJECTS? explain ? TCS10
Can we create test script with out Step Generator?  4
what is key word driven frame work how to use keyword driven frame in QTP in a project AppLabs1
how to capture data from images in QTP and produce them in excel sheet?  2
How can i check all the button that are enabled in a widnows based application ? What script should i write for this ?  1
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com