~aleteoryx/muditaos

ref: 0e8b4c848e3f87f3bbb1f64ef7460cf56017b87f muditaos/test/pytest/service-bluetooth/doc/bluetooth-dev-test-visibility-on-off.svg -rw-r--r-- 11.7 KiB
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
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="707px" preserveAspectRatio="none" style="width:324px;height:707px;background:#F0F0F0;" version="1.1" viewBox="0 0 324 707" width="324px" zoomAndPan="magnify"><defs><filter height="300%" id="f1114ipoz9svlp" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut" stdDeviation="2.0"/><feColorMatrix in="blurOut" result="blurOut2" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/><feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/><feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/></filter></defs><g><ellipse cx="144" cy="20" fill="#000000" filter="url(#f1114ipoz9svlp)" rx="10" ry="10" style="stroke: none; stroke-width: 1.0;"/><rect fill="#FFFFFF" filter="url(#f1114ipoz9svlp)" height="96.2344" style="stroke: #000000; stroke-width: 2.0;" width="268" x="10" y="40.8018"/><path d="M99,41.8018 L99,50.0986 L89,60.0986 L10,60.0986 " fill="none" style="stroke: #000000; stroke-width: 2.0;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="79" x="13" y="54.7969">Initialization</text><rect fill="#FEFECE" filter="url(#f1114ipoz9svlp)" height="47.9375" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="248" x="20" y="77.0986"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="228" x="30" y="98.2373">enforce pretest machine conditions:</text><rect fill="#000000" height="3.5" style="stroke: #000000; stroke-width: 0.0;" width="3.5" x="47" y="107.0361"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="127" x="52" y="112.2061">bluetooth turned off</text><rect fill="#FFFFFF" filter="url(#f1114ipoz9svlp)" height="548.875" style="stroke: #000000; stroke-width: 2.0;" width="276.5" x="37" y="147.8379"/><path d="M102,148.8379 L102,157.1348 L92,167.1348 L37,167.1348 " fill="none" style="stroke: #000000; stroke-width: 2.0;"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacingAndGlyphs" textLength="55" x="40" y="161.833">test-run</text><rect fill="#FEFECE" filter="url(#f1114ipoz9svlp)" height="61.9063" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="95" x="96.5" y="184.1348"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="61" x="110.5" y="205.2734">set state:</text><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="62" x="110.5" y="219.2422">-power on</text><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="71" x="110.5" y="233.2109">-visibility off</text><rect fill="#FEFECE" filter="url(#f1114ipoz9svlp)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="126" x="81" y="266.041"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="102" x="95" y="287.1797">get device state</text><rect fill="#FEFECE" filter="url(#f1114ipoz9svlp)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="122" x="83" y="365.6191"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="98" x="97" y="386.7578">change visibility</text><polygon fill="#FEFECE" filter="url(#f1114ipoz9svlp)" points="104.5,320.0098,183.5,320.0098,195.5,332.8145,183.5,345.6191,104.5,345.6191,92.5,332.8145,104.5,320.0098" style="stroke: #A80036; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="65" x="104.5" y="330.2202">power is on</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="76" x="104.5" y="343.0249">visibility is off</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="73" x="195.5" y="330.2202">false=failure</text><ellipse cx="290.5" cy="332.8145" fill="#FFFFFF" filter="url(#f1114ipoz9svlp)" rx="11" ry="11" style="stroke: #000000; stroke-width: 1.0;"/><ellipse cx="290.5" cy="332.8145" fill="#000000" rx="6" ry="6" style="stroke: #7F7F7F; stroke-width: 1.0;"/><rect fill="#FEFECE" filter="url(#f1114ipoz9svlp)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="126" x="81" y="419.5879"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="102" x="95" y="440.7266">get device state</text><rect fill="#FEFECE" filter="url(#f1114ipoz9svlp)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="122" x="83" y="519.166"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="98" x="97" y="540.3047">change visibility</text><polygon fill="#FEFECE" filter="url(#f1114ipoz9svlp)" points="105,473.5566,183,473.5566,195,486.3613,183,499.166,105,499.166,93,486.3613,105,473.5566" style="stroke: #A80036; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="65" x="105" y="483.7671">power is on</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="75" x="105" y="496.5718">visibility is on</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="73" x="195" y="483.7671">false=failure</text><ellipse cx="290" cy="486.3613" fill="#FFFFFF" filter="url(#f1114ipoz9svlp)" rx="11" ry="11" style="stroke: #000000; stroke-width: 1.0;"/><ellipse cx="290" cy="486.3613" fill="#000000" rx="6" ry="6" style="stroke: #7F7F7F; stroke-width: 1.0;"/><rect fill="#FEFECE" filter="url(#f1114ipoz9svlp)" height="33.9688" rx="12.5" ry="12.5" style="stroke: #A80036; stroke-width: 1.5;" width="126" x="81" y="573.1348"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="102" x="95" y="594.2734">get device state</text><polygon fill="#FEFECE" filter="url(#f1114ipoz9svlp)" points="106,627.1035,182,627.1035,194,639.9082,182,652.7129,106,652.7129,94,639.9082,106,627.1035" style="stroke: #A80036; stroke-width: 1.5;"/><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="65" x="106" y="637.314">power is on</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="76" x="106" y="650.1187">visibility is off</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="47" x="47" y="637.314">success</text><text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="73" x="194" y="637.314">false=failure</text><ellipse cx="84" cy="673.7129" fill="#FFFFFF" filter="url(#f1114ipoz9svlp)" rx="11" ry="11" style="stroke: #000000; stroke-width: 1.0;"/><ellipse cx="84" cy="673.7129" fill="#000000" rx="6" ry="6" style="stroke: #7F7F7F; stroke-width: 1.0;"/><ellipse cx="204" cy="673.7129" fill="#FFFFFF" filter="url(#f1114ipoz9svlp)" rx="11" ry="11" style="stroke: #000000; stroke-width: 1.0;"/><ellipse cx="204" cy="673.7129" fill="#000000" rx="6" ry="6" style="stroke: #7F7F7F; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="144" x2="144" y1="30" y2="77.0986"/><polygon fill="#A80036" points="140,67.0986,144,77.0986,148,67.0986,144,71.0986" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="144" x2="144" y1="246.041" y2="266.041"/><polygon fill="#A80036" points="140,256.041,144,266.041,148,256.041,144,260.041" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="144" x2="144" y1="345.6191" y2="365.6191"/><polygon fill="#A80036" points="140,355.6191,144,365.6191,148,355.6191,144,359.6191" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="195.5" x2="279.5" y1="332.8145" y2="332.8145"/><polygon fill="#A80036" points="269.5,328.8145,279.5,332.8145,269.5,336.8145,273.5,332.8145" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="144" x2="144" y1="399.5879" y2="419.5879"/><polygon fill="#A80036" points="140,409.5879,144,419.5879,148,409.5879,144,413.5879" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="144" x2="144" y1="300.0098" y2="320.0098"/><polygon fill="#A80036" points="140,310.0098,144,320.0098,148,310.0098,144,314.0098" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="144" x2="144" y1="499.166" y2="519.166"/><polygon fill="#A80036" points="140,509.166,144,519.166,148,509.166,144,513.166" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="195" x2="279" y1="486.3613" y2="486.3613"/><polygon fill="#A80036" points="269,482.3613,279,486.3613,269,490.3613,273,486.3613" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="144" x2="144" y1="553.1348" y2="573.1348"/><polygon fill="#A80036" points="140,563.1348,144,573.1348,148,563.1348,144,567.1348" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="144" x2="144" y1="453.5566" y2="473.5566"/><polygon fill="#A80036" points="140,463.5566,144,473.5566,148,463.5566,144,467.5566" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="94" x2="84" y1="639.9082" y2="639.9082"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="84" x2="84" y1="639.9082" y2="662.7129"/><polygon fill="#A80036" points="80,652.7129,84,662.7129,88,652.7129,84,656.7129" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="194" x2="204" y1="639.9082" y2="639.9082"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="204" x2="204" y1="639.9082" y2="662.7129"/><polygon fill="#A80036" points="200,652.7129,204,662.7129,208,652.7129,204,656.7129" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="144" x2="144" y1="607.1035" y2="627.1035"/><polygon fill="#A80036" points="140,617.1035,144,627.1035,148,617.1035,144,621.1035" style="stroke: #A80036; stroke-width: 1.0;"/><line style="stroke: #A80036; stroke-width: 1.5;" x1="144" x2="144" y1="125.0361" y2="184.1348"/><polygon fill="#A80036" points="140,174.1348,144,184.1348,148,174.1348,144,178.1348" style="stroke: #A80036; stroke-width: 1.0;"/><!--MD5=[74f91c7df2ce884dcd974961945c175c]
@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

PlantUML version 1.2020.02(Sun Mar 01 05:22:07 EST 2020)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Java Version: 11.0.12+7-post-Debian-2
Operating System: Linux
Default Encoding: UTF-8
Language: en
Country: US
--></g></svg>