By default, how many no of tables would be there in a script?
-
One
-
Two
-
Three
-
Four
In QTP scripts, there are two tables by default: the Local DataTable (for test-specific data) and the Global DataTable (for shared data across tests). These are part of the Data Table structure used for data-driven testing.
To answer this question, let's understand the concept of tables in a script.
In a script, there can be multiple tables that are used to store and organize data. However, by default, there is usually one table created when a script is initialized.
Option A) One - This option is incorrect because although there is typically one table by default, it is not the only table that can be present in a script.
Option B) Two - This option is correct because by default, there is usually one table created when a script is initialized. Additionally, there may be another table created for specific purposes or based on the requirements of the script.
Option C) Three - This option is incorrect because there is typically only one table created by default in a script. Additional tables may be added as needed, but they are not created by default.
Option D) Four - This option is incorrect because there is typically only one table created by default in a script. Additional tables may be added as needed, but they are not created by default.
The correct answer is Option B) Two. This option is correct because by default, there is usually one table created when a script is initialized, and there may be another table created for specific purposes or based on the requirements of the script.