Source: How to use the Random Module in Python
random.randint
generate random intimport random
print random.randint(0, 5)
# returns 1, 2, 3, 4, 5
random.random()
multiple for larger numbersimport random
random.random() * 100
# between 0 - 100
random.choice()
- Random from a sequenceimport random
myList = [2, 109, False, 10, "Lorem", 482, "Ipsum"]
random.choice(myList)
random.shuffle()
- Shuffles listfrom random import shuffle
x = [[i] for i in range(10)]
shuffle(x)
# print x gives [[9], [2], [7], [0], [4], [5], [3], [1], [8], [6]]
# of course your results will vary
random.randrange(start, stop[, step])
- Random element in rangeimport random
for i in range(3):
print random.randrange(0, 101, 5)
Source: What is Risk Analysis in Software Testing and how to perform it?
Identifying risks in application and prioritizing them to test
Examples:
High
means the effect of the risk would be very high and non-tolerable. The company might face loss.
Medium
it is tolerable but not desirable. The company may suffer financially but there is a limited risk.
Low
it is tolerable. There lies little or no external exposure or no financial loss.
Business Risks
Most common. Risk from company or your customer, not from your project.
Testing Risks
Should understand the platform and testinf needed.
Premature Release Risk
risk associated with releasing unsatisfactory or untested software is required
Software Risks
risks associated with the software development process.
Effect
– To assess risk by Effect. In case you identify a condition, event or action and try to determine its impact.
Cause
– To assess risk by Cause is opposite of by Effect. Initialize scanning the problem and reach to the point that could be the most probable reason behind that.
Likelihood
– To assess risk by Likelihood is to say that there is a probability that a requirement won’t be satisfied.