Consider the following techniques which are static and which are dynamic techniques

Q. 227: Order numbers on a stock control system can range between 10000 and 99999 inclusive. Which of the following inputs might be a result of designing tests for only valid equivalence classes and valid boundaries:

A. 1000, 5000, 99999
B. 9999, 50000, 100000
C. 10000, 50000, 99999
D. 10000, 99999
E. 9999, 10000, 50000, 99999, 10000

Q. 243: Consider the following state transition diagram of a two-speed hair dryer, which is operated by pressing its one button. The first press of the button turns it on to Speed 1, second press to Speed 2 and the third press turns it off.

state transition diagram of a two-speed hair dryer

Which of the following series of state transitions below will provide 0-switch coverage?

A. A,C,B
B. B,C,A
C. A,B,C
D. C,B,A

Q. 256: Consider the following statements about early test design:

i. Early test design can prevent fault multiplication
ii. Faults found during early test design are more expensive to fix
iii. Early test design can find faults
iv. Early test design can cause changes to the requirements
v. Early test design takes more effort

A. i, iii & iv are true. Ii & v are false
B. iii is true, I, ii, iv & v are false
C. iii & iv are true. i, ii & v are false
D. i, iii, iv & v are true, ii us false
E. i & iii are true, ii, iv & v are false

Q. 272: The selection of a test approach should consider the context:

i. Risk of Failure of the Project, hazards to the product and risks of product failure to humans
ii. Skills and experience of the people in the proposed technique, tools and methods
iii. The objective of the testing endeavor and the mission of the testing team.
iv. The size of the testing Team

A. i,ii,iii,iv are true
B. i,ii,iii are true and iv is false.
C. ii,iii,iv are true and i is false.
D. i,iv are true and ii, iii are false.

Q. 284: Based on the IEEE Standard for Software Test Documentation (IEEE Std 829-1998), which sections of the test incident report should the following details be recorded?

a) Test incident report identifier
b) Summary
c) Incident description
d) Impact

1. Expected results
2. Actual results
3. Procedure step
4. Environment
5. Revision level
6. Date and time

A. a: 3; b: 5; c: 1, 2, 4 and 6
B. b: 5; c: 1, 2, 3, 4 and 6
C. b: 5 and 6; c: 1, 2, 3 and 4
D. a: 5; c: 1, 2, 3, 4 and 6

Q. 291: Test planning has which of the following major tasks?

i. Determining the scope and risks, and identifying the objectives of testing.
ii. Determining the test approach (techniques,test items, coverage, identifying and
interfacing the teams involved in testing , testware)
iii. Reviewing the Test Basis (such as requirements,architecture,design,interface)
iv. Determining the exit criteria.

A. i,ii,iv are true and iii is false
B. i,,iv are true and ii is false
C. i,ii are true and iii,iv are false
D. ii,iii,iv are true and i is false

Q. 295: Match every stage of the software Development Life cycle with the Testing Life cycle:

i. Hi-level design a Unit tests
ii. Code b Acceptance tests
iii. Low-level design c System tests
iv. Business requirements d Integration tests

A. i-d , ii-a , iii-c , iv-b
B. i-c , ii-d , iii-a , iv-b
C. i-b , ii-a , iii-d , iv-c
D. i-c , ii-a , iii-d , iv-b

Dynamic testing technique is the type of testing that validates the functionality of an application when the code is executed / by executing the code. In simple terms dynamic testing is performed by actually using the application and seeing if a functionality works the way it is expected to. There is also something called ‘static’ testing. Learning about static testing helps understand dynamic testing better, so let’s summarize static testing first.

Table Of Contents

  • What is Static Testing?
  • What is Dynamic Testing?
  • Dynamic Testing Example
  • Types of Dynamic Testing
  • Advantages of Dynamic Testing
  • Disadvantages of Dynamic Testing
      • Other popular articles:

What is Static Testing?

Static testing as the name itself suggests is static in nature, which also means there are no changing conditions or parameters. In other words, this is performed without executing the code.

For example, when you are verifying a document or testing a document, you will go through the document, review it and then suggest or make changes.

Also, when there is a code review / walkthrough, the development team goes over the code step by step and checks whether the code written is according to the development standards and also it traverses through correctly to achieve the results desired.

Since, we are not changing anything in the documents, but also reviewing them, it is called static testing. We are testing, but it is static in nature.

Other examples for static testing are review of test strategy document, test plan document, test case walkthrough, Inspection of the code etc.

Consider the following techniques which are static and which are dynamic techniques

Now, let’s look at Dynamic testing. The name itself suggests that it is “Dynamic” in nature, which means changing. This is the kind of testing that we do with changing values or conditions by executing the code.

This involves testing the application in real-time by giving inputs and examining the result or the output value of behavior.

Dynamic Testing Example

The easiest example to understand this is the login functionality of any application, like Google’s gmail.com. If we are creating an account, and a password for the account, you would have certain rules for creating a strong password.

For instance, 8 characters long, needs to have a capital letter and at least one special character.

These are nothing but different conditions or parameters and if the user inputs any value that deviate from these rules, the application should either warn or reject.

If you are testing this functionality as an example, you would input all the conditions required to test this and then validate the output.

You would also input the non-working parameters, for example, input a 4-character password and verify if there is an error that is thrown. This is all part of Dynamic testing.

Types of Dynamic Testing

Dynamic testing is broadly classified into two types.

  • Whitebox testing – Whitebox testing looks at the internal workings of the code. For this type of testing, the tester should know the code development, review and be able to interpret the code.
  • Blackbox testing – Blackbox testing looks at only the functionality of the Application Under Test (AUT). This does not require the tester to know the implementation details or be able to interpret the inner workings of the code. This is the type of testing mostly done by the QA department.

Since we are interested more in learning about Blackbox testing, we also need to know that there are again two broad types of Blackbox testing.

  • Functional Testing – As the name itself suggests, this is the type of testing that validates the functionality of the application.
  • Non-Functional Testing – Non-Functional testing covers the aspects of performance, recovery, compatibility testing etc. These are non-functional in nature. And there may be a separate division in the organizations to do the non-functional testing.

Dynamic testing is performed at different levels. Let’s look at the basic definition of what each testing means.

  1. Unit testing – Simply put, the testing done by the developers right after they build the code to ensure their code is working as they expected and according to the requirements.
  2. System testing – This is the type of testing the QA department does after the code has been built and this covers the entire system/application in terms of testing. The QA team does thorough testing to make sure the functionality of the system is in-line with the requirements.
  3. Integration testing – This is a joint effort (in most companies) by the QA and development teams to make sure each individual module (after being tested) then connected to other modules or systems is still working as expected. This is basically the testing for the entire workflow from start to end.
  4. User Acceptance Testing (UAT) – This is done by the UAT team (User Acceptance Testing) with the aid of QA team. The business users write their own test cases and perform testing more geared towards the user’s perspective unlike what the QA does, more toward system’s perspective.

There are advantages to using dynamic testing. At the same time there are some disadvantages. Let’s look at the advantages first.

Advantages of Dynamic Testing

  • Dynamic testing is thorough, which looks at in-depth functionality of the application so the quality is of highest standards.
  • Dynamic testing process is well-established and hence the application is tested from user’s and business perspective thus increasing the quality standards.
  • Complex defects can be caught which may have escaped the review processes
  • Dynamic testing can be automated using tools

Disadvantages of Dynamic Testing

  • Since Dynamic testing follows a complex detailed process, it takes time.
  • It is time consuming and it costs more money to the organizations because of the need for the resources and time.
  • Dynamic testing is usually performed after coding is completed and hence defects are discovered later in the lifecycle

In a nutshell, Dynamic testing technique is the type that is followed in all the organizations today. It is used as a tool that the QA can rely on and has successfully shown results of higher quality when followed properly in organizations. This is extremely useful technique in software testing.

Other popular articles:

Which are static and which are dynamic techniques?

Static Testing involves checklist for testing process. Dynamic Testing involves test cases for testing process. It includes walkthroughs, code review, inspection etc. It involves functional and nonfunctional testing.

Why are static and dynamic testing described as complementary?

Because they have different aims and differ in the types of defect they find. Because they share the aim of identifying defects but differ in the types of defect they find.

Which of the following is static testing?

Static testing involves manual or automated reviews of the documents. This review is done during an initial phase of testing to catch Defect early in STLC. It examines work documents and provides review comments. It is also called Non-execution testing or verification testing.

What is common objective in reviews static analysis and dynamic testing?

Reviews, static analysis and dynamic testing have the same objective – identifying defects.