Skip to content

Commit 3c7c80f

Browse files
committed
WebApplication Stepper.py: fix port number in default URL
continue adding to WebApplication README
1 parent b9cee4d commit 3c7c80f

2 files changed

Lines changed: 28 additions & 3 deletions

File tree

samples/WebApplication/README.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,12 @@ The modules are:
9797
to drive the web application *webapp*. The script includes test
9898
cases that do on-the-fly testing with *WebModel* and offline tests
9999
with *TestIntSuccess*, *TestIntFailure*, *TestIntTwoFailures*,
100-
and *TestLoginFiveFailures*. (This is the only test script in
101-
the sample that uses *Stepper* and *webapp*.)
100+
and *TestLoginFiveFailures*. Test failures that indicate *ended in
101+
non-accepting state* are expected; repeating those commands with the
102+
*pmt -c 1* option will cause them to succeed. Failures that indicate
103+
*found 0 in page, expected 1* are caused by the persistence bug in
104+
the web application. (This is the only sample that uses *Stepper* and
105+
*webapp*.)
102106

103107
- *test_graphics*: generate graphs from *WebModel*, *OneUserDomain*,
104108
*OneUserScenario*, *OneUserFilter*, and *OneUserNoIntScenario*, alone
@@ -121,4 +125,25 @@ The modules are:
121125
- *test_ls*: show you can run any program in a test script, not just
122126
PyModel programs
123127

128+
- *fsmpy*, *svg*: directories of output files from *test_graphics*
129+
or *test_viewer*
130+
131+
You can view the generated graphics files in a browser. Hover the
132+
pointer over any state bubble to see a tooltip that shows the state
133+
variables in that state.
134+
135+
- *WebModelFSM*: graph generated by exploring *WebModel* alone,
136+
limited only by the *pma -m 50* option (to limit the number of
137+
transitions). Exploration stopped at all the states colored orange.
138+
139+
- *TestIntWrongLogout*, ...: graphs of test suites including traces
140+
that are forbidden by the model. They all reach their own accepting
141+
states, which are colored green.
142+
143+
- *...*: graphs of tests suites composed with the model. Each trace ends
144+
in the last state allowed by the model. If this is not the last state
145+
in the trace from the test suite, it is colored yellow.
146+
147+
(more to come)
148+
124149
Revised Mar 2013

samples/WebApplication/Stepper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Default stepper configuration for
1111
# webapp.py running on localhost at port 8080
1212

13-
site = 'http://localhost:8080/'
13+
site = 'http://localhost:8000/'
1414
path = ''
1515
webAppPage = 'webapp.py'
1616
logoutPage = 'logout.py'

0 commit comments

Comments
 (0)