Software Testing Interview Questions At IVY Comptech,Hyderabad

STE position for 2+ exp guy.Total 1 round he attended and it took 40 min around to cover all the basic topics on manual and automation testing.Interviewer was very cool and he is more comfortable with manual testing and concerned about the process and the real time life cycle.

  1. Tell me about yourself?
  2. Your current project architecture.
  3. What is White box & Black box?Diff b/w them?
  4. How QTP recognizes the objects?
  5. What if the object properties change compared to recording?Run fails?
  6. Given a simple election application form and asked to write min number of functional test cases to cover the whole form functionality?
  7. Why automation?What do you get from it?
  8. How to reduce the project budget?
  9. When we need to go for descriptive programming in QTP?

What are Test Objects?

Objects that are used in the recording and their properties are stored in the Object Repository. These stored objects are called test objects. The test objects represent objects of the application in the test. During a test run, QuickTest uses these test objects
to identify objects in the application.

You can delete objects from the Object Repository. You can add or remove properties of an object and change the values of those properties.

image

Test objects can be stored in two types of object repositories: shared and local. By default, the test objects are stored in the local object repository. These test objects are associated with a specific action and no other action can access these objects.

  • You can choose to store your objects in the shared object repository, which can be accessed by multiple tests.
  • Test objects are different from Run-time objects.You can all these properties in Object Spy.

What is Object Spy? How to use it?

The Object Spy feature enables you to view the properties and their current values as
well as methods associated with an object. Object Spy also enables you to view the
syntax for a selected method.

image

Navigation:

  1. On the QuickTest Professional toolbar, click OBJECT SPY.
  2. Select TOOLS → OBJECT SPY.

To view the run-time properties of an object using the Object Spy:

1. On the QuickTest Professional toolbar, click OBJECT SPY. The OBJECT SPY dialog
box appears.
Note: Alternatively, select TOOLS → OBJECT SPY.
2. In the OBJECT SPY dialog box, click the pointing hand button.
3. With the pointing hand, click on the desired object in the AUT.
4. In the OBJECT SPY dialog box, click the PROPERTIES tab to view the properties of
the selected object.

Imp Note:

  • Test object properties of the actual object are available for all types of objects. This is what you always see in the
    Object Repository. The list shows values when the object was learned.
  • Run-time properties are available for Web, ActiveX, .Net, and Java objects. These may be different from the test
    object properties because object properties change during run-time.

Testing Interview Questions at Sapient,Bangalore

Some of the questions asked for 2+ guy for QA position at Sapient,A CMM Level company.Total 5 rounds at the company including 3 Technical on manual and automation testing and 2 HR rounds.

1. What will happen if i select all the add-ins in QTP at a time?

Answer: Select only the add-ins that you need for the current test. Selecting all available add-ins can cause QuickTest
Professional internal inconsistencies which may lead to test failures.

2. What are the default and optional add-ins available in QTP?

Answer:

Default:ActiveX,Visual Basic and Web

Optional: The optional add-ins include Java, .NET, Oracle, PeopleSoft, SAP, Siebel, Terminal Emulator, Visual Age Smalltalk
and Web Services.

3. Differences between Global and Action sheets in Data table?

Answer: Simple difference here b/w these two is:

Global Sheet:Can be accessible for all the actions in the entire Test.

Action Sheet: Will be accessible only for that action.Other actions can’t use data in this action sheet.

4. What is Active Screen?

5. Why we need Automation testing?

6. Diff b/w QTP & Win Runner?

7. In how many ways you can insert check points.

Answer: We can insert check points in 4 ways: Through Insert menu,Right click in Keyword View,Right click in Expert view,Right click in Active screen.

8. General Elements/Options in a bug report?

9. What test plan should contain?

10. Diff b/w Test Plan and Test Strategy?

Hope this help you some way! Don't forget subscribe to get daily interview questions by mail.

QTP Interview at ProKarma,Hyderabad

Hello Guys,

Here are some of the questions asked at ProKarma company,Hyderabad.The post was for a 2+exp guy with atleast 1 year QTP experience.

Questions:
  1. Tell me about your self?
  2. What framework you use in your project?
  3. How do you connect QTP with Database?
  4. How do you connect QC & QTP?
  5. Rate yourself in VB Scripting from 1 to 5 ?
  6. How often you do descriptive programming in your project?
  7. Most difficult bug you found in your project?
  8. If i give you a project and ask to start from today.And you will be only the person in project.How would you start the day?
  9. In how many ways you can play with Synchronization point in your script?
  10. Can you write a script to fill the username and password fields in an application?
  11. What is the Object Repository maximum size?
  12. Why do we need descriptive programming?though we have record and playback.
  13. Why you are looking for a change?
Well these are questions i gathered from the person who attended this interview.He said interviewer was very cool and asked simple questions.He concentrated more on Descriptive programming with VB Script.

Hope you enjoyed! And useful for you!

Don't miss any article:Get it by E-mail

Database Checkpoint and Workflow in QTP?

You can use an application to retrieve data from a database or to insert data into the
database. Database checkpoints in a test enable you to ensure that the application
successfully retrieves or inserts data into a database.

A database checkpoint stores the expected data and compares the expected data with the
data stored in the database. You use a database checkpoint to confirm that the data
stored in a database has not introduced errors in the application.


When executing a database checkpoint, the following events occur:
1. The test arrives at the database checkpoint step and connects to the database.
2. QuickTest sends a query to the database to retrieve the actual data.
3. QuickTest gathers the result set of the query, which provides the actual data.
4. QuickTest compares the actual data with the expected data, which is stored in the database checkpoint, to determine if the test passed or failed.

What is a custom checkpoint?

A custom checkpoint is used to capture and verify dynamic values by using output
parameters, setting the checkpoint on a property of the parameter field, validating
the outcome of a test as acceptable or unacceptable using conditional statement, and
applying REPORTEVENT to report if the outcome is acceptable.

 

You use a custom checkpoint to:

  • Verify dynamic values in the test using output parameters.
  • Validate the test outcome as acceptable or unacceptable by using a conditional
    statement.
  • Add a REPORTEVENT to report if the test outcome is acceptable.

What are Break Points in QTP?

Break Point: Stops a test run at a specific step in the test. A red icon appears in the left margin of the step to indicate that a breakpoint is inserted on the step. The test runs until it reaches the breakpoint. You can examine or manipulate steps up to the breakpoint.

Insert/Remove BreakPoint: Debug menu->Insert/Remove BreakPoint (F9)

Enable/Disable BreakPoint: Debug menu->Enable/Disable BreakPoint (Ctrl+F9)

Clear All BreakPoints: Debug menu->Clear All BreakPoints (Ctrl+Shift+F9)

Enable/Disable All BreakPoints: Enables or disables all breakpoints within a test.

What are Step Into,Step Over and Step Out in QTP?

STEP INTO: Runs the current step of the active test. If the current line calls another
action, the called action is displayed. The test pauses at the first line of the called
action.


STEP OVER: Runs the current step in the active test. When the current step calls
another action, the called action is executed but not displayed.


STEP OUT: Runs the current step until the end of the function, returns to the calling
component or function library, and then pauses the run session.


Don't miss any article:Get it by E-mail

Benefits of Automated Testing

Automated testing enables you to optimize software quality, accelerate the testing
process, and increase the testing efficiency.

Automated testing offers the following advantages that are not offered by manual
testing:
  1. Reusability: The tests that you automate can be reused during different phases ofthe testing process.
  2. Consistency: Automated tests provide the same test results every time. Therefore,you use automated tests for regression testing.
  3. Productivity: Automated testing enables you to run tests unattended. Therefore,human resources that are otherwise involved in the testing process can be used for accomplishing other tasks and the overall testing productivity of your organization increases.
Don't miss any article:Get it by E-mail

QTP Step Generator Functions

QTP Step Generator Functions:GetROProperty,GetTextLocation,GetTOProperties,GetTOProperty,SetTOProperty

These are most important and confusing to everyone.so here am sharing you in easy way with syntax and examples too.

GetTOProperties:Returns properties and values which QTP has recorded and will use to identify an object at run time

Syntax: set a=Window("Flight Reservation").WinRadioButton("Business").GetTOProperties

GetTOProperty:It will Return the value of a particular property for a test object which QTP recorded to identify an object during Run time. The value is taken from the Object Repository.

Syntax: set a=Window("Flight Reservation").WinRadioButton("Business").GetTOProperty

GetROProperty: It will Return the current value (run time value) of the test object property from the object in the application.GetROProperty retrieves the current property value of the object in the application during the test run.

Syntax: set a=Window("Flight Reservation").WinRadioButton("Business").GetROProperty

Detailed explanation with example is there here.

SetTOProperty: Sets the value of the specified property in its test object description.It helps to Modify Test Object Properties During a Run Session.

You can modify the properties of the temporary version of the object during the run session without affecting the permanent values in the object repository by adding a SetTOProperty statement in the Expert View.

Syntax:Object(description).SetTOProperty Property, Value

GetTextLocation: Checks whether the specified text string is contained in the specified window area.

Syntax:object.GetTextLocation (TextToFind, Left, Top, Right, Bottom, [MatchWholeWordOnly])

Hope you enjoyed knowing all these.Subscribe to my feeds to get daily updates on testing.

Advertisement:Zoom Into Tech & Blogging tips at TechZoomIn

QTP Certification Sample Q & A’s

1) The new Object Repository Comparison Tool is
accessible from the Object Repository Manager. You can
use this tool to identify the differences between
objects in ........
A) two specified shared object repository files.
B) a Shared and a Local object repository files.
C) either Shared or Local object repository files.
D) two specified Local object repository files.


2) You can use the objects and methods of the
QuickTest .................... to write scripts that
automatically manipulate object repositories, instead of
performing these operations manually using the Object
Repository Manager.
A) Automation object model
B) Object Repository automation object model
C) Object Repository model
D) Object Repository Script Object model


3) You must convert object repository files from
QuickTest Professional 8.2.1 or earlier to the current
format before you can use them in QuickTest Professional
9.0 or later. Which method lets you do so.
A) Conversion method
B) Converge method
C) Convert method
D) None


4) You open the Object Repository window for a
specific component by choosing ..........
A) Resources > Object Repository
B) Tools > Object Repository
C) File > Object Repository
D) Help > Object Repository


5) In QTP 9 or above, Test objects can be stored in
two types of object repositories—........
A) a shared object repository and a Per-Action object
repository.
B) a shared object repository and a local object
repository.
C) a shared object repository and a Action object
repository.
D) Both A & C


6) The Object Repository Manager enables you to open
...... shared object repositories and modify them as
needed
A) multiple
B) three
C) two
D) Seven


7) ........ Method Loads the specified object
repository.
A) Overload
B) Load
C) Both A & B
D) None


8) An object repository that is currently open by
another user is locked, is it possible to merge a locked
object repository.
A) Yes
B) No


9) You can manage the shared object repository
associations of a selected test using the ............
A) Associate Repositories dialog box
B) Object Repositories dialog box
C) Associate Repositories Manager dialog box
D) Object Repositories Manager dialog box


10) All changes you make to an object repository are
automatically updated in all components open on the same
computer that use the object repository as soon as you
make the change—even if you have not yet saved the
object repository with your changes.
A) True
B) False


11) If you want to modify an object stored in a shared
object repository, you can modify it.......
A) using the Object Repository Manager
B) you can modify it locally using the Object Repository
window.
C) Both A & B
D) None of above


12) ................ Returns an ObjectRepositories
collection representing all object repository files
associated with the action.
A) Object Property
B) Automation Object Model
C) ObjectRepositories Property
D) OR PropertyAnswers


Answers:
1) a 2) b 3) c 4) a 5) b 6) a 7) b 8) a 9) a 10) a 11) c 12)c

50 QTP Certification Q & A’s

1. The toolbar enables you to view the details of an individual action or the entire test flow is
1. Testing toolbar
2. None of the above
3. Action toolbar
4. Test Pane
ANSWERE: 3
2. The key that is used to Start/End analog recording mode ?
1. F3
2. SHIFT+ALT+F3
3. CTRL+SHIFT+F3
4. F10
ANSWERE: 2
3.QuickTest supports virtual object for anolog or low-level recording.
1. False
2. True
ANSWERE: 1
4. To use a specific property to identify your object, but that property is not listed in the properties list. Then how do you identify that object?
1. Add the specific property to the list
2. Use the Default property
3. Use some other property to identify your object
ANSWERE: 1
5. The checkpoint used to check the alt attribute exists for all relevant objects (such as images) is
1. DataBase CheckPoint
2. Accessibility checkpoint
3. Bitmap checkpoint
4. Standard checkpoint

ANSWERE: 2

6. Bitmap checkpoint is supported in VB environment.
1. True
2. False
ANSWERE: 1
7.Can we parameterize the checkpoints properties?
1. No
2. Yes
ANSWERE: 2
8. What is the shortcut key that is used for a Standard Checkpoint?
1. F12
2. F2
3. F10
4. F7

ANSWERE: 1

9.Can we change name of checkpoint?
1. No
2. Yes

ANSWERE: 1

10. To compares the values of the specified property during a run session with the values stored for the same test object property within the test.
1. Checkpoint
2. All the above
3. Output Value
4. Compare the object property
ANSWERE: 1
11. You will use the recording mode for an object not recognized by QuickTest.
1. Low-Level Recording Mode
2. Normal recording Mode
3. Analog Mode
ANSWERE: 1
12. The statement that calls the recorded analog file is
1. RunAnalog
2. CallAnalog
3. ExecuteAnalog

ANSWERE: 1

13. An action can be called by other tests or actions is
1. Call Action
2. Split Action
3. Reusable Action
ANSWERE: 3

14. You can replace the page in your Active Screen tab
1. False
2. True

ANSWERE: 2

15. QuickTest adds a checkpoint statement in the Expert View as
1. Check Checkpoint
2. Checkpoint
ANSWERE: 1
16.A Checkpoint checks that a text string is displayed within a defined area in a Windows application is
1. Accessibility
2. Text Area
3. Standard
4. Text
ANSWERE: 2
17. In ActiveX environment an “Accessibility checkpoint” is supported.
1. No
2. Yes

ANSWERE: 1

18. Can we get the execution time for an action in a Test.
1. Yes
2. No

ANSWERE: 1

19. Can we add external library files in QTP?
1. No
2. Yes
ANSWERE: 2
20. The method used to get data from HTML Table is
1. GetData(Row,Col)
2. GetRowValue(Rowid,Colname)
3. GetCellData (Row,Col)

ANSWERE: 3

21.The Command used to insert the transactions in test is,
1. StartTransaction(“Name”), EndTransaction(“Name”)
2. Services.StartTransaction "Name", Services.EndTransaction "Name"
3. StartTransaction.services "Name”, EndTransaction.services "Name”

ANSWERE: 2

22. A step in which one or more values are captured at a specific point in your test and stored for the duration of the run session is
1. Output Value
2. Checkpoints
3. Active Screen
ANSWERE: 1
23. QuickTest can detects an application crash and activate a defined recovery scenario to continue the run session.
1. True
2. false
ANSWERE: 1
24. In Batch Test process, the test list are saved in file format as,
1. *.mtb
2. *.mts
3. *.mbt
4. *.mtr
ANSWERE: 1
25.The command used to invoke other application from QTP,
1. InvokeApplication
2. SystemUtil.Run
3. Run
4. Both b & c
5. Both a & b

ANSWERE: 5

26.The command used to retrieve data from excel sheet is
1. Set ab = Connection("srcfilepath ") , Set ws = ab.getdata(sheetid)
2. Set ab = CreateObject("srcfilepath ") , Set ws = ab.getsheet(sheetid)
3. Set ab = GetObject("srcfilepath") , Set ws = ab.worksheets(sheetid)

ANSWERE: 2

27. The method that explicitly activates the recovery scenario mechanism is,
1. recovery.activate
2. enable
3. recovery.enable
4. activate

ANSWERE: 1

28. The method used for sending information to the test results.
1. Reporter.log()
2. Reporter.reportevent()
3. Reporter.msgbox()
4. Reporter.report()

ANSWERE: 2

29.To terminate an application that is not responding we use,
1. SystemUtil.terminate
2. SystemUtil.Stop
3. SystemUtil.CloseProcessByName

ANSWERE: 3

30.The recovery mechanism does not handle triggers that occur in the last step of a test
1. false
2. True

ANSWERE: 2

31. We can add Test object methods, function calls into the Test using
1. Function generator
2. Step generator
3. Object repository
ANSWERE: 1
32. The method that adds to the test while implementing Synchronization is
1. Synchronize
2. Wait
3. WaitProperty
4. Pause

ANSWERE: 3

33. The mechanism used to identify objects during run session is
1. Recovery scenario
2. Smart identification
3. Handling object

ANSWERE: 2

34.Post-recovery test run options specifies
1. how to continue the run session after QTP identify the event
2. errors while running
3. recovery scenario during a run session
ANSWERE: 1

35. The action that can be called multiple times by the test as well as by other tests is called
1. non-reusable action
2. Reusable action
3. External action

ANSWERE: 2

36. The command used to connect with Database is
1. Createobject(“connectivity name”)
2. dbconnect(“connectivity name”)
3. open(“connectivity name”)
4. None of the above

ANSWERE: 1

37. The method used to retrieve the folders is
1. FileSystemObject.Getfolder()
2. FileSystemObject.selectfolder()
3. FileSystemObject.retrievefolder()

ANSWERE: 1

38. The method used to compare 2 XML files is:
1. XMLfile1.compare(XMLfile2)
2. XMLcompare(file1,file2)
3. compare(XMLfile1,XMLfile2)

ANSWERE: 3

39. The QTP script files are stored in the extension of
1. *.mts
2. *.usr
3. *.mtr
4. *.vbs

ANSWERE: 1

40. The method used to register the user-defined function with test object is
1. setFunc()
2. RegisterUserFunc()
3. RegisterFunc()
ANSWERE: 2
41. The method used to open the specified URL in a browser is
1. openURL()
2. navigateURL()
3. navigate()
ANSWERE: 3
42. The 3 Parameter types available in data driver is
1. DataTable,Environment,Random number
2. DataTable,random number,unique
3. environment,string,numeric

ANSWERE: 1

43. The method added to the test while parameterizing is
1. get Data (variable, dtGlobalSheet)
2. get DataTable(variable, dtGlobalSheet)
3. Set Data(variable, dtGlobalSheet)
4. Set DataTable(variable, dtGlobalSheet)

ANSWERE: 4

44. The length of the array can be get by the method
1. length(array)
2. ubound(array)
3. count(array)
ANSWERE: 2

45. The method used to get the count value of list box or combo box os
1. GetItemsCount
2. GetCount
3. GetItemCount
ANSWERE: 1
46. To retrieve the current property value of the objects in your application during the run session.
1. GetVisibleText
2. GetROProperty
3. SetROProperty
4. GetTOProperty

ANSWERE: 2

47. In data base check point we can not set the expected value from the test?
1. True
2. False
ANSWERE: 2
48. The list of test objects and their properties and values are stored in the
1. Object Repository
2. Object Identification
ANSWERE: 1

49. The method used to continue the test execution after getting run-time error is
1. On Error Resume Next
2. On Error Raise Next
3. On Error Next

ANSWERE: 1

50.Object repository file extension is?

1.  .Obj
2.  .Orf
3.  .Tsr

ANSWERE: 3

Enjoyed! Make sure you subscribe to TJG.

QTP Interview Questions

  • If I give some thousand tests to execute in 2 days what do u do? - Adhoc testing is done. It Covers the least basic functionalities to verify that the system is working fine.
  • What does it mean when a check point is in red color? what do u do? - A red color indicates failure. Here we analyze the cause for failure whether it is a Script Issue or Environment Issue or a Application issue.
  • What is Object Spy in QTP? - Using the Object Spy, you can view the properties of any object in an open application. You use the Object Spy pointer to point to an object. The Object Spy displays the selected object’s hierarchy tree and its properties and values in the Properties tab of the Object Spy dialog box.
  • What is the file extension of the code file & object repository file in QTP? - Code file extension is.vbs and object repository is.tsr
  • Explain the concept of object repository & how QTP recognizes objects? - Object Repository: displays a tree of all objects in the current component or in the current action or entire test (depending on the object repository mode you selected). We can view or modify the test object description of any test object in the repository or to add new objects to the repository. Quicktest learns the default property values and determines in which test object class it fits. If it is not enough it adds assistive properties, one by one to the description until it has compiled the unique description. If no assistive properties are available, then it adds a special Ordinal identifier such as objects location on the page or in the source code.
  • What are the properties you would use for identifying a browser & page when using descriptive programming? - Name would be another property apart from title that we can use.
  • Give me an example where you have used a COM interface in your QTP project? - com interface appears in the scenario of front end and back end. for eg:if you r using oracle as back end and front end as VB or any language then for better compatibility we will go for an interface. of which COM will be one among those interfaces. Create object creates handle to the instance of the specified object so that we program can use the methods on the specified object. It is used for implementing Automation(as defined by Microsoft).
  • Explain in brief about the QTP Automation Object Model. - Essentially all configuration and run functionality provided via the Quick Test interface is in some way represented in the Quick Test automation object model via objects, methods, and properties. Although a one-on-one comparison cannot always be made, most dialog boxes in Quick Test have a corresponding automation object, most options in dialog boxes can be set and/or retrieved using the corresponding object property, and most menu commands and other operations have corresponding automation methods. You can use the objects, methods, and properties exposed by the Quick Test automation object model, along with standard programming elements such as loops and conditional statements to design your program.
  • Interview Questions at ADP,Hyderabad

    Following are the interview question gathered from different people who attended the interview recently.Thanks to all of them who sent questions to TJG.

    The opening was for QTP professional and interview digged deeply into QTP and VB Script.

    1. Frameworks at QTP?
    2. What is Object Repository?
    3. Extension for Object Repository file?
    4. Diff b/w call to existing action and call to copy of action?
    5. What is split action?
    6. Explain a critical bug you found in automation?
    7. How will you integrate QC & QTP?
    8. What is Test Plan?
    9. Diff b/w Test Plan & Test Strategy?
    10. Diff b/w QTP & Win runner?
    11. Check points and explain each of them?
    12. Why step generator?

    And many more like this. According to the sources I heard, interviewer mainly concentrating on the projects done using QTP and VB Script knowledge.

    Enjoy Reading!