reading-notes

Read: Class 06 Summary :

How to use the Random Module in Python ?

  1. Random » to generate random number “float” between 0 and 1, If you want a larger number, you can multiply it.
    • Example :
      import random
      random.random() * 100
      
  2. Choice » to generate a random value from the sequence sequence. The choice function can often be used for choosing a random element from a list. If seq is empty, raises IndexError.
    • Example :
      import random
      myList = [2, 109, False, 10, "Lorem", 482, "Ipsum"]
      random.choice(myList)
      
  3. Shuffle : The shuffle function, shuffles the elements in list in place, so they are in a random order.
    • Example:
      from random import shuffle
      x = [[i] for i in range(10)]
      shuffle(x)
      
  4. Randrange » to generate a randomly selected element from range(start, stop, step)
    • Example:
      import random
      for i in range(3):
       print random.randrange(0, 101, 5)
      

      What is Risk Analysis in Software Testing and how to perform it?

    • In Software Testing, risk analysis is the process of identifying the risks in applications or software that you built and prioritizing them to test. After that, the process of assigning the level of risk is done. The categorization of the risks takes place, hence, the impact of the risk is calculated.
    • Why use Risk Analysis? : When a test plan has been created, risks involved in testing the product are to be taken into consideration along with the possibility of the damage they may cause to your software along with solutions.
    • Example of possible risks list :
  5. Use of new hardware
  6. Use of new technology
  7. Use of new automation tool
  8. The sequence of code
  9. Availability of test resources for the application
  1. Business Risks: This risk is the most common risk associated with our topic. It is the risk that may come from your company or your customer, not from your project.
  2. Testing Risks: You should be well acquainted with the platform you are working on, along with the software testing tools being used.
  3. Premature Release Risk: a fair amount of knowledge to analyze the risk associated with releasing unsatisfactory or untested software is required
  4. Software Risks: You should be well versed with the risks associated with the software development process.

Big O :

More about random module:

A quick intro to Dependency Injection: what it is, and when to use it :