[ptt-users] Enable redirect in TestMaker functional tests

DGeorgie at wiley.com DGeorgie at wiley.com
Tue Mar 11 11:00:04 PST 2008


I have problem with a functional test. When the script runs it generates 
these errors in the TestNode output.

Executing time 0
TestRunListeners
TestIndex
Test #1/1 : ./localhost/ProfLogin_loop2.tg4w
- Redirect requested but followRedirects is disabled
- Redirect requested but followRedirects is disabled
- Redirect requested but followRedirects is disabled


The functional test was created based on a script generated by TestGen4Web 
0.50.2. I am using TestMaker 5.1 on Fedora 8 and Java 6 build 3. 
The TestGen4Web script executes correctly in FireFox browser.

I have found in TG4W  forums other people with the same problem but no 
solution for the problem. I couldn't find any TestMaker setting that could 
affect the Redirect behavior which is really strange because I am sure 
most of modern Web applications are using redirects extensively. Without a 
support for it any testing tool would be useless.

I also converted the TG4W script to a Java program hoping I would be able 
to tweak the Java code and enable the HTTP redirects. BTW the Jython 
translation didn't work.

The generated code has a class which executes the test.
InterpreterContext context = new InterpreterContext(this.config);

I am still trying to find a documentation for this class. I need help with 
two things here:
1) how to correctly set -up the classpath to compile and execute the Java 
program
2) how to enable the HTTP redirects in the Java program.

Thanks in advance!

Dimitar 


More information about the Users mailing list