File indexing completed on 2024-05-12 04:02:10

0001 <!DOCTYPE html>
0002 <html><head>
0003 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
0004 <title>test.robot</title>
0005 <meta name="generator" content="KF5::SyntaxHighlighting - Definition (Robot) - Theme (Breeze Dark)"/>
0006 </head><body style="background-color:#232629;color:#cfcfc2"><pre>
0007 <span style="color:#da4453">*** Comments ***</span>
0008 <span style="color:#7a7c7d">Some comments go here</span>
0009 <span style="color:#7a7c7d">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam a quam erat.</span>
0010 <span style="color:#7a7c7d">Nam ante lorem, placerat et est a, blandit rutrum magna. Vivamus congue ipsum eget neque posuere, nec egestas risus cursus. Proin nec interdum orci.</span>
0011 <span style="color:#7a7c7d">Vivamus blandit, elit sed vehicula lobortis, orci massa malesuada nibh, at rutrum lacus quam a metus. Donec velit magna, pulvinar eget metus eu, aliquet sagittis ante.</span>
0012 <span style="color:#7a7c7d">    ...   Donec egestas neque vel libero finibus hendrerit. Nam tempus quam ut mi interdum vulputate. Mauris ac auctor magna.</span>
0013 <span style="color:#7a7c7d">Maecenas sollicitudin, tortor nec auctor pellentesque, sapien neque accumsan enim, quis porttitor magna est non nibh.</span>
0014 <span style="color:#7a7c7d">Pellentesque facilisis luctus nulla, ut dignissim ligula vestibulum ac. Sed sit amet eros non turpis congue facilisis vitae vitae orci.</span>
0015 <span style="color:#7a7c7d">Morbi et lobortis nibh. Proin blandit, diam ut blandit aliquam, ligula diam posuere lorem, sed malesuada quam massa eu elit. S</span>
0016 <span style="color:#7a7c7d">uspendisse ultrices velit nec mauris laoreet, eget tristique tortor maximus.</span>
0017 
0018 <span style="color:#da4453">*** Settings ***</span>
0019 <span style="color:#7f8c8d">Documentation</span><span style="color:#7a7c7d">    Simple example demonstrating syntax highlighting.</span>
0020 <span style="color:#7a7c7d">...              Multiple lines.</span>
0021 <span style="color:#7a7c7d">...              Thanks to https://spage.fi/highlight-robot !</span>
0022 <span style="color:#7f8c8d">Library          </span>ExampleLibrary
0023 <span style="color:#7f8c8d">Test Setup       </span>Test Setup Keyword       argument   argument with <span style="color:#27aeae">${VARIABLE}</span>
0024 <span style="color:#7f8c8d">Test Teardown    </span>Test Keyword Teardown    argument   argument with <span style="color:#27aeae">${VARIABLE}</span>
0025 <span style="color:#7f8c8d">Suite Setup      </span>Big Suite Setup          <span style="color:#27aeae">${ARG}</span>     argument with <span style="color:#27aeae">${VARIABLE}</span>
0026 <span style="color:#7f8c8d">Suite Teardown   </span>Teardown keyword         argument   argument with <span style="color:#27aeae">${VARIABLE}</span>
0027 <span style="color:#7a7c7d"># Comment in here too</span>
0028 <span style="color:#7f8c8d">Resource            </span><span style="color:#27aeae">${RESOURCES}</span>/file<span style="color:#3f8058">.</span>txt
0029 <span style="color:#7f8c8d">Variables           </span><span style="color:#27aeae">${VARIABLES}</span>/file<span style="color:#3f8058">.</span>txt
0030 
0031 <span style="color:#da4453">*** Variables ***</span>
0032 <span style="color:#27aeae">${VARIABLE}</span>      Variable value
0033 <span style="color:#27aeae">@{LIST}</span>          List    variable    here
0034 <span style="color:#27aeae">&amp;{DICT}</span>          Key1<span style="color:#3f8058">=</span>Value1    Key2<span style="color:#3f8058">=</span>Value2
0035 
0036 <span style="color:#da4453">*** Test Cases ***</span>
0037 <span style="color:#8e44ad">First example</span>
0038 <span style="color:#3f8058">    [</span><span style="color:#7f8c8d">Documentation</span><span style="color:#3f8058">]</span><span style="color:#7a7c7d">    Most amazing</span>
0039 <span style="color:#7a7c7d">    ...                documentation</span>
0040     Initialize System
0041     Do Something
0042     <span style="color:#7a7c7d"># Comment</span>
0043     Result Should Be    <span style="color:#27aeae">${42}</span>
0044     Test if something and else something
0045     A cool suite keyword    that takes a string
0046 <span style="color:#3f8058">    [</span><span style="color:#7f8c8d">Teardown</span><span style="color:#3f8058">]</span>    Cleanup System    <span style="color:#7a7c7d"># Being a good citizen</span>
0047 
0048 <span style="color:#8e44ad">Test if something and else something</span>
0049 <span style="color:#3f8058">    [</span><span style="color:#7f8c8d">Documentation</span><span style="color:#3f8058">]</span><span style="color:#7a7c7d">    Do not change colors in middle of kw/tc name</span>
0050     <span style="color:#3f8058">[</span><span style="color:#7f8c8d">Setup</span><span style="color:#3f8058">]  </span><span style="color:#f44f4f">  Small Keyword Setup</span>
0051 
0052     Kw for if something and else something
0053     Do a thing     <span style="color:#27aeae">${thing}</span>
0054     Run a for loop
0055     Run a while loop to end
0056     <span style="color:#7a7c7d">#A comment</span>
0057     Kw for if something and else something
0058     <span style="color:#27aeae">${status}</span> <span style="color:#3f8058">=</span>    BuiltIn<span style="color:#3f8058">.</span>Evaluate 0 &lt; <span style="color:#27aeae">${result}</span> &lt; 10
0059     Then print    <span style="color:#27aeae">${status}</span>
0060 
0061 <span style="color:#8e44ad">Second </span><span style="color:#27aeae">${variable}</span><span style="color:#8e44ad"> example</span>
0062 <span style="color:#3f8058">    [</span><span style="color:#7f8c8d">Documentation</span><span style="color:#3f8058">]</span><span style="color:#7a7c7d">     Oneliner</span>
0063     <span style="color:#3f8058">[</span><span style="color:#7f8c8d">Template</span><span style="color:#3f8058">]  </span><span style="color:#f44f4f">  Keyword</span>
0064     <span style="color:#3f8058">[</span><span style="color:#7f8c8d">Tags</span><span style="color:#3f8058">]  </span><span style="color:#f44f4f">      aaa    bbb    ccc</span>
0065     argument1   argument2
0066     argument    <span style="color:#27aeae">${VARIABLE}</span>
0067     <span style="color:#27aeae">@{LIST}</span>
0068 
0069 <span style="color:#8e44ad">Three </span><span style="color:#27aeae">${var}</span><span style="color:#8e44ad"> example </span><span style="color:#27aeae">${var2}</span><span style="color:#8e44ad"> last </span><span style="color:#27aeae">${var3}</span>
0070 <span style="color:#3f8058">    [</span><span style="color:#7f8c8d">Documentation</span><span style="color:#3f8058">]</span><span style="color:#7a7c7d">     Oneliner</span>
0071     <span style="color:#3f8058">[</span><span style="color:#7f8c8d">Tags</span><span style="color:#3f8058">]  </span><span style="color:#f44f4f">  tag1    tag2</span>
0072 <span style="color:#f44f4f">    ...       more    tags</span>
0073     Given system is initialized
0074     When something is done
0075     <span style="color:#7a7c7d"># Comment</span>
0076     <span style="color:#7a7c7d"># Another Comment</span>
0077 <span style="color:#7a7c7d"># Oops this comment is here</span>
0078                 <span style="color:#7a7c7d"># This comment is way over here!</span>
0079     And things are ok
0080 
0081     Then result should be <span style="color:#f44f4f">"42"</span> but not <span style="color:#27aeae">${var1}</span> <span style="color:#7a7c7d">#Anything inside "" should be a string</span>
0082     Another result should be <span style="color:#f44f4f">'23'</span> <span style="color:#7a7c7d">#also for ''</span>
0083 
0084 
0085 
0086 <span style="color:#da4453">*** Keywords ***</span>
0087 <span style="font-weight:bold">Result Should Be</span>
0088 <span style="color:#3f8058">    [</span><span style="color:#7f8c8d">Arguments</span><span style="color:#3f8058">]</span>    <span style="color:#27aeae">${expected}</span>
0089     <span style="color:#27aeae">${actual}</span> <span style="color:#3f8058">=</span>    Get Value
0090     Should be Equal    <span style="color:#27aeae">${actual}</span>    <span style="color:#27aeae">${expected}</span>
0091 
0092 <span style="font-weight:bold">Then result should be </span><span style="color:#27aeae">${expected}</span>
0093     Result Should Be    <span style="color:#27aeae">${expected}</span>
0094     this is also a      <span style="color:#27aeae">$variable</span>
0095     <span style="color:#fdbc4b;font-weight:bold">IF</span>    <span style="color:#27aeae">$var_in_py_expr1</span> <span style="color:#3f8058">==</span> <span style="color:#27aeae">$var_in_py_expr2</span>
0096         Call Keyword
0097     <span style="color:#fdbc4b;font-weight:bold">ELSE</span>
0098         <span style="color:#7a7c7d">#nothing!!</span>
0099         Do nothing
0100     <span style="color:#fdbc4b;font-weight:bold">END</span>
0101 
0102 <span style="font-weight:bold">Kw for if something and else something</span>
0103     <span style="color:#fdbc4b;font-weight:bold">WHILE</span>   <span style="color:#27aeae">${var}</span> <span style="color:#3f8058">=</span> <span style="color:#27aeae">${True}</span>
0104         <span style="color:#fdbc4b;font-weight:bold">IF</span>    <span style="color:#27aeae">$var_in_py_expr1</span> <span style="color:#3f8058">==</span> <span style="color:#27aeae">$var_in_py_expr2</span>
0105             Call Keyword
0106         <span style="color:#fdbc4b;font-weight:bold">ELSE</span>
0107             <span style="color:#7a7c7d">#nothing!!</span>
0108             Do nothing
0109         <span style="color:#fdbc4b;font-weight:bold">END</span>
0110     <span style="color:#fdbc4b;font-weight:bold">END</span>
0111 
0112 <span style="font-weight:bold">Log items</span>
0113 <span style="color:#3f8058">    [</span><span style="color:#7f8c8d">Arguments</span><span style="color:#3f8058">]</span>    <span style="color:#27aeae">@{items}</span>    <span style="color:#27aeae">${log_values}</span><span style="color:#3f8058">=</span>True
0114     <span style="color:#fdbc4b;font-weight:bold">IF</span>    not <span style="color:#27aeae">${items}</span>
0115         Log to console    No items<span style="color:#3f8058">.</span>
0116     <span style="color:#fdbc4b;font-weight:bold">ELSE</span> <span style="color:#fdbc4b;font-weight:bold">IF</span>    len<span style="color:#3f8058">(</span><span style="color:#27aeae">${items}</span><span style="color:#3f8058">)</span> <span style="color:#3f8058">==</span> 1
0117         <span style="color:#fdbc4b;font-weight:bold">IF</span>    <span style="color:#27aeae">${log_values}</span>
0118             Log to console    One item: <span style="color:#27aeae">${items}</span><span style="color:#3f8058">[</span>0<span style="color:#3f8058">]</span>
0119         <span style="color:#fdbc4b;font-weight:bold">ELSE</span>
0120             Log to console    One item<span style="color:#3f8058">.</span>
0121         <span style="color:#fdbc4b;font-weight:bold">END</span>
0122     <span style="color:#fdbc4b;font-weight:bold">ELSE</span>
0123         Log to console    <span style="color:#27aeae">${</span>{len<span style="color:#3f8058">(</span><span style="color:#27aeae">${items}</span><span style="color:#3f8058">)</span>}} items<span style="color:#3f8058">.</span>
0124         <span style="color:#fdbc4b;font-weight:bold">IF</span>    <span style="color:#27aeae">${log_values}</span>
0125             <span style="color:#fdbc4b;font-weight:bold">FOR</span>    <span style="color:#27aeae">${index}</span>    <span style="color:#27aeae">${item}</span>    <span style="color:#fdbc4b;font-weight:bold">IN</span> <span style="color:#fdbc4b;font-weight:bold">ENUMERATE</span>    <span style="color:#27aeae">@{items}</span>    start<span style="color:#3f8058">=</span>1
0126                 Log to console    Item <span style="color:#27aeae">${index}</span>: <span style="color:#27aeae">${item}</span>
0127             <span style="color:#fdbc4b;font-weight:bold">END</span>
0128         <span style="color:#fdbc4b;font-weight:bold">END</span>
0129     <span style="color:#fdbc4b;font-weight:bold">END</span>
0130 
0131 
0132 <span style="color:#da4453">*** Tasks ***</span>
0133 <span style="color:#0099ff;font-weight:bold">Process invoice</span>
0134     Read information from PDF
0135     Validate information <span style="color:#f44f4f">"asd"</span>
0136     Submit information to backend system
0137     Validate information is visible in web UI
0138 
0139 </pre></body></html>