× 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.



Ok, danger! I've had a thought about that recently...

You can test an interactive application in a batch setting by using Albert York's TNAPI tool. This api opens a telnet session (interactive job) while giving access to the 5250 data stream for input and output. The "script" that drives the keyboard sends up commands to run the program, and to navigate through the screens to "capture" the pages that contain the details.

Instead of using this as your testing environment, though, you could use this to implement this program as a web service. In reality, this is exactly what HATS does, so if you already have that tool, you should look closer at that option.

Once available as a web service, I'd think it would be easy to test these applications in sophisticated ways... I've not done any Q/A work for web services, but I'd think that area would be well tooled...

The caveat is that, for each change to the DSPF, you must change the service interface.

-Eric DeLong

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Dave
Sent: Thursday, March 29, 2012 9:18 AM
To: RPG programming on the IBM i / System i
Subject: Re: Interactive program testing

Well, with a non-interactive program or a procedure, we create a test
library, and a program that runs the program to be tested and stores
all the results which it compares with the results of the previous
test. In theory, easy for the next programmer who modifies the
program. Not possible with an interactive program.

Le 29 mars 2012 13:39, sjl <sjl_abc@xxxxxxxxxxx> a écrit :
Dave -

I test interactive green-screen programs in much the same way as any other
program... ;-)

One thing I always check for in a subfile program is if it handles an empty
subfile correctly, i.e., no records were loaded into the subfile.

An appropriate response to this question could fill a good-sized book.  Can
you be a bit more specific?

- sjl


"Dave"  wrote in message
news:mailman.6369.1333001153.14575.rpg400-l@xxxxxxxxxxxx...

Hi all,

How are you going about testing your interactive green screen applications?

--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



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.