Two Laptop Bag*
The moose likes Struts and the fly likes Testing Struts applications with Selenium Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Testing Struts applications with Selenium" Watch "Testing Struts applications with Selenium" New topic
Author

Testing Struts applications with Selenium

O. Ziggy
Ranch Hand

Joined: Oct 02, 2005
Posts: 430

Im using a struts application whereby the first time the user logs in he/she gets authenticated from a different server. The server authenticates the user based on his Desktop's login credentials. If the user is valid he/she is forwarded to my application which resides on a Tomcat webserver.

Upon entering my application a session is created based on the information from the server. If no information is sent no session is created.

The problem i have is that everytime i try to open the main page i get my session expired page and selenium reports this error.

http://localhost:7000/project/main/home Permission denied

and

Selenium failure. Please report to selenium-dev@openqa.org, with error details from the log window. The error message is: Permission denied

I have read that the above error means that i need to put the selenium files on the same webserver as my application. Here is the structure of my application showing where i put selenium


A few issues i should mention

- As my application is a struts app, all links are references to struts Actions in the struts-config file
- I loaded selenium by going to url http://localhost:7000/project/selenium/TestRunner.html (Does this needs to be configured in struts? if so how?)

I really need to sort this out so any help will be appreciated.
[ November 28, 2006: Message edited by: O. Ziggy ]
 
GeeCON Prague 2014
 
subject: Testing Struts applications with Selenium