Kbase P95412: How to create a simple testing program for WebSpeed
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  2/4/2005 |
|
Status: Unverified
GOAL:
How to create a simple testing program for WebSpeed
GOAL:
How to create a simple testing program using CGI Wrapper
FIX:
Using AppBuilder, create a new program using CGI Wrapper by selecting into File - > New and double click on CGI Wrapper from the list. This is going to create a small window and display a treeview in it
Expand the treeview by double clicking on "Code Sections"
Double click on Procedure process-web-request, the section editor will appear displaying the code of the process-web-request
Scroll Down and find the comment bellow:
/* Output your custom HTML to WEBSTREAM here (using {&OUT}). */
5. Add the following command above the comment:
{&OUT} TODAY.
6. Save the file into a directory. eg: c:\temp\proc.p
Keep in mind that to be able execute the program, you must make sure that you have either saved the file into a directory contained into PROPATH or add the directory to the PROPATH of the Agent. You can use the option PROPATH from Webtools to confirm that the procedure is into PROPATH. To use this option:
Click on the link "ProPath" from the Sessions menu
Type in the procedure name or relative pathname plus procedure name. eg: proc.p
Click on "Submit Query"
You should receive a message confirming that the program was found successfully.
7. Compile the program using option "File Tools" from WebTools. To use this option:
Click on the link "File Tools"
Highlight the program
click on the compile option
8. Finally, to run the program just take the same URL from Webtools but remove "workshop" of the end of the URL and add you program
So, instead of use http://localhost/scripts/cgiip.exe/WService=wsbroker1/workshop use http://localhost/scripts/cgiip.exe/WService=wsbroker1/proc.p