Tag: testing

Questions Related to testing

  1. GetCellData (Row,Col);

  2. GetRowValue (Rowid,Colname);

  3. GetData (Row,Col);

  4. GetCellValue (Row,Col);


Correct Option: A

In QTP, what command is used to insert the transactions in test?

  1. Services.StartTransaction "Name", Services.EndTransaction "Name";

  2. StartTransaction.Services “Name”,EndTransaction. Services "Name";

  3. StartTransaction ("Name"), EndTransaction ("Name");

  4. Services.StartTransaction "Name", EndTransaction. Services "Name";


Correct Option: A

AI Explanation

To answer this question, you need to understand how to insert transactions in a test in QTP (QuickTest Professional).

The correct command to insert transactions in a test in QTP is:

A. Services.StartTransaction "Name", Services.EndTransaction "Name";

This option is correct because it uses the correct syntax to start and end a transaction. The StartTransaction command is used to begin a transaction with a specified name, and the EndTransaction command is used to end the transaction with the same name.

Option B is incorrect because it uses the incorrect syntax for starting and ending a transaction. The StartTransaction and EndTransaction commands should be called on the Services object, not the other way around.

Option C is incorrect because it uses parentheses incorrectly. The correct syntax does not require parentheses around the transaction name.

Option D is incorrect because it swaps the order of the StartTransaction and EndTransaction commands. The StartTransaction command should come before the EndTransaction command.

Therefore, the correct answer is A. Services.StartTransaction "Name", Services.EndTransaction "Name".

The file extension of Shared object repository file and Local object repository file are

  1. .TSR and .QRS

  2. .QRS and .MTR

  3. .TSR and .MTR

  4. .MTR and .QFL


Correct Option: C
Explanation:

To solve this question, the user needs to have knowledge about automated testing tools and file extensions used in them.

The correct option is:

C. .TSR and .MTR

Explanation:

In automated testing tools like UFT (Unified Functional Testing), shared object repository and local object repository are used to store object information.

  • Shared Object Repository (SOR) file stores information about the objects that are common for multiple tests. The file extension of the Shared Object Repository file is .TSR (Test Shared Repository).

  • Local Object Repository (LOR) file stores information about the objects that are specific to a particular test. The file extension of the Local Object Repository file is .MTR (Mercury Test Results).

Therefore, the correct answer is option C, .TSR and .MTR.

  1. dtglobalsheet

  2. dtglobalsheet and Global

  3. dtGlobal and dtglobalsheet

  4. dtGlobal AND Global


Correct Option: B
  1. Shared repository & Function Library

  2. Shared Repository

  3. Local Repository

  4. Function library


Correct Option: C

In QTP, which Checkpoint is being used for verifying the web page with W3C standard?

  1. Bitmap checkpoint

  2. Standard checkpoint

  3. Accessibility checkpoint

  4. XML checkpoint


Correct Option: C
Explanation:

To solve this question, the user needs to have knowledge about QTP and its various types of checkpoints. The user needs to know the purpose of each checkpoint and how they are used to test web pages.

Now, let's go through each option and explain why it is right or wrong:

A. Bitmap checkpoint: This checkpoint compares the bitmap of the actual and expected images, so it is used to verify the graphical elements of the web page. It is not used for verifying the web page with the W3C standard.

B. Standard checkpoint: This checkpoint verifies the property values of an object on a web page. It can be used to check the compliance of the web page with W3C standards, but it is not specifically designed for this purpose.

C. Accessibility checkpoint: This checkpoint is used to verify the accessibility of a web page for users with disabilities. It includes checking the compliance of the web page with W3C accessibility guidelines, which are related to W3C standards. So, this checkpoint is the correct option for verifying the web page with W3C standard.

D. XML checkpoint: This checkpoint verifies the content of an XML document. It is not used for verifying the web page with W3C standard.

The Answer is: C (Accessibility checkpoint)

  1. Text Checkpoint timeout

  2. Check Method timeout

  3. Standard Checkpoint timeout

  4. Checkpoint timeout


Correct Option: D
  1. Browser("Ultimatix GetConnected").Page("Ultimatix GetConnected").WebEdit("employeeNumber").Set "000000"

  2. Browser("title:=Ultimatix - Get Connected !").Page("title:=Ultimatix - Get Connected !").WebEdit("name:=employeeNumber").Set "000000"

  3. Browser("title:=Ultimatix - Get Connected !"). Page("title:=Ultimatix - Get Connected !"). WebEdit("employeeNumber").Set "000000"

  4. Browser("Ultimatix GetConnected").Page("Ultimatix GetConnected"). WebEdit("name:=employeeNumber").Set "000000"


Correct Option: C