Interview Questions

15
Bosch Interview Questions How would you click on a link (properties not known) in a Webtable? Objects Collection object (What is Object collection)? Example Code? How would you refer to an item in objects collection? What is the Type of Framework you used in your organization? What is your role in Framework design? VB script: How would you generate a random number? How do you merge objects in Object repository? How do you edit objects in Shared Object repository? Explain a problem that you faced while automating? How did you overcome? Have you ever used native properties of an object? What is the syntax? How will “focus” on an Object? How will you code on a Dynamic object? Whose properties are not known? Have you integrated QC with QTP? How would you find a broken link? Do you have any method for that? What is option Explicit? Why do you use that? What are the various methods of error handling in QTP? What is “on error resume next”? What is “on error goto 0”? How would you simulate a RightClick? How do you send keyboard input? Have you worked on databases in QTP? How do you launch an internet explorer, without QTP? How will you go to previous page on a browser?

Transcript of Interview Questions

Page 1: Interview Questions

Bosch Interview QuestionsHow would you click on a link (properties not known) in a Webtable?Objects Collection object (What is Object collection)? Example Code?How would you refer to an item in objects collection?What is the Type of Framework you used in your organization?What is your role in Framework design?VB script: How would you generate a random number?How do you merge objects in Object repository?How do you edit objects in Shared Object repository?Explain a problem that you faced while automating? How did you overcome?Have you ever used native properties of an object? What is the syntax?How will “focus” on an Object?How will you code on a Dynamic object? Whose properties are not known?Have you integrated QC with QTP?How would you find a broken link? Do you have any method for that?What is option Explicit? Why do you use that?What are the various methods of error handling in QTP?What is “on error resume next”?What is “on error goto 0”?How would you simulate a RightClick?How do you send keyboard input?Have you worked on databases in QTP?How do you launch an internet explorer, without QTP?How will you go to previous page on a browser?

Page 2: Interview Questions

CapGemini Interview Questions

How you validate the page is fully loaded?Yahoo page is opened in the two browsers, how will you compare the two yahoo page items are same?

Initially two button Save and Cancel are there recorded in the script,changes made in the Application and now the two button showing cancel label, without changing in the OR how you will click the save function in the button.

Application Page data is saved in two database simultaneously. how will you compare that the data are equal in the databases?

Page 3: Interview Questions
Page 4: Interview Questions

Hexaware Interview questionsWhat is the default running mode in QTP?What types of object repositories are available in QTP?In String Function String 1 = Hexaware, String 2 = awa,Instr(1,string1,string2)

What value of a and b will skip the msgbox statementHow to associate function libraries in QTP?What are the steps involved in Recovery Scenario?How to connect database in QTP? Explain the connection steps?What type of frame work are you using in your current project?Write a simple function for addition?What is test object model in QTP?How to create object for EXCEL?Will you use descriptive programming in your project? Write syntax for DP?How you will associate the shared OR for your script?How you will report your test case pass or fail? What is repoter event?Write an Excel function to copy all the rows and columns from 1 excel to another excel

Write a function to find the hours, mins and seconds from secondse.g. 3665 should return output 1 hr 1 min and 5 secondsIf a>b or b>aMsgbox (“Text”)End if

Write a function to sort the child objects in a table based on their class name first then the logical name of the objects.e.g where a table contains radio button, checkbox, textfield, list box etc.

Page 5: Interview Questions

Syntel Interview QuestionsWhat frame work did you use? What did you do in the Framework?If there are 10 Actions, How do you run 7th action, but not other actions?How do you make a testscript iterate multiple times? Very simpleWhat is Local Object Repository, What is Shared Object Repository? What s the difference? Which one do you prefer?

Page 6: Interview Questions

TCS Interview QuestionsExplain your FrameworkList all the Challenges faced in my project while using QTPExplain Recovery ScenariosHow many scripts you execute per day?Automation life cycle - What is your part in it?Diff between keyword driven and data driven framework?Write a script for Recovery scenario?Write Framework Structure?where should be framework files saved?How to protect Actions in the framework files?Where Recovery Scenario Manager available in QTP?Will it (Recovery Scenario Manager) accept two same name Testing process for Automation?

write a vbscript code to find factorial of n?

Write a vbscript code for the user to select add or avg operation of the following numbers 7,9,10,15,17. based on this i should get result of the above numbers.

Page 7: Interview Questions

Virtusa Interview QuestionsIf Requirement is continously changing how you will automate?What are the folders available in your framework?What is descriptive programming ?Diff between OR manager and OR?Write a Sript for login page in Descriptive programming & By using OR?Steps present in Recovery Scenario?Write a Function for Edit field?

Page 8: Interview Questions

WRITTEN ROUNDWhat is absolute and relative path?a=1234567,Try to add the sum of a?

A Excel sheet having column A With 500 records with duplicates Value,try to write the in next column b with out duplicates?.What is Modular Framework? What is keyword driven framework?What is Data Driven framework ?Is the Keyword driven framework is used only for marketing team ,Having any scope for developers?How to Associate a function at runtime?How will you call a functionIs it possible to add Add-ins at runtimeWhat are the ways you'll use for reporting?How to capture a Desktop?How to find the directory path?

TECHNICAL ROUNDWhat is your project and what is your role there? How do you go about testing your applicationWhere do you use QTP/Automation in your projectWhy for regression alone and not for other testing?What concepts you are strong in QTPIn my application the properties keep changing? so how will you test it?How will you use regular expresion for windows987 windows777 windows378What testing methodology you use in your project?

Syntax to connect to databaseSyntax to get the count of links from an MSN pageDifference between child object and child itemWhat is the role of Object Repository ManagerWhich technology your application is built onHow many AddIns are there in QTPWhat are the AddIns that you knowSome objects in your application is not being recognized by QTP, what will you do?I heard infosys is using a framwork, do you work on that?What are the different fameworks that you are aware of ?What is the difference betwen data driven framework and keyword driven framework?Have you heard of BPTDo you Know desciptive programming? write a syntax for itHow will you choose a candidate for auomation?What is the challenge you have faced in automation?

String A=AAaA , String B=a,String C=A,what is the ouput for Print instr(String A,String B),Print instr(String A,String C)if i want to get output as 1 and 4 What will the parameter changed in the above print line.

ScenarioI have an application to test from Infosys for which need to fetch data from TCS data base and it also interacts with some interface in CTS. Will you automatesuch an application ?

Why ? complexity involved in the process and Information security constraints that will make the testing process slowerClient wants to automate the process, what would you do?

Page 9: Interview Questions

What is the latest version of QTP that you are aware ofWhat is the feature available in it?Which version of QC you are using ?Types of Recording Modes? When to use analog mode?QTP 10.0 Features?What is Virtual Object?What is Object Spy?Difference between Function and Sub Routine?What is functions?Write a Function for calling a WebLink?Write a script for Login>When to Automate and What to Automate?How to pass value to application?Whether QTP supports Google Chrome?What is Object Repository? How to modify Objects in OR?What FrameWork do you use in Your Organization?How many scripts you Executed so for?Difference between Normal VB script and QTP VB script?

Page 10: Interview Questions

A Excel sheet having column A With 500 records with duplicates Value,try to write the in next column b with out duplicates?.What is Modular Framework? What is keyword driven framework?What is Data Driven framework ?Is the Keyword driven framework is used only for marketing team ,Having any scope for developers?

Page 11: Interview Questions

L&T QTP Interview QuestionsWhat is WSH?QTP Test Script Extention?Difference between vbs & qfl?Write and explain your frame work?Your role in the frame work?Can we export qtp test script from one machine to another machine? How?Have your worked in recovery scenario?Default delay timing?Two types of Object repository?Difference between action and function?How to ensure that text area is accepting 50 characters?Challenges you faced in QTP?How to run 10 tests automatically?WebButton and WebEdit methods?

What is Test Object ModalLevels of Object Identification. Why can't we directly go for Ordinal Idenfication for all the objectsWe have a excel file with 180 columns. Write a code to trasfer data from one excel sheet to other.When to use Exception Handling & when to use Recover ScenarioHow function will return a valueExplain String Functions and syntax for split functionTypes of ActionsExplain your framework and any function libraries you have created in your frameworkDifference between Sanity and Smoke testingUsing FSO, create a notepad file and write a sample text

Page 12: Interview Questions

SQL RelatedSQL JoinSQL Like

GeneralWhy you shifting your current Organization?What are all your Roles and Responsibilites?How long you working with QTP?