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 1 commit
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
Prev Previous commit
Update sc-SE-session.md
  • Loading branch information
AliRKat committed Jun 28, 2024
commit 4a7829e3b92cf000f39138d0e4ebf09dd7a20072
96 changes: 48 additions & 48 deletions test_scenarios/sc-SE-session.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,72 +10,72 @@
## 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
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)
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
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
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);
wait (seconds: 1);
changeIDwithMerge('newID');
wait (seconds: 1);
wait (seconds: 1);
changeIDwithoutMerge('newID_2');
wait (seconds: 1);
wait (seconds: 1);
changeIDwithMerge('newID');
wait (seconds: 1);
wait (seconds: 1);
changeIDwithoutMerge('newID_2');
wait (seconds: 1);
wait (seconds: 1);
*go to background*
wait (seconds: 1);
wait (seconds: 1);
*back to foreground*
changeIDwithMerge('newID');
*go to background*
wait (seconds: 1);
wait (seconds: 1);
*back to foreground*
Check request queue and verify:
1. too lazy to calculate just let us know and lets verify together
Expand Down