Index: docs/Makefile ================================================================== --- docs/Makefile +++ docs/Makefile @@ -5,7 +5,7 @@ lyx -e html megatest.lyx cp megatest.html.LyXconv/* html/ fossil add html/* megatest.pdf : megatest.lyx - lyx -e pdf megatest.pdf + lyx -e pdf megatest.lyx Index: docs/html/dashboard-test.png ================================================================== --- docs/html/dashboard-test.png +++ docs/html/dashboard-test.png cannot compute difference between binary files Index: docs/html/dashboard.png ================================================================== --- docs/html/dashboard.png +++ docs/html/dashboard.png cannot compute difference between binary files Index: docs/html/megatest.html ================================================================== --- docs/html/megatest.html +++ docs/html/megatest.html @@ -2,11 +2,11 @@ - + Megatest User Manual
@@ -24,15 +24,12 @@

Matthew Welland

-Sept. 20, +Jan. 29, 2012

-
-\thispagestyleempty -


©2011 Matthew Welland. All rights reserved.
@@ -213,73 +210,81 @@
Section 9: Generating an OpenDocument Spreadsheet from the Database
-Section 10: Flows -
-
-Section 11: Flow Specification and Running (Not released yet) -
-
-
-Subsection 11.1: Write your flow file -
-
-Subsection 11.2: Run the flow -
-
-
-Section 12: Monitor based running -
-
-
-Subsection 12.1: Monitor logic -
-
-
-Section 13: Reference -
-
-
-Subsection 13.1: Configuration file Syntax -
-
- - - - - -
-
-Subsection 13.2: Environment variables -
-
-Subsection 13.3: megatest.config -
-
-Subsection 13.4: runconfigs.config file -
-
-Subsection 13.5: Writing tests -
-
- - + + + + + + + +
Appendix A: Data @@ -706,20 +711,33 @@
You can optionally specify the keys for your database to limit further the runs to extract into the spreadsheet. The first sheet contains all the run data and subsequent sheets contain data rolled up for the individual tests.

-10 Flows +10 Introspection +

+

+10.1 Getting previous test paths +

+
+
+
megatest -test-paths -target %/%/% :runname % -testpatt % -itempatt % :status PASS 
+
+
+ +
+

+11 Flows

A flow specifies the tests to run, the order and dependencies and is managed by a running megatest process.

-11 Flow Specification and Running (Not released yet) +12 Flow Specification and Running (Not released yet)

-11.1 Write your flow file +12.1 Write your flow file

flows/<flowname>.config
@@ -745,43 +763,43 @@

-11.2 Run the flow +12.2 Run the flow

megatest -runflow <flowname> :FIELD1 val1 :FIELD2 val2 :runname wk32.4
 

-12 Monitor based running +13 Monitor based running

-12.1 Monitor logic +13.1 Monitor logic

Note: The monitor is usable but incomplete as of Megatest v1.31. Click on the “Monitor” button on the dashboard to start the monitor and give it a try.
figure monitor-state-diagram.png

-13 Reference +14 Reference

-13.1 Configuration file Syntax +14.1 Configuration file Syntax

Note: whitespace is preserved including at the end of line. Ensure your entries only have whitespace at the end of line when needed to avoid problems.

-13.1.1 Sections +14.1.1 Sections

[section name]
 
@@ -790,11 +808,11 @@
This creates a section named “section name”

-13.1.2 Variables +14.1.2 Variables

VARX has this value
 
@@ -803,11 +821,11 @@
The variable “VARX” will have the value “has this value”

-13.1.3 Includes +14.1.3 Includes

[include filename]
 
@@ -816,11 +834,11 @@
The file named “filename” will be included as if part of the calling file. NOTE: This means no section can be named “include “ (with the whitespace).

-13.1.4 Setting a variable by running a command +14.1.4 Setting a variable by running a command

VARNAME [system ls /tmp]
 
@@ -829,11 +847,11 @@
The variable “VARNAME” will get a value created by the Unix command “ls /tmp”. All lines of output from the command will be joined with a space.

-13.1.5 Notes +14.1.5 Notes

  • Some variables are infered as lists. Each token on the line separated by whitespace will be member of the list.
  • @@ -841,11 +859,11 @@ Comments (lines starting with #) and blank lines are ignored.

-13.2 Environment variables +14.2 Environment variables

@@ -931,11 +949,11 @@

-13.3 megatest.config +14.3 megatest.config

@@ -1120,11 +1138,11 @@

-13.4 runconfigs.config file +14.4 runconfigs.config file

@@ -1223,14 +1241,14 @@
TESTPATH /nfs/testing/megacorp_runs

-13.5 Writing tests +14.5 Writing tests

-13.5.1 testconfig file +14.5.1 testconfig file

@@ -1343,11 +1361,11 @@

-13.5.2 Command line +14.5.2 Command line

@@ -1690,10 +1708,10 @@ B References Index: docs/html/monitor-state-diagram.png ================================================================== --- docs/html/monitor-state-diagram.png +++ docs/html/monitor-state-diagram.png cannot compute difference between binary files Index: docs/megatest.lyx ================================================================== --- docs/megatest.lyx +++ docs/megatest.lyx @@ -203,11 +203,11 @@ \backslash renewcommand{ \backslash -revisionNumber}{v1.25} +revisionNumber}{v1.36} \end_layout \end_inset @@ -220,28 +220,12 @@ \begin_layout Author Matthew Welland \end_layout \begin_layout Date -Sept. - 20, -\end_layout - -\begin_layout Standard -\begin_inset ERT -status open - -\begin_layout Plain Layout - - -\backslash -thispagestyle{empty} -\end_layout - -\end_inset - - +Jan. + 29, 2012 \end_layout \begin_layout Standard \begin_inset Newpage newpage \end_inset @@ -404,11 +388,11 @@ \begin_inset Text \begin_layout Plain Layout \begin_inset ERT -status collapsed +status open \begin_layout Plain Layout \backslash @@ -1528,10 +1512,34 @@ \begin_layout Standard You can optionally specify the keys for your database to limit further the runs to extract into the spreadsheet. The first sheet contains all the run data and subsequent sheets contain data rolled up for the individual tests. +\end_layout + +\begin_layout Section +Introspection +\end_layout + +\begin_layout Subsection +Getting previous test paths +\end_layout + +\begin_layout Standard +\begin_inset listings +inline false +status open + +\begin_layout Plain Layout + +megatest -test-paths -target %/%/% :runname % -testpatt % -itempatt % :status + PASS +\end_layout + +\end_inset + + \end_layout \begin_layout Section Flows \end_layout