Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sistemicorp committed Apr 11, 2024
1 parent e213af0 commit 971cda8
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 28 deletions.
Binary file modified docs/build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/build/doctrees/prism_scripts.doctree
Binary file not shown.
28 changes: 20 additions & 8 deletions docs/build/html/_sources/prism_scripts.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ use the `subs` feature. Otherwise `subs` are used to create a `Traveller`, whic

`subs` are useful for generating :ref:`prism_travellers:Travellers`.

Here is a full example of what `subs` section could look like (taken from example `prod_1.scr`,
Here is a full example of what `subs` section could look like (taken from example `prod_1.scr`),

::

Expand Down Expand Up @@ -152,9 +152,15 @@ in the Test Config view.
// "config": "optional"
},

``product``, ``bom``, ``lot``, ``location`` are fields that you define a meaning specific to your operation.
``product`` - 32 character length field.

``config`` is an optional 16 character length field.
``bom`` - 32 character length field. Note `bom` stands for Bill of Materials.

``lot`` - 16 character length field.

``location`` - 128 character length field.

``config`` - (optional) 16 character length field.

Defining rules and a naming convention for these fields will help you later when you need to make database searches
for specific sets of results. This is important.
Expand Down Expand Up @@ -204,6 +210,8 @@ This section has a list of test definitions
Consider the following ``test`` section, which only has ONE test definition in the JSON list. An example of more than
one test definition will be shown later.

See ``public/prism/scripts/example/prod_v0/tst00xx.py`` for usage.

::

"tests": [
Expand All @@ -226,13 +234,17 @@ one test definition will be shown later.

``module``

* a dot notation path to the python code that is associated with this test definition
* a dot notation path to the Python code that is associated with this test definition

``options``

* a list of fields assigned values that persist over the execution life of the test definition
* only ``fail_fast`` is used by the system, which overrides the value used in the ``config`` section
* you may add fields here as your application requires
* a list of fields assigned values that persist over the execution life of the test item definition
* Prism key words,

* ``fail_fast`` overrides `fail_fast` in the ``config`` section
* ``enable`` (defaults to `true`) when set to false, disables all tests in ``items``

* add fields here as your application requires
* these ``options`` fields are available programmatically to each test ``items``

* for example, you could have a global value assigned here that any test ``items`` can access
Expand All @@ -242,7 +254,7 @@ one test definition will be shown later.
* a list of test ``items``
* the system will execute these tests in order

* ``id`` - A unique identifier of the test
* ``id`` - A unique identifier of the test, which is also the Python (class) function name in `module`.
* ``enable`` - `true` or `false`, can be omitted if always enabled
* ``args`` - a list of key/value pairs of any name/value required by your application

Expand Down
25 changes: 17 additions & 8 deletions docs/build/html/prism_scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ <h2>subs<a class="headerlink" href="#subs" title="Permalink to this headline">¶
<p>Only (logged in) users with a certain role privileges can access <cite>Test Config</cite>, and thus access to GUI controls that
use the <cite>subs</cite> feature. Otherwise <cite>subs</cite> are used to create a <cite>Traveller</cite>, which stores the <cite>subs</cite> used.</p>
<p><cite>subs</cite> are useful for generating <a class="reference internal" href="prism_travellers.html#travellers"><span class="std std-ref">Travellers</span></a>.</p>
<p>Here is a full example of what <cite>subs</cite> section could look like (taken from example <cite>prod_1.scr</cite>,</p>
<p>Here is a full example of what <cite>subs</cite> section could look like (taken from example <cite>prod_1.scr</cite>),</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="s2">&quot;subs&quot;</span><span class="p">:</span> <span class="p">{</span>
<span class="o">//</span> <span class="n">Each</span> <span class="n">item</span> <span class="n">here</span> <span class="ow">is</span> <span class="n">described</span> <span class="n">by</span><span class="p">,</span>
<span class="o">//</span> <span class="s2">&quot;&lt;subs_name&gt;&quot;</span><span class="p">:</span>
Expand Down Expand Up @@ -184,8 +184,11 @@ <h2>info<a class="headerlink" href="#info" title="Permalink to this headline">¶
<span class="p">},</span>
</pre></div>
</div>
<p><code class="docutils literal notranslate"><span class="pre">product</span></code>, <code class="docutils literal notranslate"><span class="pre">bom</span></code>, <code class="docutils literal notranslate"><span class="pre">lot</span></code>, <code class="docutils literal notranslate"><span class="pre">location</span></code> are fields that you define a meaning specific to your operation.</p>
<p><code class="docutils literal notranslate"><span class="pre">config</span></code> is an optional 16 character length field.</p>
<p><code class="docutils literal notranslate"><span class="pre">product</span></code> - 32 character length field.</p>
<p><code class="docutils literal notranslate"><span class="pre">bom</span></code> - 32 character length field. Note <cite>bom</cite> stands for Bill of Materials.</p>
<p><code class="docutils literal notranslate"><span class="pre">lot</span></code> - 16 character length field.</p>
<p><code class="docutils literal notranslate"><span class="pre">location</span></code> - 128 character length field.</p>
<p><code class="docutils literal notranslate"><span class="pre">config</span></code> - (optional) 16 character length field.</p>
<p>Defining rules and a naming convention for these fields will help you later when you need to make database searches
for specific sets of results. This is important.</p>
</section>
Expand Down Expand Up @@ -230,6 +233,7 @@ <h2>tests<a class="headerlink" href="#tests" title="Permalink to this headline">
</ul>
<p>Consider the following <code class="docutils literal notranslate"><span class="pre">test</span></code> section, which only has ONE test definition in the JSON list. An example of more than
one test definition will be shown later.</p>
<p>See <code class="docutils literal notranslate"><span class="pre">public/prism/scripts/example/prod_v0/tst00xx.py</span></code> for usage.</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="s2">&quot;tests&quot;</span><span class="p">:</span> <span class="p">[</span>
<span class="p">{</span>
<span class="s2">&quot;module&quot;</span><span class="p">:</span> <span class="s2">&quot;public.prism.scripts.prod_v0.tst00xx&quot;</span><span class="p">,</span>
Expand All @@ -251,13 +255,18 @@ <h2>tests<a class="headerlink" href="#tests" title="Permalink to this headline">
</div>
<p><code class="docutils literal notranslate"><span class="pre">module</span></code></p>
<ul class="simple">
<li><p>a dot notation path to the python code that is associated with this test definition</p></li>
<li><p>a dot notation path to the Python code that is associated with this test definition</p></li>
</ul>
<p><code class="docutils literal notranslate"><span class="pre">options</span></code></p>
<ul class="simple">
<li><p>a list of fields assigned values that persist over the execution life of the test definition</p></li>
<li><p>only <code class="docutils literal notranslate"><span class="pre">fail_fast</span></code> is used by the system, which overrides the value used in the <code class="docutils literal notranslate"><span class="pre">config</span></code> section</p></li>
<li><p>you may add fields here as your application requires</p></li>
<li><p>a list of fields assigned values that persist over the execution life of the test item definition</p></li>
<li><p>Prism key words,</p>
<ul>
<li><p><code class="docutils literal notranslate"><span class="pre">fail_fast</span></code> overrides <cite>fail_fast</cite> in the <code class="docutils literal notranslate"><span class="pre">config</span></code> section</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">enable</span></code> (defaults to <cite>true</cite>) when set to false, disables all tests in <code class="docutils literal notranslate"><span class="pre">items</span></code></p></li>
</ul>
</li>
<li><p>add fields here as your application requires</p></li>
<li><p>these <code class="docutils literal notranslate"><span class="pre">options</span></code> fields are available programmatically to each test <code class="docutils literal notranslate"><span class="pre">items</span></code></p>
<ul>
<li><p>for example, you could have a global value assigned here that any test <code class="docutils literal notranslate"><span class="pre">items</span></code> can access</p></li>
Expand All @@ -269,7 +278,7 @@ <h2>tests<a class="headerlink" href="#tests" title="Permalink to this headline">
<li><p>a list of test <code class="docutils literal notranslate"><span class="pre">items</span></code></p></li>
<li><p>the system will execute these tests in order</p>
<ul>
<li><p><code class="docutils literal notranslate"><span class="pre">id</span></code> - A unique identifier of the test</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">id</span></code> - A unique identifier of the test, which is also the Python (class) function name in <cite>module</cite>.</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">enable</span></code> - <cite>true</cite> or <cite>false</cite>, can be omitted if always enabled</p></li>
<li><p><code class="docutils literal notranslate"><span class="pre">args</span></code> - a list of key/value pairs of any name/value required by your application</p>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion docs/build/html/searchindex.js

Large diffs are not rendered by default.

28 changes: 20 additions & 8 deletions docs/source/prism_scripts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ use the `subs` feature. Otherwise `subs` are used to create a `Traveller`, whic

`subs` are useful for generating :ref:`prism_travellers:Travellers`.

Here is a full example of what `subs` section could look like (taken from example `prod_1.scr`,
Here is a full example of what `subs` section could look like (taken from example `prod_1.scr`),

::

Expand Down Expand Up @@ -152,9 +152,15 @@ in the Test Config view.
// "config": "optional"
},

``product``, ``bom``, ``lot``, ``location`` are fields that you define a meaning specific to your operation.
``product`` - 32 character length field.

``config`` is an optional 16 character length field.
``bom`` - 32 character length field. Note `bom` stands for Bill of Materials.

``lot`` - 16 character length field.

``location`` - 128 character length field.

``config`` - (optional) 16 character length field.

Defining rules and a naming convention for these fields will help you later when you need to make database searches
for specific sets of results. This is important.
Expand Down Expand Up @@ -204,6 +210,8 @@ This section has a list of test definitions
Consider the following ``test`` section, which only has ONE test definition in the JSON list. An example of more than
one test definition will be shown later.

See ``public/prism/scripts/example/prod_v0/tst00xx.py`` for usage.

::

"tests": [
Expand All @@ -226,13 +234,17 @@ one test definition will be shown later.

``module``

* a dot notation path to the python code that is associated with this test definition
* a dot notation path to the Python code that is associated with this test definition

``options``

* a list of fields assigned values that persist over the execution life of the test definition
* only ``fail_fast`` is used by the system, which overrides the value used in the ``config`` section
* you may add fields here as your application requires
* a list of fields assigned values that persist over the execution life of the test item definition
* Prism key words,

* ``fail_fast`` overrides `fail_fast` in the ``config`` section
* ``enable`` (defaults to `true`) when set to false, disables all tests in ``items``

* add fields here as your application requires
* these ``options`` fields are available programmatically to each test ``items``

* for example, you could have a global value assigned here that any test ``items`` can access
Expand All @@ -242,7 +254,7 @@ one test definition will be shown later.
* a list of test ``items``
* the system will execute these tests in order

* ``id`` - A unique identifier of the test
* ``id`` - A unique identifier of the test, which is also the Python (class) function name in `module`.
* ``enable`` - `true` or `false`, can be omitted if always enabled
* ``args`` - a list of key/value pairs of any name/value required by your application

Expand Down
6 changes: 3 additions & 3 deletions public/VERSION
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
prev_commit=fc0ef9d878e2050f5043cadcea2199ac913696ab
date=2024-03-21 19:52:27 -0400
prev_commit=e213af0676afefc3e4f38f90c5a0bcaa3cfee773
date=2024-04-10 20:59:51 -0400
branch=master
version=0.7-5-gfc0ef9d
version=0.7-6-ge213af0

0 comments on commit 971cda8

Please sign in to comment.