Software Testing and QTP Descriptive Programming

Covers QTP descriptive programming techniques and fundamental software testing concepts including integration strategies, testing standards, code coverage, error guessing, and test planning.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Test reporting and defect management is the part of:

  1. test planning
  2. test execution
  3. both
  4. none of the above
Question 2 Multiple Choice (Single Answer)

Which one is not correct?

  1. Test plan is a contract between the testers and the project team and user describing the role of testing in the project
  2. Test Strategy is the plan for how you are going to run the test case
  3. The test plan should give information on software being tested, test objectives and risks and specific test to be performed
  4. Test planning can be started as soon as the time requirements definition starts
Question 3 Multiple Choice (Single Answer)

Error-Based testing seeks to demonstrate that:

  1. Certain errors are not committed in programming process.
  2. No errors were committed in test execution.
  3. No errors were observed in current release.
  4. The new release contains only the fixes for previous release bugs.
Question 4 Multiple Choice (Single Answer)

Error guessing is best used:

  1. a)       after more formal techniques have been applied
  2. b)       as the first approach to deriving test cases
  3. c)       by inexperienced testers
  4. d)       after the system has gone live
Question 5 Multiple Choice (Single Answer)

Consider the following statements: i. 100% statement coverage guarantees 100% branch coverage. ii. 100% branch coverage guarantees 100% statement coverage. iii. 100% branch coverage guarantees 100% decision coverage. iv. 100% decision coverage guarantees 100% branch coverage. v. 100% statement coverage guarantees 100% decision coverage.

  1. a)       ii is True; i, iii, iv & v are False
  2. b)       i & v are True; ii, iii & iv are False
  3. c)       ii & iii are True; i, iv & v are False
  4. d)       ii, iii & iv are True; i & v are False
Question 6 True/False

Acceptance testing is the demonstration that a system meets requirements

  1. True
  2. False
Question 7 Multiple Choice (Single Answer)

In order to reduce the time needed for regression testing which method(s) you can apply from the following:

  1. a. Automate if you can.
  2. b. Combine test cases.
  3. c. Designate some tests for periodic testing.
  4. d. All the above
Question 8 Multiple Choice (Single Answer)

The testing effort may not depend on the following factor:

  1. a. Characteristics of reported bugs
  2. b. Characteristics of the product
  3. c. Characteristics of the development process
  4. d. The outcome of testing
Question 9 Multiple Choice (Single Answer)

What is the main reason for testing software before releasing it?

  1. to show that system will work after release
  2. to decide when the software is of sufficient quality to release
  3. to find as many bugs as possible before release
  4. to give information for a risk based decision about release
Question 10 Multiple Choice (Single Answer)

Which of the following is NOT a standard related to testing?

  1. IEEE829
  2. IEEE827
  3. BS7925-1
  4. BS7925-2
Question 11 Multiple Choice (Single Answer)

which of the following statements are true?

  1. Faults in program specifications are the most expensive to fix.
  2. Faults in code are the most expensive to fix
  3. Faults in requirements are the most expensive to fix
  4. Faults in designs are the most expensive to fix
Question 12 Multiple Choice (Single Answer)

Which of the following is not the integration strategy?

  1. Design based
  2. Big-bang
  3. Bottom-up
  4. Top-down
Question 13 Multiple Choice (Multiple Answers)

What are the types of descriptive programming in QTP

  1. Static
  2. Tertiary
  3. Dynamic
  4. Both 1 and 3
Question 14 Multiple Choice (Multiple Answers)

The following is an example of Window(“Title:=Login”).Winedit(“Attached text:=Agent Name”).set “Sam”

  1. Dynamic DP
  2. Static DP
  3. None of the above
  4. Both 1 and 2
Question 15 Multiple Choice (Multiple Answers)

Which of the following is correct when we use descriptive programming in a script

  1. Programmatic descriptions for parent object and the child object is referred in Object Repository
  2. Programmatic descriptions for both parent object and the child objects
  3. Parent object is referred in Object Repository and the programmatic descriptions for child object
  4. None of the above
Question 16 Multiple Choice (Multiple Answers)

If the same programmatic description (Window (“Title:=Login”).)is used several times, then

  1. We can assign the object to a variable
  2. We can use With and End with statements
  3. We should use them every time
  4. None of the above
Question 17 Multiple Choice (Multiple Answers)

The following code – Set Myvar = Description.Create() is the way to use …… descriptive programming

  1. Dynamic
  2. Tertiary
  3. Static
  4. Both 1 and 3
Question 18 Multiple Choice (Multiple Answers)

In the following code – Set Myvar = Description.Create(), Myvar is known as

  1. Property Object
  2. Property Name
  3. Property Value
  4. Dynamic Property
Question 19 Multiple Choice (Multiple Answers)

Which method is used to get all objects located within a specific parent or only those that match some criteria for programmatic description

  1. Set
  2. Property Object
  3. Count
  4. ChildObjects
Question 20 Multiple Choice (Multiple Answers)

If Index:=1 is used with WebEdit Test Object in the descriptive programming, QTP will search for the …….. WebEdit Object in a Web Page

  1. Third
  2. First
  3. Second
  4. Last