~aleteoryx/muditaos

ref: 71fa4c5578eb2ea57899e63c3aa5c42461502483 muditaos/test/pytest/service-bluetooth/doc/bluetooth-test-pairing-happy-path.puml -rw-r--r-- 1000 bytes
71fa4c55 — Paweł Joński [BH-721] Fix and add new rrule generator methods 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@startuml

partition Initialization {
    :enforce pretest machine conditions:
    -read test input data:
    **requires BT device name
    **optional BT device password
    -inject test data to DB:
    ** BT device
    -PurePhone visible state:
    ** in ApplicationSettings:Bluetooth
    ** bluetooth turned off;
}
partition test-run {
    : turn BT on;
    : enter AllDevices;
if (BT device name displayed) then (yes)
    : connect;
else (no)
    : press "+" for scan;
    repeat
        if( timeout exceeded ) then (no)
        else (yes = failure)
            stop
        endif
        : wait x seconds;
    repeatwhile (BT device name not displayed)
    : add device;
endif

if (need password) then (yes)
    :enter password;
    if(valid password ) then (yes)
    else (no = failure)
        stop
    endif
else (no)
endif
}
partition post-test-analysis {
    : check if connected successfully:
    -parse all devices window content
    -check for BT device name + connected icon;
}

@enduml