Linkedin profile :
https://www.linkedin.com/in/hafizmuhammadahmadnaeem/
Problem statement:
Write down any line of code and apply some test for quality checkout purpose.
There is no restriction for language to write the code.
Solution:
Programming language
Here python programming language is used. Here two types or operations are applied. First is addition
of two numbers and second one is multiplication. Mail focus on addition operation and multiplication
operation used only for integration purpose.
Code
# I'm using a simplest example( addition of two numbers).
# I'll use multiplication only for integration.
''' Consiously I'll miss properties(features) only for
analysis purpose. '''
#Code
# Addition
print("n....... Addition .......n")
var1 = int(input('Please enter first number : '))
var2 = int(input('Please enter second number : '))
result = var1 + var2
print('nAfter adding of your input result is : ',result)
# Multiplication
print("n....... Multiplication .......n")
var1 = int(input('Please enter first number : '))
var2 = int(input('Please enter second number : '))
result = var1 * var2
print('nAfter multiplication of your input result is : ',result)
# end
input('nnpress any key to conti... ')
Testing process
Now testing process will apply one by one.
Functional test
In functional test check the main functionality of program.
Result
This code successfully passed functional test. It’s accurately adding two numbers and generate accurate
result.
Positive test
In positive test only good and accurate values are applied. And check the behavior of system.
Result
So, definitely result is correct. Behavior of the system is also accurate. Any kind of problem founded.
Negative test
In negative testing process consciously put wrong and invalid values, for determent the behavior and
respond of system.
Result
As code written for adding two numbers. But check out the result for negative test put incorrect values
which is “Ahmad” and got this result.
Usability test
In usability test check the not-functional behavior on use end. And check the comfort level of end user
for using the system.
Result
In this program guidance is provided for end user.
As,
But there is no guidance that, put only integer values and how much integer values can be entered. Even
not mentioned that which type of integer values are acceptable.
Boundary test
In this test analyze the limits of system. In technical term in this type of test check the constraints of the
system.
Result
There are many kinds of limitations in this system. As for addition of numbers system not accept data in
points (float type). When data entered in points then got the following results.
Startup/shutdown test
In startup and shutdown test, analyze that how much time is required to run the system after shutdown
and startup the whole environment.
Result
After startup the system need time to load certain environment for run the specific line of code. When
system is starts then no time is required for execution. Because hardware much sufficient than to
required. Second reason is that, logic of certain code much simpler. That’s why no time consumed after
run the environment.
😊
Software Quality Engineering

Software Quality Engineering

  • 1.
  • 2.
    Problem statement: Write downany line of code and apply some test for quality checkout purpose. There is no restriction for language to write the code. Solution: Programming language Here python programming language is used. Here two types or operations are applied. First is addition of two numbers and second one is multiplication. Mail focus on addition operation and multiplication operation used only for integration purpose. Code # I'm using a simplest example( addition of two numbers). # I'll use multiplication only for integration. ''' Consiously I'll miss properties(features) only for analysis purpose. ''' #Code # Addition print("n....... Addition .......n") var1 = int(input('Please enter first number : ')) var2 = int(input('Please enter second number : ')) result = var1 + var2 print('nAfter adding of your input result is : ',result) # Multiplication print("n....... Multiplication .......n") var1 = int(input('Please enter first number : ')) var2 = int(input('Please enter second number : ')) result = var1 * var2 print('nAfter multiplication of your input result is : ',result) # end input('nnpress any key to conti... ')
  • 3.
    Testing process Now testingprocess will apply one by one. Functional test In functional test check the main functionality of program. Result This code successfully passed functional test. It’s accurately adding two numbers and generate accurate result. Positive test In positive test only good and accurate values are applied. And check the behavior of system. Result So, definitely result is correct. Behavior of the system is also accurate. Any kind of problem founded. Negative test In negative testing process consciously put wrong and invalid values, for determent the behavior and respond of system. Result As code written for adding two numbers. But check out the result for negative test put incorrect values which is “Ahmad” and got this result. Usability test In usability test check the not-functional behavior on use end. And check the comfort level of end user for using the system.
  • 4.
    Result In this programguidance is provided for end user. As, But there is no guidance that, put only integer values and how much integer values can be entered. Even not mentioned that which type of integer values are acceptable. Boundary test In this test analyze the limits of system. In technical term in this type of test check the constraints of the system. Result There are many kinds of limitations in this system. As for addition of numbers system not accept data in points (float type). When data entered in points then got the following results. Startup/shutdown test In startup and shutdown test, analyze that how much time is required to run the system after shutdown and startup the whole environment. Result After startup the system need time to load certain environment for run the specific line of code. When system is starts then no time is required for execution. Because hardware much sufficient than to required. Second reason is that, logic of certain code much simpler. That’s why no time consumed after run the environment. 😊