Hi Mustafa,
your site must first be initialized before that call returns a site.
The process is described here:
http://rifers.org/wiki/display/RIFE/Out+of+container+testingIf you want to access the site that you declared in an XML file (as
you normally do), you can either initialize a repository with the
site participant as you can see here:
http://rifers.org:8088/viewrep/rifers/rife-jumpstart/trunk/tests/java/
com/uwyn/rife/jumpstart/TestApplication.java?r=HEAD
It's also possible to create a temporary site from an XML inside the
testcase for instance, like this:
SiteBuilder builder = new SiteBuilder("site/yoursite.xml",
ResourceFinderClasspath.getInstance());
builder.getSite();
Best regards,
Geert
On 1-feb-06, at 12:34, mustafa sener wrote:
> Hi all,
> I have a problem about out of container testing. When I call
> Site.getRepInstance() method it returns a null Site pointer. Do I
> need any configuration before starting testing? or is tehere a bug?
>
> Thanx..
>
>
> What are the most popular cars? Find out at Yahoo! Autos
> _______________________________________________
> Rife-devel mailing list
>
Rife-devel@...
>
http://lists.uwyn.com/mailman/listinfo/rife-devel--
Geert Bevin Uwyn bvba
"Use what you need" Avenue de Scailmont 34
http://www.uwyn.com 7170 Manage, Belgium
gbevin[remove] at uwyn dot com Tel +32 64 84 80 03
PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net