views:

46

answers:

1

I try to write selenium tests for a web site.

I used a tomcat server with a MemoryRealm authentication cf <Realm className="org.apache.catalina.realm.MemoryRealm" pathname="/DEV/tomcat1/conf/tomcat-users.xml"/>

I didn't find how to set authentication in my tests. I tried to put in "selenium.open"

selenium.open("http://user:pass@myserver:8080/index.jsp");

Selenium launch the server, open the web site, bu stay on auth without fill the user/pass form.

Is it just not possible and i have to change tomcat auth, or i juste miss something ?

A: 

hi boys, i try the same and for mi it work in some case. for example:

this work only for apache in linux and in some IIS $this->setBrowserUrl("http://USER:PASSWORD@IP:PORT");

pmg
I thought, maybe it works with a IIS/Apache authentication, but not a tomcat authentication.
Antoine