Skip to content

Instantly share code, notes, and snippets.

@timbuethe
timbuethe / Ranorex-xUnit-CFI2.xsl
Created July 25, 2013 08:19
XSLT to transform Ranorex test protocols to xUnit. Initially created by Christian Fischer.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<xsl:element name="testsuite">
<xsl:attribute name="errors"><xsl:value-of select="count(//activity[(@testcasename and @result='Error')])"/></xsl:attribute>
<xsl:attribute name="failures"><xsl:value-of select="count(//activity[(@testcasename and @result='Failed')])"/></xsl:attribute>
<xsl:attribute name="hostname"><xsl:value-of select="//activity/@host"/></xsl:attribute>
<xsl:attribute name="name"><xsl:value-of select="//activity/@testsuitename"/></xsl:attribute>
<!-- <xsl:attribute name="tests"><xsl:value-of select="sum(//activity/@maxchildren)"/></xsl:attribute> -->
@timbuethe
timbuethe / Save-on-Enter-Return.markdown
Created January 20, 2014 13:18
A Pen by Tim Büthe.
@timbuethe
timbuethe / TestTablePagination
Last active September 23, 2023 18:27
JavaFX TableView with Pagination example
import javafx.application.Application;
import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.value.ObservableValue;
import javafx.collections.FXCollections;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.control.Pagination;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;