Inquiry for If Statement and Datatable.
- This topic has 1 reply, 2 voices, and was last updated 6 years, 3 months ago by
Sasha ZAP.
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
Home › Forums › Ask Expert › Inquiry for If Statement and Datatable.
Hello reishinmarak,
Basically yes, all tests in ZAPTEST work with multiple iterations as long as you enable it in the Test Settings.
The if statement is not a loop, th.ere are other commands for loop (such as While, and For) but these commands are available only in ZAPTEST Enterprise Edition.
You can use some small looping (Only 3 iterations in the Free Edition and Unlimited iterations in ZAPTEST Enterprise Edition) with the If…Then statement in the ZAPTEST Free Edition.
Here is an example of such script (You can set the “A” column’s data in the Datatable with any data you wish, such as, Browsers’ types, numbers, strings, etc):
x = Datatable.Value(“A”)
If x <> 3 Then
MsgBox Datatable.Value(“A”)
End If
To enable the small loop in the above script you need to select the “Run All Rows” in the Test Settings.
Hope this helps.
Thanks,
ZAPTEST Team
Already have an account? Login
Check you SPAM folder if you do not see the email.
Cookie | Duration | Description |
---|---|---|
cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |