Skip to content

Reflex1

This example is synced from the reflex-fitnesse repository.

|Import |
|reflex.slim.fixtures.selenium|
|reflex.slim.fixtures.strings |
|reflex.slim.fixtures.dates |
|reflex.slim.fixtures.files |
|script |conf fixture|
|stopOnException;|false |
|script|sel fixture|
|$p= |start; |
|$sel= |table; |
|script |browser fixture|$p |
|navigate;|`https://www.google.com/`|
|click; |//div |
|script |fl fixture |
|$screenshots=|getFiles;|screenshots|
|script |lua fixture|files |$screenshots|
|set; |p |$p |
|run; |p.navigate("`https://www.google.com/`") |
|$re= |run; |return "London", "New York"|2 |
|run; |system = "$re" |
|show |run; |return system |
|run; |for i,v in pairs(files) do print(v) end |
|isEqual;|$re |New York |
|script |dates fixture |
|$date= |today; |dd-MM-yyyy|5|3|2|-1|
|$today= |today; |
|show |monthsBetween;|$date |$today |
|$datesTable=|table; |
|script |lua fixture|$datesTable |
|run; |x = function() return 1 end |
|$x= |get; |x |
|call; |$x |
|$func= |table; |today |
|$func2= |table; |monthsBetween |
|$func3= |get; |Dates |
|$date= |call; |$func |dd-MM-yyyy|5|3|2|-1|
|$today= |call; |$func |
|show |call; |$func2|$date |$today |
|$closeSel=|table; |$sel |close |
|notEqual; |$date |$today |
|isEqual; |$date |$date |
|call; |$closeSel |
|$jsonTest=|run; |return {naam = 'harry'} |
|script|json fixture |
|show |encode;|$jsonTest|