• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Testing Struts applications with Selenium

 
Ranch Hand
Posts: 430
Android VI Editor Debian
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
It is an experimental device that will make my mind that most powerful force on earth! More powerful than this tiny ad!
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!