×
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.
You are correct, that is a very possible scenario. But can't you just
write a test that invokes P1, then check the result before running the
test that invokes P2? You could write the results to a spoolfile or
another results table and then check what was updated.
Thanks
Bryce Martin
Programmer/Analyst I
570-546-4777
David FOXWELL <David.FOXWELL@xxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
09/08/2009 10:36 AM
Please respond to
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
To
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
cc
Subject
RE: How to test a service program
-----Message d'origine-----
De : rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] De la part de Charles Wilt
procedures. Also by definition, it's up to the programmer to
not only ensure that any global variables are used correctly,
but to define "correctly" in the first place!
Charles,
What about this kind of scenario :
Procedure P1 in a test program reads File1 and updates a record R1.
Later, another programmer writes P2 that also affects the same record,
although that might be a completely unrelated task to that of P1.
The result of the test on procedure P1 might be lost, or worse, it may be
assumed to be correct when it is actually the procedure P2 which is
inducing the expected result.
As an Amazon Associate we earn from qualifying purchases.