diff options
| author | Alexandra Schladebeck | 2013-09-30 14:47:22 +0000 |
|---|---|---|
| committer | Alexandra Schladebeck | 2013-09-30 14:47:22 +0000 |
| commit | 78237bc8f95a1f3c2c069e4ac404983e3c99e0dc (patch) | |
| tree | 7e8c107f1fc89a01c2fb2e805756517b80d6b0a0 | |
| parent | 82235b97d937320d4e82df677c75e621a5ea8df5 (diff) | |
| download | org.eclipse.jubula.core-78237bc8f95a1f3c2c069e4ac404983e3c99e0dc.tar.gz org.eclipse.jubula.core-78237bc8f95a1f3c2c069e4ac404983e3c99e0dc.tar.xz org.eclipse.jubula.core-78237bc8f95a1f3c2c069e4ac404983e3c99e0dc.zip | |
Sprint task: documents new functions
| -rw-r--r-- | org.eclipse.jubula.documentation/manual/en/tex/Tasks/Testdata/functions.tex | 10 | ||||
| -rw-r--r-- | org.eclipse.jubula.documentation/releasenotes/en/tex/72/jubulafeatures.tex | 9 |
2 files changed, 19 insertions, 0 deletions
diff --git a/org.eclipse.jubula.documentation/manual/en/tex/Tasks/Testdata/functions.tex b/org.eclipse.jubula.documentation/manual/en/tex/Tasks/Testdata/functions.tex index 1a80ec409..367e7de2e 100644 --- a/org.eclipse.jubula.documentation/manual/en/tex/Tasks/Testdata/functions.tex +++ b/org.eclipse.jubula.documentation/manual/en/tex/Tasks/Testdata/functions.tex @@ -66,6 +66,16 @@ SupportUser & John Support \\ \end{quote} This will look in the central data set called \bxname{Customer}, locate the value \bxname{SuperUser} in the \bxname{CUSTOMER\_TYPE} column, and use that line to choose the cell in the \bxname{CUSTOMER\_NAME} column -- Alice Super. +\textbf{Wrapped functions from other libraries}\\ +You can also use the following functions in your tests. For full documentation on them, please refer to the respective library. +\begin{description} +\item [randomInt(exclusive maximum value)]{Use this function to generate a random integer up to but not including the value you specify. The function is from \bxname{org.apache.commons.lang.math.RandomUtils}} +\item [replaceAll(string,regular expression,replacement)]{Use this function to replace all of the parts of a string you specify with something else. The string to perform the replacement on is entered as the \bxname{string}, the part(s) of the string to replace are defined by the \bxname{regular expression}, and the string to replace it with is given as the \bxname{replacement}. This function is from \bxname{java.util.regex}.} +\item [uuid()]{This function generates a universal unique identifier. The function is from \bxname{java.util.UUID}.} +\item [base64Encode(string)]{This function encodes a string to base 64. The function is from \bxname{org.apache.commons.codec.binary.Base64}.} +\item [base64Decode(string)]{This function decodes a string from base 64. The function is from \bxname{org.apache.commons.codec.binary.Base64}.} +\end{description} + \subsubsection{Embedding functions in other functions} Functions can be added as arguments to other functions. If, for example, you want to use the result of a subtraction as the first argument of your addition, you could write it like this:\\ \bxshell{?add(?sub(2,1),1)}\\ diff --git a/org.eclipse.jubula.documentation/releasenotes/en/tex/72/jubulafeatures.tex b/org.eclipse.jubula.documentation/releasenotes/en/tex/72/jubulafeatures.tex index 4dbfe51ef..660326420 100644 --- a/org.eclipse.jubula.documentation/releasenotes/en/tex/72/jubulafeatures.tex +++ b/org.eclipse.jubula.documentation/releasenotes/en/tex/72/jubulafeatures.tex @@ -55,3 +55,12 @@ http://HOSTNAME:PORTNUMBER/dashboard \item You can now also use the next and previous error buttons for the \gdtestresultview{} that appears during test execution. \end{itemize} +\textbf{New test data functions} +There are new functions available in the \ite{}: +\begin{itemize} +\item randomInt(exclusive maximum value) -- to generate a random integer. +\item replaceAll(string,regular expression,replacement) -- to replace parts of a string with something else. +\item uuid() -- to generate a universal unique ID. +\item base64Encode(string) -- to encode a string to base64. +\item base64Decode(string) -- to decode a string from base64. +\end{itemize} |
