PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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.
Note: 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 corresponds to the first parameter described in edit in the test editor.This parameter was defined in the event "Test scenario".
<Parameter 2>: Optional variant
Second parameter to pass to the test. This parameter corresponds to the second parameter described in edit in the test editor.This parameter was defined in the event "Test scenario".
<Parameter N>: Optional variant
Nth parameter that will be passed to the test. This parameter corresponds to the Nth parameter described in edit in the test editor.This parameter was defined in the event "Test scenario".
Remarks
You also have the ability to add iterations into the test editor directly. See Handling an automatic test for more details.
Component : wd250testexe.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment