Tag: testing

Questions Related to testing

  1. A. For..Next, Select…..Case, Do…Loop

  2. B. If…EndIf, For…Next, While…Wend

  3. C. Do…loop, while…wend, select..case

  4. D. Do..while, While…End, For…next


Correct Option: D
  1. A. Action Settings

  2. B. Action Properties

  3. C. Action Run Settings

  4. D. Action Call Properties


Correct Option: B
  1. A. Local

  2. B. Global

  3. C. Run-time Data Table

  4. D. Design-time Data Table


Correct Option: B
  1. A. Action Settings

  2. B. Action Properties

  3. C. Action Run Settings

  4. D. Action Call Properties


Correct Option: D
  1. A. The SQL query

  2. B. The identification number of the database

  3. C. The number of rows returned from the query

  4. D. The connectionstring used to connect to the database


Correct Option: A
  1. A. Pop-up window, object state, VBScript event

  2. B. Object State, VBScript event, Application crash

  3. C. Pop-up window, object state, test run error, QTP crash

  4. D. Pop-up win


Correct Option: C

If you have a Virtual Object Collection stored on your machine, and you don't want to use it, what must you do?

  1. A. Disable Virtual Objects in Test Settings

  2. B. Remove the Collection from your machine

  3. C. Disable Virtual Objects in General Options

  4. D. Remove the Collections from the Resources list


Correct Option: C

AI Explanation

To answer this question, you need to understand how virtual object collections work and how to disable them. Let's go through each option to understand why it is correct or incorrect:

Option A) Disable Virtual Objects in Test Settings - This option is incorrect because disabling virtual objects in test settings only affects the specific test or action being executed. It does not permanently disable virtual object collections on your machine.

Option B) Remove the Collection from your machine - This option is incorrect because removing the collection from your machine is not necessary to disable virtual objects. Virtual object collections can still be disabled without removing them.

Option C) Disable Virtual Objects in General Options - This option is correct because disabling virtual objects in the general options settings will globally disable virtual object collections on your machine. This means that virtual objects will not be recognized or used during test execution.

Option D) Remove the Collections from the Resources list - This option is incorrect because removing the collections from the resources list does not disable virtual objects. It only removes the references to the collections, but the virtual objects can still be recognized and used.

The correct answer is C) Disable Virtual Objects in General Options. This option is correct because it globally disables virtual object collections on your machine, ensuring that they are not used during test execution.

  1. A. A Do Loop

  2. B. Recovery Scenario

  3. C. IFHEN statement

  4. D. Selectase statement


Correct Option: B
Explanation:

To handle unpredictable testing exceptions, one can use recovery scenarios.

Option A, Do Loop, is a programming construct used to execute a block of code repeatedly. It is not relevant to handling unpredictable testing exceptions.

Option B, Recovery Scenario, is a feature of automation testing tools that allows you to define a set of actions to be taken when a particular exception or error occurs during test execution. This option is the correct answer.

Option C, IFTHEN statement, is a conditional statement used in programming to execute a block of code based on a particular condition. It is not directly relevant to handling unpredictable testing exceptions.

Option D, Selectase statement, is not a valid programming construct or feature of automation testing tools.

Therefore, the correct answer is:

The Answer is: B. Recovery Scenario.