Skip to content

Instantly share code, notes, and snippets.

View rlgomes's full-sized avatar

Rodney Gomes rlgomes

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<script xmlns="http://dtf.org/v1" name="distributed_store_retrieve">
<info>
<author>
<name>Rodney Gomes</name>
<email>rlgomes@yahoo-inc.com</email>
</author>
<description>
Example test used to show how to share information between concurrently
<?xml version="1.0" encoding="UTF-8"?>
<script xmlns="http://dtf.org/v1" name="store_retrieve">
<info>
<author>
<name>Rodney Gomes</name>
<email>rlgomes@yahoo-inc.com</email>
</author>
<description>
Example test used to show how to share information between concurrently
<?xml version="1.0" encoding="UTF-8"?>
<script xmlns="http://dtf.org/v1" name="store_10_files">
<info>
<author>
<name>Rodney Gomes</name>
<email>rlgomes@yahoo-inc.com</email>
</author>
<description>
Simple test that creates 10 files on box.net and then removes them.
</description>
<distribute func="const(10)"
range="1..5"
timer="1m">
<log>Executed once!</log>
</distribute>
<parallelloop property="i" range="1..10">
<parallelloop property="j" range="1..20">
<log>${i}.${j}</log>
</parallelloop>
</parallelloop>
<parallelloop property="i" range="1..10">
<log>${i}</log>
</parallelloop>
<parallel>
<for property="j" range="[1..4]">
<local>
<echo>Echo ${j}</echo>
</local>
</for>
<for property="j" range="[5,6]">
<local>
<echo>Echo ${j}</echo>
</local>
<!--
Example XSL that is used in the static Advanced Language Features tutorial that
shows "How to update your tests between different releases" and in this
specific case this is all about migrating between v1 of the Google static maps
API to v2.
This stylesheet is intended to be used with Saxon 9.x+ on most linuxes you
should be able to install the package "libsaxonb-java"
Command line usage:
<call function="get_map">
<property name="center" value="${sf-ll}"/>
<property name="key" value="${static.maps.key}"/>
<property name="format" value="${format}"/>
<property name="maptype" value="${maptype}"/>
<property name="markers" value="${markers}"/>
<property name="zoom" value="5"/>
</call>
<?xml version="1.0" encoding="UTF-8"?>
<script xmlns="http://dtf.org/v1" name="map_equality_with_markers">
<info>
<author>
<name>Rodney Gomes</name>
<email>rlgomes@yahoo-inc.com</email>
</author>
<description>
Just as the map_equality_test we'll validate that the returned maps
do not differ for lossless image formats even though we're inserting