ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / Test functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
TestAddIteration (Function)
In french: TestAjouteItération
AjaxNot available
Adds an iteration into the current test and gives the values of test parameters for this iteration.
Remark: This function can only be used in the code of an automation test.. It must be used in the "Before the test" event.
Example
// Le test en cours fait une addition , il est décrit avec 3 paramètres p1,p2 et res
// Le code du scénario de test est res=p1+p2
// Dans le code d'avant test, on ajoute les données de test
TestAddIteration(1, 0, 1)
TestAddIteration(2, 2, 4)
TestAddIteration("a", "b", "ab")
// Ainsi, le scénario de test sera exécuté 3 fois, et vérifiera que
// 1 + 0 = 1
// 2 + 2 = 4
// "a" + "b "= "ab"
Syntax
TestAddIteration(<Parameter 1> [, <Parameter 2> [... [, <Parameter N>]]])
<Parameter 1>: Variant
First parameter that will be passed to the test. This parameter was defined in the "Test scenario" event.
<Parameter 2>: Optional variant
Second parameter to pass to the test. This parameter was defined in the "Test scenario" event.
<Parameter N>: Optional variant
Nth parameter that will be passed to the test. This parameter was defined in the "Test scenario" event.
Business / UI classification: Neutral code
Component: wd300testexe.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help