unit test on RPG

5 pts.
Tags:
RPG/400
Is it possible to do an unit test when you use RPG (rational) on AS400

If Yes, do you neet to install a program or how can you make an unit test ?



Software/Hardware used:
AS400 rational

Answer Wiki

Thanks. We'll let you know when a new response is added.

Set the library list with the program you want to call highest and test data next.

Determine how to call the program and what it should do.
You may want to copy the data files to be altered.
Call it.
Check the results.

Phil

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    I suppose it depends on how you intend the meaning of "unit test". The simplest answer is "Yes. Issue the CALL command to the program with the PARM() values that you want to test over. The run-time environment should control any external objects accessed by the program, e.g., the library list should only allow access to 'test' objects or overrides should redirect to test objects." But that's such an obvious answer that it feels like you have a more specific definition in mind. Can you clarify your question? Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following