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.
Questions
Test reporting and defect management is the part of:
- test planning
- test execution
- both
- none of the above
Which one is not correct?
- Test plan is a contract between the testers and the project team and user describing the role of testing in the project
- Test Strategy is the plan for how you are going to run the test case
- The test plan should give information on software being tested, test objectives and risks and specific test to be performed
- Test planning can be started as soon as the time requirements definition starts
Error-Based testing seeks to demonstrate that:
- Certain errors are not committed in programming process.
- No errors were committed in test execution.
- No errors were observed in current release.
- The new release contains only the fixes for previous release bugs.
Error guessing is best used:
- a) after more formal techniques have been applied
- b) as the first approach to deriving test cases
- c) by inexperienced testers
- d) after the system has gone live
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.
- a) ii is True; i, iii, iv & v are False
- b) i & v are True; ii, iii & iv are False
- c) ii & iii are True; i, iv & v are False
- d) ii, iii & iv are True; i & v are False
Acceptance testing is the demonstration that a system meets requirements
- True
- False
In order to reduce the time needed for regression testing which method(s) you can apply from the following:
- a. Automate if you can.
- b. Combine test cases.
- c. Designate some tests for periodic testing.
- d. All the above
The testing effort may not depend on the following factor:
- a. Characteristics of reported bugs
- b. Characteristics of the product
- c. Characteristics of the development process
- d. The outcome of testing
What is the main reason for testing software before releasing it?
- to show that system will work after release
- to decide when the software is of sufficient quality to release
- to find as many bugs as possible before release
- to give information for a risk based decision about release
Which of the following is NOT a standard related to testing?
- IEEE829
- IEEE827
- BS7925-1
- BS7925-2
which of the following statements are true?
- Faults in program specifications are the most expensive to fix.
- Faults in code are the most expensive to fix
- Faults in requirements are the most expensive to fix
- Faults in designs are the most expensive to fix
Which of the following is not the integration strategy?
- Design based
- Big-bang
- Bottom-up
- Top-down
What are the types of descriptive programming in QTP
- Static
- Tertiary
- Dynamic
- Both 1 and 3
The following is an example of Window(“Title:=Login”).Winedit(“Attached text:=Agent Name”).set “Sam”
- Dynamic DP
- Static DP
- None of the above
- Both 1 and 2
Which of the following is correct when we use descriptive programming in a script
- Programmatic descriptions for parent object and the child object is referred in Object Repository
- Programmatic descriptions for both parent object and the child objects
- Parent object is referred in Object Repository and the programmatic descriptions for child object
- None of the above
If the same programmatic description (Window (“Title:=Login”).)is used several times, then
- We can assign the object to a variable
- We can use With and End with statements
- We should use them every time
- None of the above
The following code – Set Myvar = Description.Create() is the way to use …… descriptive programming
- Dynamic
- Tertiary
- Static
- Both 1 and 3
In the following code – Set Myvar = Description.Create(), Myvar is known as
- Property Object
- Property Name
- Property Value
- Dynamic Property
Which method is used to get all objects located within a specific parent or only those that match some criteria for programmatic description
- Set
- Property Object
- Count
- ChildObjects
If Index:=1 is used with WebEdit Test Object in the descriptive programming, QTP will search for the …….. WebEdit Object in a Web Page
- Third
- First
- Second
- Last