Added conditionals to assignment of table parameters. They should only be used if a row value isn't present.

Added nightly acceptance tests, and the synthetic build data to go along with them.
This commit is contained in:
mike.morgan%oregonstate.edu 2006-09-12 03:54:26 +00:00
Родитель 3f76da46d7
Коммит aab0a70064
2 изменённых файлов: 17 добавлений и 11 удалений

Просмотреть файл

@ -93,12 +93,13 @@ class Verify(ColumnFixture):
# Builds an AUS URI based on our test data.
def buildUri(self):
# Assign class variables from FitNesse arguments.
self.host = self.args[0]
self.product = self.args[1]
self.version = self.args[2]
self.platform = self.args[3]
self.locale = self.args[4]
# Assign class variables from FitNesse arguments if they
# are not passed in from the row.
if (not self.host): self.host = self.args[0]
if (not self.product): self.product = self.args[1]
if (not self.version): self.version = self.args[2]
if (not self.platform): self.platform = self.args[3]
if (not self.locale): self.locale = self.args[4]
return '/'.join((self.host, self.product, self.version, \
self.build, self.platform, self.locale, \

Просмотреть файл

@ -1,4 +1,4 @@
1 Variables
!1 Variables
!define COMMAND_PATTERN {python %m -v %p}
!define TEST_RUNNER {/Users/morgamic/pyfit/fit/FitServer.py}
!define host {http://khan.mozilla.org/~morgamic/austest/update/2}
@ -78,8 +78,13 @@
|9000000001|channel|complete|partial|Windows_98|false|false|false|true|
!1 Nightly Updates
1 one-off update serving both complete and partial
2 outdated (>1 off) update serving only a complete
3 version mapping to another branchVersion (1.0->1.x)
1 outdated (>1 off) update serving only a complete (1.5.0.5->1.5.0.x)
2 one-off update serving both complete and partial (1.5.0.5->1.5.0.x)
3 client already at the latest build requests an update (no update shoudl be offered)
4 version with no branchVersion in AUS config (6.0->?)
TODO: add aus.Nightly and adjust fixtures to include variable versions.
|aus.Verify|${host}|${product}|${version}|${platform}|${locale}|
|version|build|channel|complete|partial|hasUpdate?|hasComplete?|hasPartial?|isValidXml?|
|1.5.0.5|1100000001|nightly|complete|partial|true|true|false|true|
|1.5.0.5|1100000002|nightly|complete|partial|true|true|true|true|
|1.5.0.5|1100000003|nightly|complete|partial|false|false|false|true|
|6.0|1100000001|nightly|complete|partial|false|false|false|true|