9
Testing >> QTP interview questions and answers Search Tech Interviews Search Tech Interviews Prepare for job interviews with the questions and answers asked by hightech employers .NET C++ Database General Hardware Java Networking Puzzles SAP ABAP Testing Unix/Linux VB Web dev Windows QTP interview questions and answers By admin | October 19, 2006 1. What are the Features & Benefits of Quick Test Pro (QTP 8.0)? Operates stand alone, or integrated into Mercury Business Process Testing and Mercury Quality Center. Introduces nextgeneration zeroconfiguration Keyword Driven testing technology in Quick Test Professional 8.0 allowing for fast test creation, easier maintenance, and more powerful datadriving capability. Identifies objects with Unique Smart Object Recognition, even if they change from build to build, enabling reliable unattended script execution. Collapses test documentation and test creation to a single step with Autodocumentation technology. Enables thorough validation of applications through a full complement of checkpoints. 2. How to handle the exceptions using recovery scenario manager in QTP? There are 4 trigger events during which a recovery scenario should be activated. A pop up window appears in an opened application during the test run: A property of an object changes its state or value, A step in the test does not run successfully, An open application fails during the test run, These triggers are considered as exceptions.You can instruct QTP to recover unexpected events or errors that occurred in your testing environment during test run. Recovery scenario manager provides a wizard that guides you through the defining recovery scenario. Recovery scenario has three steps: 1. Triggered Events 2. Recovery steps 3. Post Recovery TestRun 3. What is the use of Text output value in QTP? Output values enable to view the values that the application talks during run time. When parameterized, the values change for each iteration. Thus by creating output values, we can capture the values that the application takes for each run and output them to the data table. 4. How to use the Object spy in QTP 8.0 version? There are two ways to Spy the objects in QTP: 1) Thru file toolbar, In the File Toolbar click on the last toolbar button (an icon showing a person with hat). 2) True Object repository Dialog, In Object repository dialog click on the button object spy. In the Object spy Dialog click on the button showing hand symbol. The pointer now changes in to a hand symbol and we have to point out the object to spy the state of the object if at all the object is not visible. or window is minimized then, hold the Ctrl button and activate the required window to and release the Ctrl button. 5. How Does Run time data (Parameterization) is handled in QTP? You can then enter test data into the Data Table, an integrated spreadsheet with the full functionality of Excel, to manipulate data sets and create multiple test iterations, without programming, to expand test case coverage. Data can be typed in or imported from databases, spreadsheets, or text files. 6. What is keyword view and Expert view in QTP? Quick Test’s Keyword Driven approach, test automation experts have full access to the underlying test and object properties, via an integrated scripting and debugging environment that is roundtrip synchronized with the Keyword View. Advanced testers can view and edit their tests in the Expert View, which reveals the underlying industrystandard VBScript that Quick Test Professional automatically generates. Any changes made in the Expert View are automatically synchronized with the Keyword View. 7. Explain about the Test Fusion Report of QTP? Once a tester has run a test, a Test Fusion report displays all aspects of the test run: a highlevel results overview, an expandable Tree View of the test specifying exactly where application failures occurred, the test data used, application screen shots for every step that highlight any discrepancies, and detailed explanations of each checkpoint pass and failure. By combining Test Fusion reports with Quick Test Professional, you can share reports across an entire QA and development team. 8. Which environments does QTP support? Quick Test Professional supports functional testing of all enterprise environments, including Windows, Web,..NET, Java/J2EE, SAP, Siebel, Oracle, PeopleSoft, Visual Basic, ActiveX, mainframe terminal emulators, and Web services. 9. What is QTP? Quick Test is a graphical interface recordplayback automation tool. It is able to work with any web, java or windows client application. Quick Test enables you to test standard web objects and ActiveX controls. In addition to these environments, Quick Test Professional also enables you to test Java applets and applications and multimedia objects on Applications as well as standard Windows applications, Visual Basic 6 applications and.NET framework applications 10. Explain QTP Testing process? Quick Test testing process consists of 6 main phases: 11. Create your test plan Prior to automating there should be a detailed description of the test including the exact steps to follow, data to be input, and all items to be verified by the test. The verification information should include both data validations and existence or state verifications of objects in the application. 12. Recording a session on your application As you navigate through your application, Quick Test graphically displays each step you perform in the form of a collapsible iconbased Job Interview Question Articles C# Interview Questions and Answers QTP Interview Questions and Answers C++ Interview Questions and Answers PHP Interview Questions and Answers XML Interview Questions and Answers JavaScript Interview Questions and Answers Asp.Net Interview Questions and Answers J2EE Interview Questions and Answers ABAP Interview Questions and Answers Perl Interview Questions and Answers Java Interview Questions and Answers Resources Technology Question and Answer Website How to dance around the salaryexpectation question 10 mistakes managers make during job interviews Stupid interview questions How to Answer These Tricky Interview Questions Seven tips for writing an online profile for LinkedIn, MySpace or Facebook Tutorials AJAX Tutorials Dealing with your job Getting a job JavaScript tutorials Job interview tips from Yahoo! HotJobs MySQL tutorials Retiring from your job Ruby on Rails tutorials Salary guide for IT jobs Selfemployment TechInterviews guides in PDF Understanding pointers XML Tutorials XUL tutorials RSS Feeds All posts All comments

QTP Interview Questions and Answers _ TechInterviews

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?