Last active
November 11, 2019 06:01
-
-
Save grimsock/ae67278bf7709817e8b73f78df05ced7 to your computer and use it in GitHub Desktop.
QA exercises p2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. There's following bug states diagram: | |
https://uploads.toptal.io/blog/image/127559/toptal-blog-image-1542202441615-6caf28860dc45bca5f94f6bf72376a33.png | |
Restrictions: | |
- If the ticket in state Reopened has been Closed, it can only be restored to the same state Reopened. | |
- If the ticket in state In progress has been Closed, it can only be restored to the same state In progress. | |
Task: starting from Reopened, what is the number of 0-switch transitions and what is the number of allowed 1-switch transitions? Write them down. | |
2. Write tests to achieve 100% of coverage for following types of coverage: statement, decision , condition, decision/condition, multiple condition coverage. | |
if a < 100 | |
if b > 0 | |
print “You can open the window” | |
else | |
print “You cannot open the window” | |
end | |
elsif a >= 100 && a < 500 | |
print “You are allowed to open the doors” | |
else | |
print “You are allowed to turn on the light” | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment