~aleteoryx/muditaos

ref: 0e8b4c848e3f87f3bbb1f64ef7460cf56017b87f muditaos/test/pytest/service-bluetooth/doc/bluetooth-dev-test-visibility-on-off.puml -rw-r--r-- 666 bytes
0e8b4c84 — Lefucjusz [BH-2108] Fix misaligned charging symbol 3 months 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
@startuml
skinparam BackgroundColor F0F0F0

start
partition Initialization {
    :enforce pretest machine conditions:
    ** bluetooth turned off;
}

partition test-run {

    : set state:
     -power on
     -visibility off;
    : get device state;

    if (power is on \nvisibility is off )
        : change visibility;
    else (false=failure)
        stop
    endif

    : get device state;
    if (power is on \nvisibility is on )
        : change visibility;
    else (false=failure)
        stop
    endif

    : get device state;
    if  (power is on \nvisibility is off) then (success)
        stop
    else (false=failure)
        stop
    endif
}
@enduml