× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I use a CSV file that contains the test data and expected results. The RPGUnit procedure just reads that file and calls the procedure to be tested.

HTH



-----Original Message-----
From: Mizerski Tomasz [mailto:tomasz.mizerski@xxxxxxxxx]
Sent: Friday, November 22, 2019 4:41 AM
To: 'wdsci-l@xxxxxxxxxxxxxxxxxx' <wdsci-l@xxxxxxxxxxxxxxxxxx>
Subject: [WDSCI-L] RPGUNIT Parameterized Unit Tests

Hello,

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?

Best regards,
Tomek Mizerski

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.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.