Krysalis Bikini
 
  Font size:      
 

Bikini: Test Script

PDF
PDF

Test Script Layout

Warning
This is very experimental and will change

A test script is a named directory with the following files

  • description.txt
  • Set of post response check triplets.
    • #-name.post (1-first.post)
    • #-name.resp (1-first.resp)
    • check#name.java (1-first.check)

description.txt consites of the "Title" of the test on the first line followed by the description on subsequent lines

post files Contian the text to be sent to the AtomAPI server. Variable inside ${} are replaced before sending.

resp files are the expected response from the AtomAPI server. Variable inside ${} are replaced before evaluation. $[] are for regular expression matching.

check.java files are optional custom java files for testing the response.

Variables and Pattern Matching

Variable look like this ${varname sample value}. In both post and resp files the value is substituted. The "sample value" is used for building documentation.

In resp files you match patterns with $["regexp" varname sample value]. The resp file is evaluated and the value that is matched for the regexp is storged in varname. "sample value" is used for building documentation. is

Implicit variables

Introspection Variables are set from the introspection file at the start of the test run.

Built in variables

Variable NameDefinitionSample Value


Valid HTML 4.01!Valid CSS!