Upload
anand-dhana
View
220
Download
0
Embed Size (px)
DESCRIPTION
download
Citation preview
4/20/2015 QTPinterviewquestionsandanswers|TechInterviews
http://www.techinterviews.com/qtpinterviewquestionsandanswers 1/9
Testing>>QTPinterviewquestionsandanswers
SearchTechInterviews
SearchTechInterviewsPrepareforjobinterviewswiththequestionsandanswersaskedbyhightechemployers
.NET C++ Database General Hardware Java Networking Puzzles SAPABAP Testing Unix/Linux VB Webdev Windows
QTPinterviewquestionsandanswersByadmin|October19,2006
1. WhataretheFeatures&BenefitsofQuickTestPro(QTP8.0)?Operatesstandalone,orintegratedintoMercuryBusinessProcessTestingandMercuryQualityCenter.IntroducesnextgenerationzeroconfigurationKeywordDriventestingtechnologyinQuickTestProfessional8.0allowingforfasttestcreation,easiermaintenance,andmorepowerfuldatadrivingcapability.IdentifiesobjectswithUniqueSmartObjectRecognition,eveniftheychangefrombuildtobuild,enablingreliableunattendedscriptexecution.CollapsestestdocumentationandtestcreationtoasinglestepwithAutodocumentationtechnology.Enablesthoroughvalidationofapplicationsthroughafullcomplementofcheckpoints.
2. HowtohandletheexceptionsusingrecoveryscenariomanagerinQTP?Thereare4triggereventsduringwhicharecoveryscenarioshouldbeactivated.Apopupwindowappearsinanopenedapplicationduringthetestrun:Apropertyofanobjectchangesitsstateorvalue,Astepinthetestdoesnotrunsuccessfully,Anopenapplicationfailsduringthetestrun,Thesetriggersareconsideredasexceptions.YoucaninstructQTPtorecoverunexpectedeventsorerrorsthatoccurredinyourtestingenvironmentduringtestrun.Recoveryscenariomanagerprovidesawizardthatguidesyouthroughthedefiningrecoveryscenario.Recoveryscenariohasthreesteps:1.TriggeredEvents2.Recoverysteps3.PostRecoveryTestRun
3. WhatistheuseofTextoutputvalueinQTP?Outputvaluesenabletoviewthevaluesthattheapplicationtalksduringruntime.Whenparameterized,thevalueschangeforeachiteration.Thusbycreatingoutputvalues,wecancapturethevaluesthattheapplicationtakesforeachrunandoutputthemtothedatatable.
4. HowtousetheObjectspyinQTP8.0version?TherearetwowaystoSpytheobjectsinQTP:1)Thrufiletoolbar,IntheFileToolbarclickonthelasttoolbarbutton(aniconshowingapersonwithhat).2)TrueObjectrepositoryDialog,InObjectrepositorydialogclickonthebuttonobjectspy.IntheObjectspyDialogclickonthebuttonshowinghandsymbol.Thepointernowchangesintoahandsymbolandwehavetopointouttheobjecttospythestateoftheobjectifatalltheobjectisnotvisible.orwindowisminimizedthen,holdtheCtrlbuttonandactivatetherequiredwindowtoandreleasetheCtrlbutton.
5. HowDoesRuntimedata(Parameterization)ishandledinQTP?YoucanthenentertestdataintotheDataTable,anintegratedspreadsheetwiththefullfunctionalityofExcel,tomanipulatedatasetsandcreatemultipletestiterations,withoutprogramming,toexpandtestcasecoverage.Datacanbetypedinorimportedfromdatabases,spreadsheets,ortextfiles.
6. WhatiskeywordviewandExpertviewinQTP?QuickTestsKeywordDrivenapproach,testautomationexpertshavefullaccesstotheunderlyingtestandobjectproperties,viaanintegratedscriptinganddebuggingenvironmentthatisroundtripsynchronizedwiththeKeywordView.AdvancedtesterscanviewandedittheirtestsintheExpertView,whichrevealstheunderlyingindustrystandardVBScriptthatQuickTestProfessionalautomaticallygenerates.AnychangesmadeintheExpertViewareautomaticallysynchronizedwiththeKeywordView.
7. ExplainabouttheTestFusionReportofQTP?Onceatesterhasrunatest,aTestFusionreportdisplaysallaspectsofthetestrun:ahighlevelresultsoverview,anexpandableTreeViewofthetestspecifyingexactlywhereapplicationfailuresoccurred,thetestdataused,applicationscreenshotsforeverystepthathighlightanydiscrepancies,anddetailedexplanationsofeachcheckpointpassandfailure.BycombiningTestFusionreportswithQuickTestProfessional,youcansharereportsacrossanentireQAanddevelopmentteam.
8. WhichenvironmentsdoesQTPsupport?QuickTestProfessionalsupportsfunctionaltestingofallenterpriseenvironments,includingWindows,Web,..NET,Java/J2EE,SAP,Siebel,Oracle,PeopleSoft,VisualBasic,ActiveX,mainframeterminalemulators,andWebservices.
9. WhatisQTP?QuickTestisagraphicalinterfacerecordplaybackautomationtool.Itisabletoworkwithanyweb,javaorwindowsclientapplication.QuickTestenablesyoutoteststandardwebobjectsandActiveXcontrols.Inadditiontotheseenvironments,QuickTestProfessionalalsoenablesyoutotestJavaappletsandapplicationsandmultimediaobjectsonApplicationsaswellasstandardWindowsapplications,VisualBasic6applicationsand.NETframeworkapplications
10. ExplainQTPTestingprocess?QuickTesttestingprocessconsistsof6mainphases:11. CreateyourtestplanPriortoautomatingthereshouldbeadetaileddescriptionofthetest
includingtheexactstepstofollow,datatobeinput,andallitemstobeverifiedbythetest.Theverificationinformationshouldincludebothdatavalidationsandexistenceorstateverificationsofobjectsintheapplication.
12. RecordingasessiononyourapplicationAsyounavigatethroughyourapplication,QuickTestgraphicallydisplayseachstepyouperformintheformofacollapsibleiconbased
JobInterviewQuestionArticlesC#InterviewQuestionsandAnswersQTPInterviewQuestionsandAnswersC++InterviewQuestionsandAnswersPHPInterviewQuestionsandAnswersXMLInterviewQuestionsandAnswersJavaScriptInterviewQuestionsandAnswersAsp.NetInterviewQuestionsandAnswersJ2EEInterviewQuestionsandAnswersABAPInterviewQuestionsandAnswersPerlInterviewQuestionsandAnswersJavaInterviewQuestionsandAnswers
ResourcesTechnologyQuestionandAnswerWebsiteHowtodancearoundthesalaryexpectationquestion10mistakesmanagersmakeduringjobinterviewsStupidinterviewquestionsHowtoAnswerTheseTrickyInterviewQuestionsSeventipsforwritinganonlineprofileforLinkedIn,MySpaceorFacebook
TutorialsAJAXTutorialsDealingwithyourjobGettingajobJavaScripttutorialsJobinterviewtipsfromYahoo!HotJobsMySQLtutorialsRetiringfromyourjobRubyonRailstutorialsSalaryguideforITjobsSelfemploymentTechInterviewsguidesinPDFUnderstandingpointersXMLTutorialsXULtutorials
RSSFeedsAllpostsAllcomments
4/20/2015 QTPinterviewquestionsandanswers|TechInterviews
http://www.techinterviews.com/qtpinterviewquestionsandanswers 2/9
testtree.Astepisanyuseractionthatcausesormakesachangeinyoursite,suchasclickingalinkorimage,orenteringdatainaform.
13. EnhancingyourtestInsertingcheckpointsintoyourtestletsyousearchforaspecificvalueofapage,objectortextstring,whichhelpsyouidentifywhetherornotyourapplicationisfunctioningcorrectly.NOTE:CheckpointscanbeaddedtoatestasyourecorditorafterthefactviatheActiveScreen.Itismucheasierandfastertoaddthecheckpointsduringtherecordingprocess.Broadeningthescopeofyourtestbyreplacingfixedvalueswithparametersletsyoucheckhowyourapplicationperformsthesameoperationswithmultiplesetsofdata.Addinglogicandconditionalstatementstoyourtestenablesyoutoaddsophisticatedcheckstoyourtest.
14. DebuggingyourtestIfchangesweremadetothescript,youneedtodebugittocheckthatitoperatessmoothlyandwithoutinterruption.
15. RunningyourtestonanewversionofyourapplicationYourunatesttocheckthebehaviorofyourapplication.Whilerunning,QuickTestconnectstoyourapplicationandperformseachstepinyourtest.
16. AnalyzingthetestresultsYouexaminethetestresultstopinpointdefectsinyourapplication.
17. ReportingdefectsAsyouencounterfailuresintheapplicationwhenanalyzingtestresults,youwillcreatedefectreportsinDefectReportingTool.
18. ExplaintheQTPToolinterface.Itcontainsthefollowingkeyelements:Titlebar,displayingthenameofthecurrentlyopentest,Menubar,displayingmenusofQuickTestcommands,Filetoolbar,containingbuttonstoassistyouinmanagingtests,Testtoolbar,containingbuttonsusedwhilecreatingandmaintainingtests,Debugtoolbar,containingbuttonsusedwhiledebuggingtests.Note:TheDebugtoolbarisnotdisplayedwhenyouopenQuickTestforthefirsttime.YoucandisplaytheDebugtoolbarbychoosingViewToolbarsDebug.Actiontoolbar,containingbuttonsandalistofactions,enablingyoutoviewthedetailsofanindividualactionortheentiretestflow.Note:TheActiontoolbarisnotdisplayedwhenyouopenQuickTestforthefirsttime.YoucandisplaytheActiontoolbarbychoosingViewToolbarsAction.Ifyouinsertareusableorexternalactioninatest,theActiontoolbarisdisplayedautomatically.Testpane,containingtwotabstoviewyourtesttheTreeViewandtheExpertView,TestDetailspane,containingtheActiveScreen.DataTable,containingtwotabs,GlobalandAction,toassistyouinparameterizingyourtest.DebugViewerpane,containingthreetabstoassistyouindebuggingyourtestWatchExpressions,Variables,andCommand.(TheDebugViewerpanecanbeopenedonlywhenatestrunpausesatabreakpoint.)Statusbar,displayingthestatusofthetest
19. HowdoesQTPrecognizeObjectsinAUT?QuickTeststoresthedefinitionsforapplicationobjectsinafilecalledtheObjectRepository.Asyourecordyourtest,QuickTestwilladdanentryforeachitemyouinteractwith.EachObjectRepositoryentrywillbeidentifiedbyalogicalname(determinedautomaticallybyQuickTest),andwillcontainasetofproperties(type,name,etc)thatuniquelyidentifyeachobject.EachlineintheQuickTestscriptwillcontainareferencetotheobjectthatyouinteractedwith,acalltotheappropriatemethod(set,click,check)andanyparametersforthatmethod(suchasthevalueforacalltothesetmethod).Thereferencestoobjectsinthescriptwillallbeidentifiedbythelogicalname,ratherthananyphysical,descriptiveproperties.
20. WhatarethetypesofObjectRepositoriesinQTP?QuickTesthastwotypesofobjectrepositoriesforstoringobjectinformation:sharedobjectrepositoriesandactionobjectrepositories.Youcanchoosewhichtypeofobjectrepositoryyouwanttouseasthedefaulttypefornewtests,andyoucanchangethedefaultasnecessaryforeachnewtest.Theobjectrepositoryperactionmodeisthedefaultsetting.Inthismode,QuickTestautomaticallycreatesanobjectrepositoryfileforeachactioninyourtestsothatyoucancreateandruntestswithoutcreating,choosing,ormodifyingobjectrepositoryfiles.However,ifyoudomodifyvaluesinanactionobjectrepository,yourchangesdonothaveanyeffectonotheractions.Therefore,ifthesametestobjectexistsinmorethanoneactionandyoumodifyanobjectspropertyvaluesinoneaction,youmayneedtomakethesamechangeineveryaction(andanytest)containingtheobject.
21. ExplainthecheckpointsinQTP?AcheckpointverifiesthatexpectedinformationisdisplayedinanApplicationwhilethetestisrunning.YoucanaddeighttypesofcheckpointstoyourtestforstandardwebobjectsusingQTP.ApagecheckpointchecksthecharacteristicsofanApplication.AtextcheckpointchecksthatatextstringisdisplayedintheappropriateplaceonanApplication.Anobjectcheckpoint(Standard)checksthevaluesofanobjectonanApplication.AnimagecheckpointchecksthevaluesofanimageonanApplication.AtablecheckpointchecksinformationwithinatableonaApplication.AnAccessibilityycheckpointchecksthewebpageforSection508compliance.AnXMLcheckpointchecksthecontentsofindividualXMLdatafilesorXMLdocumentsthatarepartofyourWebapplication.Adatabasecheckpointchecksthecontentsofdatabasesaccessedbyyourwebsite
22. InhowmanywayswecanaddcheckpointstoanapplicationusingQTP?WecanaddcheckpointswhilerecordingtheapplicationorwecanaddafterrecordingiscompletedusingActivescreen(Note:ToperformthesecondoneTheActivescreenmustbeenabledwhilerecording).
23. HowdoesQTPidentifyobjectsintheapplication?QTPidentifiestheobjectintheapplicationbyLogicalNameandClass.
24. WhatisParameterizingTests?Whenyoutestyourapplication,youmaywanttocheckhowitperformsthesameoperationswithmultiplesetsofdata.Forexample,supposeyouwanttocheckhowyourapplicationrespondstotenseparatesetsofdata.Youcouldrecordtenseparatetests,eachwithitsownsetofdata.Alternatively,youcancreateaparameterizedtestthatrunstentimes:eachtimethetestruns,itusesadifferentsetofdata.
25. WhatistestobjectmodelinQTP?Thetestobjectmodelisalargesetofobjecttypesor
4/20/2015 QTPinterviewquestionsandanswers|TechInterviews
http://www.techinterviews.com/qtpinterviewquestionsandanswers 3/9
classesthatQuickTestusestorepresenttheobjectsinyourapplication.EachtestobjectclasshasalistofpropertiesthatcanuniquelyidentifyobjectsofthatclassandasetofrelevantmethodsthatQuickTestcanrecordforit.AtestobjectisanobjectthatQuickTestcreatesinthetestorcomponenttorepresenttheactualobjectinyourapplication.QuickTeststoresinformationabouttheobjectthatwillhelpitidentifyandchecktheobjectduringtherunsession.
26. WhatisObjectSpyinQTP?UsingtheObjectSpy,youcanviewthepropertiesofanyobjectinanopenapplication.YouusetheObjectSpypointertopointtoanobject.TheObjectSpydisplaystheselectedobjectshierarchytreeanditspropertiesandvaluesinthePropertiestaboftheObjectSpydialogbox.
27. WhatistheDiffbetweenImagecheckpointandBitmapCheckpoint?ImagecheckpointsenableyoutocheckthepropertiesofaWebimage.YoucancheckanareaofaWebpageorapplicationasabitmap.Whilecreatingatestorcomponent,youspecifytheareayouwanttocheckbyselectinganobject.Youcancheckanentireobjectoranyareawithinanobject.QuickTestcapturesthespecifiedobjectasabitmap,andinsertsacheckpointinthetestorcomponent.YoucanalsochoosetosaveonlytheselectedareaoftheobjectwithyourtestorcomponentinordertosavediskSpace.Forexample,supposeyouhaveaWebsitethatcandisplayamapofacitytheuserspecifies.Themaphascontrolkeysforzooming.Youcanrecordthenewmapthatisdisplayedafteroneclickonthecontrolkeythatzoomsinthemap.Usingthebitmapcheckpoint,youcancheckthatthemapzoomsincorrectly.Youcancreatebitmapcheckpointsforallsupportedtestingenvironments(aslongastheappropriateaddinsareloaded).Note:Theresultsofbitmapcheckpointsmaybeaffectedbyfactorssuchasoperatingsystem,screenresolution,andcolorsettings.
28. HowmanywayswecanparameterizedatainQTP?Therearefourtypesofparameters:Test,actionorcomponentparametersenableyoutousevaluespassedfromyourtestorcomponent,orvaluesfromotheractionsinyourtest.DataTableparametersenableyoutocreateadatadriventest(oraction)thatrunsseveraltimesusingthedatayousupply.Ineachrepetition,oriteration,QuickTestusesadifferentvaluefromtheDataTable.Environmentvariableparametersenableyoutousevariablevaluesfromothersourcesduringtherunsession.Thesemaybevaluesyousupply,orvaluesthatQuickTestgeneratesforyoubasedonconditionsandoptionsyouchoose.Randomnumberparametersenableyoutoinsertrandomnumbersasvaluesinyourtestorcomponent.Forexample,tocheckhowyourapplicationhandlessmallandlargeticketorders,youcanhaveQuickTestgeneratearandomnumberandinsertitinanumberofticketseditfield.
29. HowdoudobatchtestinginWR&isitpossibletodoinQTP,ifsoexplain?BatchTestinginWRisnothingbutrunningthewholetestsetbyselectingRunTestsetfromtheExecutionGrid.ThesameispossiblewithQTPalso.IfourtestcasesareautomatedthenbyselectingRunTestsetallthetestscriptscanbeexecuted.InthisprocesstheScriptsgetexecutedonebyonebykeepingalltheremainingscriptsinWaitingmode.
30. IfIgivesomethousandteststoexecutein2dayswhatdoudo?Adhoctestingisdone.ItCoverstheleastbasicfunctionalitiestoverifythatthesystemisworkingfine.
31. Whatdoesitmeanwhenacheckpointisinredcolor?whatdoudo?Aredcolorindicatesfailure.HereweanalyzethecauseforfailurewhetheritisaScriptIssueorEnvironmentIssueoraApplicationissue.
32. WhatisObjectSpyinQTP?UsingtheObjectSpy,youcanviewthepropertiesofanyobjectinanopenapplication.YouusetheObjectSpypointertopointtoanobject.TheObjectSpydisplaystheselectedobjectshierarchytreeanditspropertiesandvaluesinthePropertiestaboftheObjectSpydialogbox.
33. Whatisthefileextensionofthecodefile&objectrepositoryfileinQTP?Codefileextensionis.vbsandobjectrepositoryis.tsr
34. Explaintheconceptofobjectrepository&howQTPrecognizesobjects?ObjectRepository:displaysatreeofallobjectsinthecurrentcomponentorinthecurrentactionorentiretest(dependingontheobjectrepositorymodeyouselected).Wecanviewormodifythetestobjectdescriptionofanytestobjectintherepositoryortoaddnewobjectstotherepository.Quicktestlearnsthedefaultpropertyvaluesanddeterminesinwhichtestobjectclassitfits.Ifitisnotenoughitaddsassistiveproperties,onebyonetothedescriptionuntilithascompiledtheuniquedescription.Ifnoassistivepropertiesareavailable,thenitaddsaspecialOrdinalidentifiersuchasobjectslocationonthepageorinthesourcecode.
35. Whatarethepropertiesyouwoulduseforidentifyingabrowser&pagewhenusingdescriptiveprogramming?Namewouldbeanotherpropertyapartfromtitlethatwecanuse.
36. GivemeanexamplewhereyouhaveusedaCOMinterfaceinyourQTPproject?cominterfaceappearsinthescenariooffrontendandbackend.foreg:ifyourusingoracleasbackendandfrontendasVBoranylanguagethenforbettercompatibilitywewillgoforaninterface.ofwhichCOMwillbeoneamongthoseinterfaces.Createobjectcreateshandletotheinstanceofthespecifiedobjectsothatweprogramcanusethemethodsonthespecifiedobject.ItisusedforimplementingAutomation(asdefinedbyMicrosoft).
37. ExplaininbriefabouttheQTPAutomationObjectModel.EssentiallyallconfigurationandrunfunctionalityprovidedviatheQuickTestinterfaceisinsomewayrepresentedintheQuickTestautomationobjectmodelviaobjects,methods,andproperties.Althoughaoneononecomparisoncannotalwaysbemade,mostdialogboxesinQuickTesthaveacorrespondingautomationobject,mostoptionsindialogboxescanbesetand/orretrievedusingthecorrespondingobjectproperty,andmostmenucommandsandotheroperationshavecorrespondingautomationmethods.Youcanusetheobjects,methods,andpropertiesexposedbytheQuickTestautomationobjectmodel,alongwithstandardprogrammingelementssuchasloopsandconditionalstatementstodesignyourprogram.
4/20/2015 QTPinterviewquestionsandanswers|TechInterviews
http://www.techinterviews.com/qtpinterviewquestionsandanswers 4/9
Adozen.NETquestions BusinessObjectsinterviewquestion
ThisentrywaspostedinTesting.Bookmarkthepermalink.Postacommentorleaveatrackback:TrackbackURL.
74COMMENTSONQTPINTERVIEWQUESTIONSANDANSWERS
JoePosted10/16/2007at1:34pm|Permalink
HiAmulya,
AnswerisYES.
Joe
rajasekharReddyPosted10/23/2007at12:39am|Permalink
Hifriends,
ihavesometipicalquestionspleaseifanybodyhaverealtimeexp.givemetherightanswers.
1)supposethere10actionsin1testiwanttorunfrom5actionto10action(5,6,7,8,9,10actions)howtodo2)tocreateactionmanualyimeentosaythatbyusingscriptwhatisscriptcodeinvbpleasehelpme3)objectnotfoundforlikethiserrwhattodohowtoaddpropertiesmanualytotherepository.4)inawindowtherearesomeobjectsiwanttocountnumberofobjects(no.oflistboxs,editboxes)howtowritescriptforthis
pleasehelpme..
nandaPosted11/4/2007at7:18am|Permalink
thisisscriptwillusetosavenewtestorexistingtest:DimqtAppAsQuickTest.ApplicationDeclaretheApplicationobjectvariableSetqtApp=CreateObject(QuickTest.Application)CreatetheApplicationobjectqtApp.LaunchStartQuickTest(ifnotlaunched)qtApp.Visible=TrueMakeitvisibleSavethecurrenttestandopenanewoneifneededIfqtApp.Test.ModifiedThenIfthetestwasmodifiedIfqtApp.Test.IsNewThenIfitisanewtest(untitled)qtApp.Test.SaveAsC:\Temp\TempTestSaveitwithatemporaryname(overrideexistingtemporarytest)ElseIfthetestexists(hasaname)qtApp.Test.SaveSavethechangesEndIf
EndIfIfNotqtApp.Test.IsNewThenIfthecurrenttestisnotnewqtApp.NewOpenanewtestEndIfSetqtApp=NothingReleasetheApplicationobject
nandaPosted11/4/2007at7:20am|Permalink
4/20/2015 QTPinterviewquestionsandanswers|TechInterviews
http://www.techinterviews.com/qtpinterviewquestionsandanswers 5/9
ifobjectisnotinORucangofordescriptiveprogramming(or)ifobjectisfoundbutPropertiesarenotwithTestObjectthen..ucanaddpropertiesfortestobjectsbyusingsetTOPropertymethod.
nandaPosted11/4/2007at7:26am|Permalink
Thebelowscriptuseforcountno.ofeditboxesinAUT:
setodesc=description.create
odesc(nativeclass).value=Editodesc(classname).value=WinEdit
setget_object=window(").childobjects(odesc)
count_object=get_object.count
msgboxcount_object
anducancountNo.listboxes,buttonsbymodifyingodescpropertyvalues.
Ifanyqueries:[email protected]
NaliniPosted11/19/2007at2:49am|Permalink
HiFriends,
Iamnewtothisgroup,iahveonequestiontoask.Myquestionis:
MyapplicationisusingFarPointforGrids.
Whilerecording:ButQTPdoesntrecognizeFarPointdirectly,itrecordsgridsasSwfObjectwhichmeansasingleObject(andnotagridwhichcontainsRowsandColumns)usingLowerendpoints.
AftersearchingoninternetIfoundActiveXGridControlisthewaywhichsupportsFarPoint.
Butstillamnotabletocatchproperly.Ifanyonegetthesolutionbutrevertbacasap
OscarPosted11/21/2007at9:05am|Permalink
Hi,IamcurrentlyexperiencingsomebasicproblemswithQTPscripting,sinceIamsettingavaluetoaWebEdittextbox.Whenrunningtheapplicationmanually,oncethetextboxgetstypedin,thenextcombobox(WebList)getsenabled,butwhenrunningtheQTPscript,thecomboremainsdisabled.IvetriedtosetthevaluedirectlyorviaTable,andalsofortheinnertext,outertext,innerhtmlandouterhtmlproperties,withsameresults.HowcanIgetthatComboboxenabled?
Thanksinadvance.
SubashiniPosted12/5/2007at12:30pm|Permalink
DoesntQTPsupportHTMLpages.IneedtocomparetwoHTMLpagesintheapplication.
Pleaseletmeknowifanybodyhasanyideaonit.
4/20/2015 QTPinterviewquestionsandanswers|TechInterviews
http://www.techinterviews.com/qtpinterviewquestionsandanswers 6/9
kamalPosted12/7/2007at9:43am|Permalink
Hi,howcanIdisplayimageintheTestResult?AndHowcanIuploadthesameonQCsothatIcangetthesamewhilegeneratingreports?
NarayanaPosted1/23/2008at12:06am|Permalink
howcanwelaunchQTPthroughruncommand(itsnotexe),andhowcanweloadbatchfiletorun?
SrividyaPosted3/12/2008at8:40am|Permalink
JustifywhetherQTPisDatadrivenorKeyworddriven?
VenuPosted3/20/2008at6:47am|Permalink
HiAll,
DoesQTP8.2supportswebapplicationdevelopedinphpordoesitrequireanyAddInotherthanthedefaultwebAddInavailable..?
AsrafPosted4/29/2008at1:55am|Permalink
answerof5setobj=createobject(quicktest.application)obj.test.settings.resources.objectrepositorypath=pathofthe.tsrfile
DhanasekarSPosted5/15/2008at3:45am|Permalink
OscarSays:November21st,2007at9:05am
Hi,IamcurrentlyexperiencingsomebasicproblemswithQTPscripting,sinceIamsettingavaluetoaWebEdittextbox.Whenrunningtheapplicationmanually,oncethetextboxgetstypedin,thenextcombobox(WebList)getsenabled,butwhenrunningtheQTPscript,thecomboremainsdisabled.IvetriedtosetthevaluedirectlyorviaTable,andalsofortheinnertext,outertext,innerhtmlandouterhtmlproperties,withsameresults.HowcanIgetthatComboboxenabled?Thisisbecausethedeveloperwouldhavedevelopedtoenablethecomboboxonlyifyousendsomekeystroketowebedit.soSetwillnotwork,youhavetosendkeystroketowebeditbycreatingSetws=CreateObject(WScript.Shell)Nowsendaclicktowebedit,Browser().Page().webedit().clickthensendkeystrokews.SendKeysdata
Naveen
4/20/2015 QTPinterviewquestionsandanswers|TechInterviews
http://www.techinterviews.com/qtpinterviewquestionsandanswers 7/9
Posted6/5/2008at2:27am|Permalink
Pleasefindthebelowscriptforoneofourapplication,ourrequirementistoexecutethisparticularscriptforevery30minincaseanyfailureweneedtosendamailtouser.
Canyoupleasehelpmeonthis?
Browser(SSOLOGIN).Page(SSOLOGIN).WebEdit(username).Setkrishna
Browser(SSOLOGIN).Page(SSOLOGIN).WebEdit(password).SetSecure4847770856118ec59026d86ba08b2aac920cf7f874f0f8cfc5e5bbf17b14
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(TransactionHistory).Click
Browser(SSOLOGIN).Page(DynamiteTransaction).Link(Download).Click
Browser(SSOLOGIN).Page(DynamiteDynamiteDownload).Link(Logout).Click
preethiPosted6/6/2008at11:00am|Permalink
Imnewtoautomationtesting(qtp),iwanttoknowhowtodecidewhichtestcasestobeautomatedandhowtosavetoscriptinqcandhowtoformthestructure(script)inqc.
Cananybodyhelpmewhohasrealtimeexperience
sandyPosted7/15/2008at6:39am|Permalink
hiall,ihaveaquestion.ihavetodividethetextinthenotepadtodifferentparagraphs,withoutusingthesplitfunctionasthetextdoesnthaveanyspecialcharacterstodifferentiatetheparagraphs,isthereanyfunctionforpastingthecontentintheworddocument?asobjSelection.typetextthisfunctiontypesallthetextcapturedasanotepadtextwithoutanyparagraphdivisions..butineedtotypeasaparagraphedtext..cananyonehelponthisissue?pleasereplybacktosaandeep241@hotmail.comthanksinadvance..:)
soniaPosted9/13/2008at1:58pm|Permalink
IfyouuseGetROPropertymethodtogetthevalueoftheobjectsproperty,doyouneedtohavethisobjectdescribedandthepropertyoftheobjectinObjectRepository?
AuliPosted11/4/2008at5:03am|Permalink
InTestPartner,thereisafunctionTextExists(some_text),whichreturnstrueorfalsebasedinwhetherthetextsome_textispresentwithinawindow/messagebox/editboxetc.IsthereanysuchfunctionoranyinbuiltfunctioninQTPthatdoesthesame?
4/20/2015 QTPinterviewquestionsandanswers|TechInterviews
http://www.techinterviews.com/qtpinterviewquestionsandanswers 8/9
pradeepPosted11/5/2008at12:16am|Permalink
Sonia,Notrequired,theonepropertyvalueurgettingfromGetRoPropetyMethodbut,ORshouldhaveuniquedescriptionofobject.
sAcHiN...Posted11/5/2008at3:35am|Permalink
NoudontneedtheobjecttobepresentintheObjectRepository.Thispropertyisusedtogettheruntimedatafromtheappication.But,QTPneedstoidentifythatobjectwhoseparticularpropertyuneedtocapture.ForthisumayneedthatobjectinObjectRepositoryorelseucanusedescriptiveprogramming.
GaneshPosted12/23/2008at6:59pm|Permalink
Hello,
Ifanyonecanhelpmeonthisitwillbeveryhelpful.Question:Inawebpagetherearefieldslike,Name,Date,Picure,Nextbutton.
ToenterthedateIhavetoclickonsmalliconnexttodatefieldwhichopensupassmallwindoesameascalendar.Wecanmovetonextmonth,yearinthiscalendar.ThisisrecognizedbyQTPasImageobject.
IssueisQTPisnotrecognizingthedateIselectfromthiscalendar.Itrecordsjusttheclickonimagebutdoesnotrecognizethedatefieldinthecalendar.
IsitpossibletodoinQTP?Writingascriptifitcanbedonepleasedoletmeknowhow.
Itisveryurgent.Pleasehelpmeonthis.
ThanksGanesh
KiranPosted12/23/2008at7:07pm|Permalink
Hello,
Ihadquestiononhowtowritetestcases.ForexampleifinawebpagewehaveName,Age,&Addressfields.Dowehavetotestdifferentconditionsforeachfield?
Foreg:name:havetotest10possibilities.Age:havetotest10possibilities.
InsuchscenariodowewritedifferentTestcasesfordifferentfieldsorcombinethemallintoonetestcase?
Ifthereare+veandvetestcasesforeachfield,dowecombinethemintoonesingletestcase?
Yourreplyisverymuchappreciated.
Thanks
IrinaPosted1/11/2009at2:09pm|Permalink
4/20/2015 QTPinterviewquestionsandanswers|TechInterviews
http://www.techinterviews.com/qtpinterviewquestionsandanswers 9/9
PoweredbyWordPress.BuiltontheThematicThemeFramework.
Name* Email*
PostComment
Previous12
POSTACOMMENT
Youremailisneverpublishednorshared.Requiredfieldsaremarked*
Website
Comment
UsingQTP9.0,haveaproblem.Thetestisrecorded,butIdontseeallstepsintheActiveScreen,thatmeansthatIdontseetheGUIvisualsteps.Whatisgoingon?