Tag: testing

Questions Related to testing

As a result of a change in the system under test, a new revision of the system, Sn+1, contains a defect not present in revision Sn, the quality of the system has progressed: True or False

  1. True

  2. False


Correct Option: B

In QTP which method is used to retrieve data from HTML TABLE?

  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

Where the Checkpoint information will be stored in QTP

  1. Shared repository & Function Library

  2. Shared Repository

  3. Local Repository

  4. Function library


Correct Option: C
  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)

What Specifies the time interval (in seconds) during which QuickTest attempts to perform the checkpoint successfully.

  1. Text Checkpoint timeout

  2. Check Method timeout

  3. Standard Checkpoint timeout

  4. Checkpoint timeout


Correct Option: D

AI Explanation

To answer this question, we need to understand the concept of checkpoints in QuickTest.

In QuickTest, a checkpoint is a validation point that compares the expected value of a property or attribute with the actual value during a test run. It helps to verify that the application or website under test is functioning correctly.

The time interval during which QuickTest attempts to perform the checkpoint successfully is specified by the "Checkpoint timeout". This is the duration in seconds that QuickTest will wait for the checkpoint to pass before considering it as a failure.

Let's go through each option to understand why it is correct or incorrect:

Option A) Text Checkpoint timeout - This option is incorrect because it specifically mentions "Text Checkpoint", which is a type of checkpoint and not the overall timeout for checkpoints.

Option B) Check Method timeout - This option is incorrect because it does not refer to the timeout specifically for checkpoints. It may be related to the timeout for a specific method or action in QuickTest.

Option C) Standard Checkpoint timeout - This option is incorrect because there is no specific "Standard Checkpoint timeout" in QuickTest. The timeout for checkpoints is generally referred to as the "Checkpoint timeout".

Option D) Checkpoint timeout - This option is correct because it specifies the time interval during which QuickTest attempts to perform the checkpoint successfully. It is the overall timeout for checkpoints in QuickTest.

Therefore, the correct answer is option D - Checkpoint timeout.

Which of the following statement will be executed without any error?

  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