ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Test functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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 automatic test. It must be used in the event "Before the test".
Example
// The current test performs an addition, it is described with 3 parameters (p1, p2 and res)
// The code of the test scenario is res=p1+p2
// In the code before test, add the test data
TestAddIteration(1, 0, 1)
TestAddIteration(2, 2, 4)
TestAddIteration("a", "b", "ab")
// The test scenario will be run 3 times and it will check that
// 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 event "Test scenario".
<Parameter 2>: Optional variant
Second parameter to pass to the test. This parameter was defined in the event "Test scenario".
<Parameter N>: Optional variant
Nth parameter that will be passed to the test. This parameter was defined in the event "Test scenario".
Business / UI classification: Neutral code
Component: wd270testexe.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help