Setting Up a Test Environment

Creating a Test Environment Profile

To create a test environment for RPG Smart Pages, you simply have to create a new iSeries Server Profile. The test environment will generally run in its own web server instance, using its own HTTP port, compiling into its own RPG/CGI library, etc. Here is an example:

This profile is set up as follows:

After creating a new iSeries Profile and making it the selected profile, you should Install and Test the server components that are required to run RPG Smart Pages under this profile (use Tools --> Configure Server --> Install and Test RPG Smart Pages). You may also wish to recreate the HTTP server separately to limit it to 1 thread (this is recommended for test environments).

The next step is to specify where your test data resides by configuring the library lists. The run-time library list will be empty when you first create the environment, so you must add the appropriate test libraries to it. You may reuse an existing compile-time library list or create a new one for the test environment.

If you are saving your .rpgsp source files to a folder on the IFS, you may wish to create a new IFS folder for testing, or, you can create a folder for testing on your PC.

A test environment can be shared amongst many developers. In this case, the developers' Test Environment iSeries Profiles must match; however, there is no need for each developer to install and configure server components and run-time library lists -- this only needs to be done once.

Alternatively, each developer could have his or her own test environment running on a unique HTTP port from a unique RPG/CGI library.

 

Switching Between Environments

To switch to and from a test environment, simply select the appropriate iSeries Profile under Tools --> Options. RPGsp always compiles into the currently selected iSeries Profile.

If you are using separate compile-time library lists for Test and Live environments, you will have to select the appropriate compile-time library list on the LIBL Tab under Tools --> Options.

 


Profound Logic Software, Inc.
www.ProfoundLogic.com
(937) 439-7925