Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create sc-SE-session.md #657

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 87 additions & 0 deletions test_scenarios/sc-SE-session.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
## Init options
M:Manual Sessions enabled
A:Automatic sessions enabled
H:Hybrid Sessions enabled
CR:Consent Required
CNR:Consent not Required
CG:Session Consent given
CNG:Session Consent not given

## Manuals

## 200_CR_CG_M
endSession();
endSession();
updateSession();
updateSession();
wait (seconds: 2);
beginSession();
wait (seconds: 2);
beginSession();
updateSession();
wait(seconds: 2);
updateSession();
wait(seconds: 2));
endSession();
wait(seconds: 2));
endSession();
updateSession();
updateSession();
Check request queue and verify in this order:
1. 5 reqs only
2. 1 consent status req
3. 1 begin session req
4. 2 session update reqs with duration 2 seconds
5. 1 end session req with duration 2 secs

## 201_CNR_M
Same as 200_CR_CG_M except:
1. 4 reqs instead of 5 (no consent status req)

## 202_CR_CNG_M
Same as 200_CR_CG_M except:
1. No requests generated

## 203_CR_CG_M_id_change
endSession();
updateSession();
updateSession();
wait (seconds: 2);
changeIDwithMerge('newID');
beginSession();
wait (seconds:2);
endSession();
changeIDwithoutMerge('newID_2');
beginSession();
endSession();
Check request queue and verify:
1. There is 1 begin session req only
2. There is 1 end session req only with duration 2

### Automatic

## 204_CNR_A_id_change
wait (seconds: 1);
changeIDwithMerge('newID');
wait (seconds: 1);
changeIDwithoutMerge('newID_2');
wait (seconds: 1);
changeIDwithMerge('newID');
wait (seconds: 1);
changeIDwithoutMerge('newID_2');
wait (seconds: 1);
*go to background*
wait (seconds: 1);
*back to foreground*
changeIDwithMerge('newID');
*go to background*
wait (seconds: 1);
*back to foreground*
Check request queue and verify:
1. too lazy to calculate just let us know and lets verify together

## 205_CR_CG_A_id_change
same as 204_CNR_A_id_change

## 206_CR_CNG_A_id_change
same as 204_CNR_A_id_change