Yes, but I did a work-around....
My main Test has no parameters. Then I call other procedures/Methods....
Dcl-proc test_multiple_scenario export;
For x = 1 to %elem(MyArray); // Could be file, data-area, etc...
Verify_different_parameter_Results( MyArray(x) );
So, that is one way to do it...
But, usually, I want code each different test script. But, this sort of method does work!
From: WDSCI-L <wdsci-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Mizerski Tomasz
Sent: Friday, November 22, 2019 5:41 AM
To: 'wdsci-l@xxxxxxxxxxxxxxxxxx' <wdsci-l@xxxxxxxxxxxxxxxxxx>
Subject: [WDSCI-L] RPGUNIT Parameterized Unit Tests
Is there any way to use rpgunit like for parameterized tests? What I mean exactly is to use one test procedure many times for different data every time.
Here is my example: I have created a file with testing scenarios - each record contains input and output data for procedure I want to test. Let's assume I have got 50 such rows. Now, is there any way to use one test procedure for 50 times instead of creating 50 test procedures?
This email message and any attachments may contain confidential information and may be privileged. If you are not the intended recipient or otherwise not authorized to receive this message, you are prohibited to use, copy, disclose or take any action based on this email or any information contained herein. If you are not the intended recipient, please advise the sender immediately by replying to this email and permanently delete this message and any attachments from your system.
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
or email: WDSCI-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at https://archive.midrange.com/wdsci-l
Help support midrange.com by shopping at amazon.com with our affiliate
As an Amazon Associate we earn from qualifying purchases.