It's easy to get that info. Or you can assume it. The monitoring tests
create a domain which uses the defaults. I would just wire in the
defaults.
Remember this important factoid:
GF servers are guaranteed to have the current directory, which can NOT
be changed at runtime, to the server's config directory.
Thus docroot is guaranteed to be here: "../docroot" (it's guaranteed
because the tests use the default location for docroot)
For the fullpath do this:
File docroot = SmartFile.sanitize(new File("../docroot"));
On 3/21/2011 5:26 PM, Carla Mott wrote:
> Hi,
>
> I'm working on adding some webtier tests and see that I need info like
>
> admin host, admin port, docroot, etc. Can I get that info easily?
> What assumptions can we make? Can I hard code 'http://localhost:4848'?
>
> Can I use the REST API? Seems yes but want to make sure.
>
> Thanks,
> Carla
--
Oracle <http://www.oracle.com>
Byron Nevins | Principal MTS
Phone: +1 6503958992 <tel:+1%206503958992>
Green Oracle <http://www.oracle.com/commitment> Oracle is committed to
developing practices and products that help protect the environment