Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

4/20/2015

QTPinterviewquestionsandanswers|TechInterviews
SearchTechInterviews

TechInterviews

Search

Prepareforjobinterviewswiththequestionsandanswersaskedbyhightechemployers
.NET

C++

Database

General

Hardware

Java

Networking

Puzzles

SAPABAP

Testing

Unix/Linux

VB

Webdev

Windows

Testing>>QTPinterviewquestionsandanswers

QTPinterviewquestionsandanswers
Byadmin|October19,2006

1. WhataretheFeatures&BenefitsofQuickTestPro(QTP8.0)?Operatesstand
alone,orintegratedintoMercuryBusinessProcessTestingandMercuryQualityCenter.
IntroducesnextgenerationzeroconfigurationKeywordDriventestingtechnologyinQuick
TestProfessional8.0allowingforfasttestcreation,easiermaintenance,andmorepowerful
datadrivingcapability.IdentifiesobjectswithUniqueSmartObjectRecognition,evenifthey
changefrombuildtobuild,enablingreliableunattendedscriptexecution.Collapsestest
documentationandtestcreationtoasinglestepwithAutodocumentationtechnology.Enables
thoroughvalidationofapplicationsthroughafullcomplementofcheckpoints.
2. HowtohandletheexceptionsusingrecoveryscenariomanagerinQTP?Thereare
4triggereventsduringwhicharecoveryscenarioshouldbeactivated.Apopupwindow
appearsinanopenedapplicationduringthetestrun:Apropertyofanobjectchangesitsstate
orvalue,Astepinthetestdoesnotrunsuccessfully,Anopenapplicationfailsduringthetest
run,Thesetriggersareconsideredasexceptions.YoucaninstructQTPtorecoverunexpected
eventsorerrorsthatoccurredinyourtestingenvironmentduringtestrun.Recoveryscenario
managerprovidesawizardthatguidesyouthroughthedefiningrecoveryscenario.Recovery
scenariohasthreesteps:1.TriggeredEvents2.Recoverysteps3.PostRecoveryTestRun
3. WhatistheuseofTextoutputvalueinQTP?Outputvaluesenabletoviewthevalues
thattheapplicationtalksduringruntime.Whenparameterized,thevalueschangeforeach
iteration.Thusbycreatingoutputvalues,wecancapturethevaluesthattheapplicationtakes
foreachrunandoutputthemtothedatatable.
4. HowtousetheObjectspyinQTP8.0version?TherearetwowaystoSpytheobjectsin
QTP:1)Thrufiletoolbar,IntheFileToolbarclickonthelasttoolbarbutton(aniconshowinga
personwithhat).2)TrueObjectrepositoryDialog,InObjectrepositorydialogclickonthe
buttonobjectspy.IntheObjectspyDialogclickonthebuttonshowinghandsymbol.The
pointernowchangesintoahandsymbolandwehavetopointouttheobjecttospythestateof
theobjectifatalltheobjectisnotvisible.orwindowisminimizedthen,holdtheCtrlbutton
andactivatetherequiredwindowtoandreleasetheCtrlbutton.
5. HowDoesRuntimedata(Parameterization)ishandledinQTP?Youcanthenenter
testdataintotheDataTable,anintegratedspreadsheetwiththefullfunctionalityofExcel,to
manipulatedatasetsandcreatemultipletestiterations,withoutprogramming,toexpandtest
casecoverage.Datacanbetypedinorimportedfromdatabases,spreadsheets,ortextfiles.
6. WhatiskeywordviewandExpertviewinQTP?QuickTestsKeywordDriven
approach,testautomationexpertshavefullaccesstotheunderlyingtestandobjectproperties,
viaanintegratedscriptinganddebuggingenvironmentthatisroundtripsynchronizedwith
theKeywordView.AdvancedtesterscanviewandedittheirtestsintheExpertView,which
revealstheunderlyingindustrystandardVBScriptthatQuickTestProfessionalautomatically
generates.AnychangesmadeintheExpertViewareautomaticallysynchronizedwiththe
KeywordView.
7. ExplainabouttheTestFusionReportofQTP?Onceatesterhasrunatest,aTest
Fusionreportdisplaysallaspectsofthetestrun:ahighlevelresultsoverview,anexpandable
TreeViewofthetestspecifyingexactlywhereapplicationfailuresoccurred,thetestdataused,
applicationscreenshotsforeverystepthathighlightanydiscrepancies,anddetailed

JobInterviewQuestionArticles
C#InterviewQuestionsandAnswers
QTPInterviewQuestionsandAnswers
C++InterviewQuestionsandAnswers
PHPInterviewQuestionsandAnswers
XMLInterviewQuestionsandAnswers
JavaScriptInterviewQuestionsandAnswers
Asp.NetInterviewQuestionsandAnswers
J2EEInterviewQuestionsandAnswers
ABAPInterviewQuestionsandAnswers
PerlInterviewQuestionsandAnswers
JavaInterviewQuestionsandAnswers

Resources
TechnologyQuestionandAnswerWebsite
Howtodancearoundthesalaryexpectationquestion
10mistakesmanagersmakeduringjobinterviews
Stupidinterviewquestions
HowtoAnswerTheseTrickyInterviewQuestions
SeventipsforwritinganonlineprofileforLinkedIn,
MySpaceorFacebook

Tutorials
AJAXTutorials
Dealingwithyourjob
Gettingajob
JavaScripttutorials
JobinterviewtipsfromYahoo!HotJobs
MySQLtutorials
Retiringfromyourjob
RubyonRailstutorials
SalaryguideforITjobs
Selfemployment
TechInterviewsguidesinPDF
Understandingpointers
XMLTutorials
XULtutorials

RSSFeeds
Allposts
Allcomments

explanationsofeachcheckpointpassandfailure.BycombiningTestFusionreportswithQuick
TestProfessional,youcansharereportsacrossanentireQAanddevelopmentteam.
8. WhichenvironmentsdoesQTPsupport?QuickTestProfessionalsupportsfunctional
testingofallenterpriseenvironments,includingWindows,Web,..NET,Java/J2EE,SAP,
Siebel,Oracle,PeopleSoft,VisualBasic,ActiveX,mainframeterminalemulators,andWeb
services.
9. WhatisQTP?QuickTestisagraphicalinterfacerecordplaybackautomationtool.Itisable
toworkwithanyweb,javaorwindowsclientapplication.QuickTestenablesyoutotest
standardwebobjectsandActiveXcontrols.Inadditiontotheseenvironments,QuickTest
ProfessionalalsoenablesyoutotestJavaappletsandapplicationsandmultimediaobjectson
ApplicationsaswellasstandardWindowsapplications,VisualBasic6applicationsand.NET
frameworkapplications
10. ExplainQTPTestingprocess?QuickTesttestingprocessconsistsof6mainphases:
11. CreateyourtestplanPriortoautomatingthereshouldbeadetaileddescriptionofthetest
includingtheexactstepstofollow,datatobeinput,andallitemstobeverifiedbythetest.The
verificationinformationshouldincludebothdatavalidationsandexistenceorstate
verificationsofobjectsintheapplication.
12. RecordingasessiononyourapplicationAsyounavigatethroughyourapplication,
QuickTestgraphicallydisplayseachstepyouperformintheformofacollapsibleiconbased

http://www.techinterviews.com/qtpinterviewquestionsandanswers

1/9

4/20/2015

QTPinterviewquestionsandanswers|TechInterviews

testtree.Astepisanyuseractionthatcausesormakesachangeinyoursite,suchasclickinga
linkorimage,orenteringdatainaform.
13. EnhancingyourtestInsertingcheckpointsintoyourtestletsyousearchforaspecificvalue
ofapage,objectortextstring,whichhelpsyouidentifywhetherornotyourapplicationis
functioningcorrectly.NOTE:Checkpointscanbeaddedtoatestasyourecorditorafterthe
factviatheActiveScreen.Itismucheasierandfastertoaddthecheckpointsduringthe
recordingprocess.Broadeningthescopeofyourtestbyreplacingfixedvalueswithparameters
letsyoucheckhowyourapplicationperformsthesameoperationswithmultiplesetsofdata.
Addinglogicandconditionalstatementstoyourtestenablesyoutoaddsophisticatedchecksto
yourtest.
14. DebuggingyourtestIfchangesweremadetothescript,youneedtodebugittocheckthat
itoperatessmoothlyandwithoutinterruption.
15. RunningyourtestonanewversionofyourapplicationYourunatesttocheckthe
behaviorofyourapplication.Whilerunning,QuickTestconnectstoyourapplicationand
performseachstepinyourtest.
16. AnalyzingthetestresultsYouexaminethetestresultstopinpointdefectsinyour
application.
17. ReportingdefectsAsyouencounterfailuresintheapplicationwhenanalyzingtestresults,
youwillcreatedefectreportsinDefectReportingTool.
18. ExplaintheQTPToolinterface.Itcontainsthefollowingkeyelements:Titlebar,
displayingthenameofthecurrentlyopentest,Menubar,displayingmenusofQuickTest
commands,Filetoolbar,containingbuttonstoassistyouinmanagingtests,Testtoolbar,
containingbuttonsusedwhilecreatingandmaintainingtests,Debugtoolbar,containing
buttonsusedwhiledebuggingtests.Note:TheDebugtoolbarisnotdisplayedwhenyouopen
QuickTestforthefirsttime.YoucandisplaytheDebugtoolbarbychoosingViewToolbars
Debug.Actiontoolbar,containingbuttonsandalistofactions,enablingyoutoviewthedetails
ofanindividualactionortheentiretestflow.Note:TheActiontoolbarisnotdisplayedwhen
youopenQuickTestforthefirsttime.YoucandisplaytheActiontoolbarbychoosingView
ToolbarsAction.Ifyouinsertareusableorexternalactioninatest,theActiontoolbaris
displayedautomatically.Testpane,containingtwotabstoviewyourtesttheTreeViewandthe
ExpertView,TestDetailspane,containingtheActiveScreen.DataTable,containingtwotabs,
GlobalandAction,toassistyouinparameterizingyourtest.DebugViewerpane,containing
threetabstoassistyouindebuggingyourtestWatchExpressions,Variables,andCommand.
(TheDebugViewerpanecanbeopenedonlywhenatestrunpausesatabreakpoint.)Status
bar,displayingthestatusofthetest
19. HowdoesQTPrecognizeObjectsinAUT?QuickTeststoresthedefinitionsfor
applicationobjectsinafilecalledtheObjectRepository.Asyourecordyourtest,QuickTestwill
addanentryforeachitemyouinteractwith.EachObjectRepositoryentrywillbeidentifiedby
alogicalname(determinedautomaticallybyQuickTest),andwillcontainasetofproperties
(type,name,etc)thatuniquelyidentifyeachobject.EachlineintheQuickTestscriptwill
containareferencetotheobjectthatyouinteractedwith,acalltotheappropriatemethod(set,
click,check)andanyparametersforthatmethod(suchasthevalueforacalltotheset
method).Thereferencestoobjectsinthescriptwillallbeidentifiedbythelogicalname,rather
thananyphysical,descriptiveproperties.
20. WhatarethetypesofObjectRepositoriesinQTP?QuickTesthastwotypesofobject
repositoriesforstoringobjectinformation:sharedobjectrepositoriesandactionobject
repositories.Youcanchoosewhichtypeofobjectrepositoryyouwanttouseasthedefaulttype
fornewtests,andyoucanchangethedefaultasnecessaryforeachnewtest.Theobject
repositoryperactionmodeisthedefaultsetting.Inthismode,QuickTestautomatically
createsanobjectrepositoryfileforeachactioninyourtestsothatyoucancreateandruntests
withoutcreating,choosing,ormodifyingobjectrepositoryfiles.However,ifyoudomodify
valuesinanactionobjectrepository,yourchangesdonothaveanyeffectonotheractions.
Therefore,ifthesametestobjectexistsinmorethanoneactionandyoumodifyanobject
spropertyvaluesinoneaction,youmayneedtomakethesamechangeineveryaction
(andanytest)containingtheobject.
21. ExplainthecheckpointsinQTP?Acheckpointverifiesthatexpectedinformationis
displayedinanApplicationwhilethetestisrunning.Youcanaddeighttypesofcheckpointsto
yourtestforstandardwebobjectsusingQTP.Apagecheckpointchecksthecharacteristicsofan
Application.Atextcheckpointchecksthatatextstringisdisplayedintheappropriateplaceon
anApplication.Anobjectcheckpoint(Standard)checksthevaluesofanobjectonan
Application.AnimagecheckpointchecksthevaluesofanimageonanApplication.Atable
checkpointchecksinformationwithinatableonaApplication.AnAccessibilityycheckpoint
checksthewebpageforSection508compliance.AnXMLcheckpointchecksthecontentsof
individualXMLdatafilesorXMLdocumentsthatarepartofyourWebapplication.Adatabase
checkpointchecksthecontentsofdatabasesaccessedbyyourwebsite
22. InhowmanywayswecanaddcheckpointstoanapplicationusingQTP?Wecan
addcheckpointswhilerecordingtheapplicationorwecanaddafterrecordingiscompleted
usingActivescreen(Note:ToperformthesecondoneTheActivescreenmustbeenabled
whilerecording).
23. HowdoesQTPidentifyobjectsintheapplication?QTPidentifiestheobjectinthe
applicationbyLogicalNameandClass.
24. WhatisParameterizingTests?Whenyoutestyourapplication,youmaywanttocheck
howitperformsthesameoperationswithmultiplesetsofdata.Forexample,supposeyouwant
tocheckhowyourapplicationrespondstotenseparatesetsofdata.Youcouldrecordten
separatetests,eachwithitsownsetofdata.Alternatively,youcancreateaparameterizedtest
thatrunstentimes:eachtimethetestruns,itusesadifferentsetofdata.
25. WhatistestobjectmodelinQTP?Thetestobjectmodelisalargesetofobjecttypesor

http://www.techinterviews.com/qtpinterviewquestionsandanswers

2/9

4/20/2015

QTPinterviewquestionsandanswers|TechInterviews

classesthatQuickTestusestorepresenttheobjectsinyourapplication.Eachtestobjectclass
hasalistofpropertiesthatcanuniquelyidentifyobjectsofthatclassandasetofrelevant
methodsthatQuickTestcanrecordforit.AtestobjectisanobjectthatQuickTestcreatesin
thetestorcomponenttorepresenttheactualobjectinyourapplication.QuickTeststores
informationabouttheobjectthatwillhelpitidentifyandchecktheobjectduringtherun
session.
26. WhatisObjectSpyinQTP?UsingtheObjectSpy,youcanviewthepropertiesofany
objectinanopenapplication.YouusetheObjectSpypointertopointtoanobject.TheObject
Spydisplaystheselectedobjectshierarchytreeanditspropertiesandvaluesinthe
PropertiestaboftheObjectSpydialogbox.
27. WhatistheDiffbetweenImagecheckpointandBitmapCheckpoint?Image
checkpointsenableyoutocheckthepropertiesofaWebimage.YoucancheckanareaofaWeb
pageorapplicationasabitmap.Whilecreatingatestorcomponent,youspecifytheareayou
wanttocheckbyselectinganobject.Youcancheckanentireobjectoranyareawithinan
object.QuickTestcapturesthespecifiedobjectasabitmap,andinsertsacheckpointinthetest
orcomponent.Youcanalsochoosetosaveonlytheselectedareaoftheobjectwithyourtestor
componentinordertosavediskSpace.Forexample,supposeyouhaveaWebsitethatcan
displayamapofacitytheuserspecifies.Themaphascontrolkeysforzooming.Youcanrecord
thenewmapthatisdisplayedafteroneclickonthecontrolkeythatzoomsinthemap.Using
thebitmapcheckpoint,youcancheckthatthemapzoomsincorrectly.Youcancreatebitmap
checkpointsforallsupportedtestingenvironments(aslongastheappropriateaddinsare
loaded).Note:Theresultsofbitmapcheckpointsmaybeaffectedbyfactorssuchasoperating
system,screenresolution,andcolorsettings.
28. HowmanywayswecanparameterizedatainQTP?Therearefourtypesof
parameters:Test,actionorcomponentparametersenableyoutousevaluespassedfromyour
testorcomponent,orvaluesfromotheractionsinyourtest.DataTableparametersenableyou
tocreateadatadriventest(oraction)thatrunsseveraltimesusingthedatayousupply.In
eachrepetition,oriteration,QuickTestusesadifferentvaluefromtheDataTable.
Environmentvariableparametersenableyoutousevariablevaluesfromothersourcesduring
therunsession.Thesemaybevaluesyousupply,orvaluesthatQuickTestgeneratesforyou
basedonconditionsandoptionsyouchoose.Randomnumberparametersenableyoutoinsert
randomnumbersasvaluesinyourtestorcomponent.Forexample,tocheckhowyour
applicationhandlessmallandlargeticketorders,youcanhaveQuickTestgeneratearandom
numberandinsertitinanumberofticketseditfield.
29. HowdoudobatchtestinginWR&isitpossibletodoinQTP,ifsoexplain?Batch
TestinginWRisnothingbutrunningthewholetestsetbyselectingRunTestsetfromthe
ExecutionGrid.ThesameispossiblewithQTPalso.Ifourtestcasesareautomatedthenby
selectingRunTestsetallthetestscriptscanbeexecuted.InthisprocesstheScriptsget
executedonebyonebykeepingalltheremainingscriptsinWaitingmode.
30. IfIgivesomethousandteststoexecutein2dayswhatdoudo?Adhoctestingis
done.ItCoverstheleastbasicfunctionalitiestoverifythatthesystemisworkingfine.
31. Whatdoesitmeanwhenacheckpointisinredcolor?whatdoudo?Aredcolor
indicatesfailure.HereweanalyzethecauseforfailurewhetheritisaScriptIssueor
EnvironmentIssueoraApplicationissue.
32. WhatisObjectSpyinQTP?UsingtheObjectSpy,youcanviewthepropertiesofany
objectinanopenapplication.YouusetheObjectSpypointertopointtoanobject.TheObject
Spydisplaystheselectedobjectshierarchytreeanditspropertiesandvaluesinthe
PropertiestaboftheObjectSpydialogbox.
33. Whatisthefileextensionofthecodefile&objectrepositoryfileinQTP?Codefile
extensionis.vbsandobjectrepositoryis.tsr
34. Explaintheconceptofobjectrepository&howQTPrecognizesobjects?Object
Repository:displaysatreeofallobjectsinthecurrentcomponentorinthecurrentactionor
entiretest(dependingontheobjectrepositorymodeyouselected).Wecanviewormodifythe
testobjectdescriptionofanytestobjectintherepositoryortoaddnewobjectstothe
repository.Quicktestlearnsthedefaultpropertyvaluesanddeterminesinwhichtestobject
classitfits.Ifitisnotenoughitaddsassistiveproperties,onebyonetothedescriptionuntilit
hascompiledtheuniquedescription.Ifnoassistivepropertiesareavailable,thenitaddsa
specialOrdinalidentifiersuchasobjectslocationonthepageorinthesourcecode.
35. Whatarethepropertiesyouwoulduseforidentifyingabrowser&pagewhen
usingdescriptiveprogramming?Namewouldbeanotherpropertyapartfromtitlethat
wecanuse.
36. GivemeanexamplewhereyouhaveusedaCOMinterfaceinyourQTPproject?
cominterfaceappearsinthescenariooffrontendandbackend.foreg:ifyourusingoracleas
backendandfrontendasVBoranylanguagethenforbettercompatibilitywewillgoforan
interface.ofwhichCOMwillbeoneamongthoseinterfaces.Createobjectcreateshandletothe
instanceofthespecifiedobjectsothatweprogramcanusethemethodsonthespecifiedobject.
ItisusedforimplementingAutomation(asdefinedbyMicrosoft).
37. ExplaininbriefabouttheQTPAutomationObjectModel.Essentiallyall
configurationandrunfunctionalityprovidedviatheQuickTestinterfaceisinsomeway
representedintheQuickTestautomationobjectmodelviaobjects,methods,andproperties.
Althoughaoneononecomparisoncannotalwaysbemade,mostdialogboxesinQuickTest
haveacorrespondingautomationobject,mostoptionsindialogboxescanbesetand/or
retrievedusingthecorrespondingobjectproperty,andmostmenucommandsandother
operationshavecorrespondingautomationmethods.Youcanusetheobjects,methods,and
propertiesexposedbytheQuickTestautomationobjectmodel,alongwithstandard
programmingelementssuchasloopsandconditionalstatementstodesignyourprogram.

http://www.techinterviews.com/qtpinterviewquestionsandanswers

3/9

4/20/2015

QTPinterviewquestionsandanswers|TechInterviews

ThisentrywaspostedinTesting.Bookmarkthepermalink.Postacommentorleaveatrackback:Trackback
URL.

Adozen.NETquestions

BusinessObjectsinterviewquestion

7 4 C OMME NTS ONQTPINTE R VIE W QUE S TIONS ANDANS W E R S

Joe
Posted10/16/2007at1:34pm|Permalink

HiAmulya,
AnswerisYES.
Joe

rajasekharReddy
Posted10/23/2007at12:39am|Permalink

Hifriends,
ihavesometipicalquestionspleaseifanybodyhaverealtimeexp.givemetheright
answers.
1)supposethere10actionsin1testiwanttorunfrom5actionto10action(
5,6,7,8,9,10actions)howtodo
2)tocreateactionmanualyimeentosaythatbyusingscriptwhatisscriptcodeinvb
pleasehelpme
3)objectnotfoundforlikethiserrwhattodohowtoaddpropertiesmanualytothe
repository.
4)inawindowtherearesomeobjectsiwanttocountnumberofobjects(no.oflistboxs
,editboxes)howtowritescriptforthis
pleasehelpme..

nanda
Posted11/4/2007at7:18am|Permalink

thisisscriptwillusetosavenewtestorexistingtest:
DimqtAppAsQuickTest.ApplicationDeclaretheApplicationobjectvariable
SetqtApp=CreateObject(QuickTest.Application)CreatetheApplicationobject
qtApp.LaunchStartQuickTest(ifnotlaunched)
qtApp.Visible=TrueMakeitvisible
Savethecurrenttestandopenanewoneifneeded
IfqtApp.Test.ModifiedThenIfthetestwasmodified
IfqtApp.Test.IsNewThenIfitisanewtest(untitled)
qtApp.Test.SaveAsC:\Temp\TempTestSaveitwithatemporaryname(override
existingtemporarytest)
ElseIfthetestexists(hasaname)
qtApp.Test.SaveSavethechanges
EndIf
EndIf
IfNotqtApp.Test.IsNewThenIfthecurrenttestisnotnew
qtApp.NewOpenanewtest
EndIf
SetqtApp=NothingReleasetheApplicationobject

nanda
Posted11/4/2007at7:20am|Permalink

http://www.techinterviews.com/qtpinterviewquestionsandanswers

4/9

4/20/2015

QTPinterviewquestionsandanswers|TechInterviews

ifobjectisnotinORucangofordescriptiveprogramming(or)ifobjectisfoundbut
PropertiesarenotwithTestObjectthen..ucanaddpropertiesfortestobjectsbyusing
setTOPropertymethod.

nanda
Posted11/4/2007at7:26am|Permalink

Thebelowscriptuseforcountno.ofeditboxesinAUT:
setodesc=description.create
odesc(nativeclass).value=Edit
odesc(classname).value=WinEdit
setget_object=window(").childobjects(odesc)
count_object=get_object.count
msgboxcount_object
anducancountNo.listboxes,buttonsbymodifyingodescpropertyvalues.
Ifanyqueries:nanda.dreddy@gmail.com

Nalini
Posted11/19/2007at2:49am|Permalink

HiFriends,
Iamnewtothisgroup,iahveonequestiontoask.
Myquestionis:
MyapplicationisusingFarPointforGrids.
Whilerecording:ButQTPdoesntrecognizeFarPointdirectly,itrecordsgrids
asSwfObjectwhichmeansasingleObject(andnotagridwhichcontainsRowsand
Columns)usingLowerendpoints.
AftersearchingoninternetIfoundActiveXGridControlisthewaywhichsupports
FarPoint.
Butstillamnotabletocatchproperly.
Ifanyonegetthesolutionbutrevertbacasap

Oscar
Posted11/21/2007at9:05am|Permalink

Hi,IamcurrentlyexperiencingsomebasicproblemswithQTPscripting,sinceIam
settingavaluetoaWebEdittextbox.Whenrunningtheapplicationmanually,once
thetextboxgetstypedin,thenextcombobox(WebList)getsenabled,butwhen
runningtheQTPscript,thecomboremainsdisabled.
IvetriedtosetthevaluedirectlyorviaTable,andalsofortheinnertext,outertext,
innerhtmlandouterhtmlproperties,withsameresults.
HowcanIgetthatComboboxenabled?
Thanksinadvance.

Subashini
Posted12/5/2007at12:30pm|Permalink

DoesntQTPsupportHTMLpages.IneedtocomparetwoHTMLpagesinthe
application.
Pleaseletmeknowifanybodyhasanyideaonit.

http://www.techinterviews.com/qtpinterviewquestionsandanswers

5/9

4/20/2015

QTPinterviewquestionsandanswers|TechInterviews

kamal
Posted12/7/2007at9:43am|Permalink

Hi,
howcanIdisplayimageintheTestResult?
And
HowcanIuploadthesameonQCsothatIcangetthesamewhilegeneratingreports?

Narayana
Posted1/23/2008at12:06am|Permalink

howcanwelaunchQTPthroughruncommand(itsnotexe),andhowcanweloadbatch
filetorun?

Srividya
Posted3/12/2008at8:40am|Permalink

JustifywhetherQTPisDatadrivenorKeyworddriven?

Venu
Posted3/20/2008at6:47am|Permalink

HiAll,
DoesQTP8.2supportswebapplicationdevelopedinphpordoesitrequireanyAdd
InotherthanthedefaultwebAddInavailable..?

Asraf
Posted4/29/2008at1:55am|Permalink

answerof5
setobj=createobject(quicktest.application)
obj.test.settings.resources.objectrepositorypath=pathofthe.tsrfile

DhanasekarS
Posted5/15/2008at3:45am|Permalink

OscarSays:
November21st,2007at9:05am
Hi,IamcurrentlyexperiencingsomebasicproblemswithQTPscripting,sinceIam
settingavaluetoaWebEdittextbox.Whenrunningtheapplicationmanually,once
thetextboxgetstypedin,thenextcombobox(WebList)getsenabled,butwhen
runningtheQTPscript,thecomboremainsdisabled.
IvetriedtosetthevaluedirectlyorviaTable,andalsofortheinnertext,
outertext,innerhtmlandouterhtmlproperties,withsameresults.
HowcanIgetthatComboboxenabled?

Thisisbecausethedeveloperwouldhavedevelopedtoenablethecomboboxonlyif
yousendsomekeystroketowebedit.soSetwillnotwork,youhavetosendkeystroketo
webeditbycreating
Setws=CreateObject(WScript.Shell)
Nowsendaclicktowebedit,Browser().Page().webedit().click
thensendkeystroke
ws.SendKeysdata

Naveen

http://www.techinterviews.com/qtpinterviewquestionsandanswers

6/9

4/20/2015

QTPinterviewquestionsandanswers|TechInterviews
Posted6/5/2008at2:27am|Permalink

Pleasefindthebelowscriptforoneofourapplication,ourrequirementistoexecute
thisparticularscriptforevery30minincaseanyfailureweneedtosendamailto
user.
Canyoupleasehelpmeonthis?
Browser(SSOLOGIN).Page(SSOLOGIN).WebEdit(username).Setkrishna
Browser(SSOLOGIN).Page(SSOLOGIN).WebEdit(password).SetSecure
4847770856118ec59026d86ba08b2aac920cf7f874f0f8cfc5e5bbf17b14
Browser(SSOLOGIN).Page(SSOLOGIN).WebButton(LogIn).Click
Browser(SSOLOGIN).Dialog(SecurityAlert).WinButton(Yes).Click
Browser(SSOLOGIN).Page(DynamiteHighLevel).Link(ReportQuery).Click
Browser(SSOLOGIN).Page(DynamiteReportQuery).Link(Transaction
History).Click
Browser(SSOLOGIN).Page(DynamiteTransaction).Link(Download).Click
Browser(SSOLOGIN).Page(DynamiteDynamite
Download).Link(Logout).Click

preethi
Posted6/6/2008at11:00am|Permalink

Imnewtoautomationtesting(qtp),iwanttoknowhowtodecidewhichtestcasestobe
automatedandhowtosavetoscriptinqcandhowtoformthestructure(script)inqc.
Cananybodyhelpmewhohasrealtimeexperience

sandy
Posted7/15/2008at6:39am|Permalink

hiall,
ihaveaquestion.ihavetodividethetextinthenotepadtodifferentparagraphs,
withoutusingthesplitfunctionasthetextdoesnthaveanyspecialcharactersto
differentiatetheparagraphs,isthereanyfunctionforpastingthecontentintheword
document?asobjSelection.typetext
thisfunctiontypesallthetextcapturedasanotepadtextwithoutanyparagraph
divisions..butineedtotypeasaparagraphedtext..cananyonehelponthisissue?
pleasereplybacktosaandeep241@hotmail.com
thanksinadvance..:)

sonia
Posted9/13/2008at1:58pm|Permalink

IfyouuseGetROPropertymethodtogetthevalueoftheobjectsproperty,do
youneedtohavethisobjectdescribedandthepropertyoftheobjectinObject
Repository?

Auli
Posted11/4/2008at5:03am|Permalink

InTestPartner,thereisafunctionTextExists(some_text),whichreturnstrueorfalse
basedinwhetherthetextsome_textispresentwithina
window/messagebox/editboxetc.Isthereanysuchfunctionoranyinbuiltfunctionin
QTPthatdoesthesame?

http://www.techinterviews.com/qtpinterviewquestionsandanswers

7/9

4/20/2015

QTPinterviewquestionsandanswers|TechInterviews
pradeep
Posted11/5/2008at12:16am|Permalink

Sonia,Notrequired,theonepropertyvalueurgettingfromGetRoPropetyMethod
but,ORshouldhaveuniquedescriptionofobject.

sAcHiN...
Posted11/5/2008at3:35am|Permalink

NoudontneedtheobjecttobepresentintheObjectRepository.
Thispropertyisusedtogettheruntimedatafromtheappication.
But,QTPneedstoidentifythatobjectwhoseparticularpropertyuneedtocapture.For
thisumayneedthatobjectinObjectRepositoryorelseucanusedescriptive
programming.

Ganesh
Posted12/23/2008at6:59pm|Permalink

Hello,
Ifanyonecanhelpmeonthisitwillbeveryhelpful.
Question:
Inawebpagetherearefieldslike,Name,Date,Picure,Nextbutton.
ToenterthedateIhavetoclickonsmalliconnexttodatefieldwhichopensupassmall
windoesameascalendar.Wecanmovetonextmonth,yearinthiscalendar.Thisis
recognizedbyQTPasImageobject.
IssueisQTPisnotrecognizingthedateIselectfromthiscalendar.Itrecordsjustthe
clickonimagebutdoesnotrecognizethedatefieldinthecalendar.
IsitpossibletodoinQTP?
Writingascriptifitcanbedonepleasedoletmeknowhow.
Itisveryurgent.Pleasehelpmeonthis.
Thanks
Ganesh

Kiran
Posted12/23/2008at7:07pm|Permalink

Hello,
Ihadquestiononhowtowritetestcases.
ForexampleifinawebpagewehaveName,Age,&Addressfields.Dowehavetotest
differentconditionsforeachfield?
Foreg:
name:havetotest10possibilities.
Age:havetotest10possibilities.
InsuchscenariodowewritedifferentTestcasesfordifferentfieldsorcombinethem
allintoonetestcase?
Ifthereare+veandvetestcasesforeachfield,dowecombinethemintoonesingle
testcase?
Yourreplyisverymuchappreciated.
Thanks

Irina
Posted1/11/2009at2:09pm|Permalink

http://www.techinterviews.com/qtpinterviewquestionsandanswers

8/9

4/20/2015

QTPinterviewquestionsandanswers|TechInterviews

UsingQTP9.0,haveaproblem.
Thetestisrecorded,butIdontseeallstepsintheActiveScreen,thatmeansthatI
dontseetheGUIvisualsteps.Whatisgoingon?

Previous12

POS TAC OMME NT

Youremailisneverpublishednorshared.Requiredfieldsaremarked*
Name*

Email*

Website

Comment

PostComment

PoweredbyWordPress.BuiltontheThematicThemeFramework.

http://www.techinterviews.com/qtpinterviewquestionsandanswers

9/9

You might also like