Hi Henry,
And please let me know how can I confirm whether
getTestContext().setBaseUrl(http://localhost:5002/bse_refresh);
The above line of code is pointing on the application .Please help me
Thanks in Advance,
Viswa.
On 2/26/07, Julien HENRY <[EMAIL PROTECTED]> wrote:
Can you show me the whole test source, and the HTML code you are trying
to test?
----- Message d'origine ----
De : vbreddy k <[EMAIL PROTECTED]>
À : Usage problems for JWebUnit <[email protected]>
Envoyé le : Lundi, 26 Février 2007, 2h27mn 39s
Objet : Re: [JWebUnit-users] Re : New to JWebUnit
Hi Julien Henry,
Thanks for your reply..As I said I am new to JWebUnit .I am trying to
execute some test .But the result is always Fail , where it has to be
Success. When I tried to execute the test,
beginAt("/login.jsp");
The output is ok(1 test) ;
In the same test , I am trying to test a form and table in my application
,The result is Failure .
Can you please help me out to solve the problem.
Thanks in Advance,
Viswa Bharat.
On 2/25/07, Julien HENRY <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> With latest releases, it is:
>
> *net.sourceforge.jwebunit.util.TestingEngineRegistry
>
> *
>
> Don't forget to consult Javadoc:
> http://jwebunit.sourceforge.net/apidocs/
>
> ++
> Julien
>
> ----- Message d'origine ----
> De : vbreddy k < [EMAIL PROTECTED]>
> À : [email protected]
> Envoyé le : Samedi, 24 Février 2007, 4h42mn 26s
> Objet : [JWebUnit-users] New to JWebUnit
>
>
> Hi Friends,
>
> I am new to JWebUnit .I have to use that in my current application.Itried to
execute a
> Test.But I am facing compilation error while I am importing * *
>
> *import** net.sourceforge.jwebunit.TestingEngineRegistry*;
>
> Can anybody help me with the solution .And if possible please tell me
> cleaaarly how to add plugin with Eclipse IDE.
> *
>
> package
> *com.test;
>
> *
>
> import
> *junit.framework.TestSuite;*
>
> import
> *net.sourceforge.jwebunit.WebTestCase;
>
> *
>
> import
> *net.sourceforge.jwebunit.*TestingEngineRegistry*;
>
> //import net.sourceforge.jwebunit.util.TestContext;
>
> *
>
> public
> **class* ExampleWebTestApp *extends* WebTestCase {
>
> *public* *static* *void *main(String[] args) {
>
> junit.textui.TestRunner.*run*(
> *new* TestSuite(ExampleWebTestApp.*class* ));
>
> }
>
> *public* *void* setUp() {
>
> getTestContext().setBaseUrl(Messages.*getString*(
> "ExampleWebTestApp.0")); //$NON-NLS-1$
>
> setTestingEngineKey(TestingEngineRegistry.
> *TESTING_ENGINE_HTMLUNIT*);
>
> System.
> *out*.println("Cookies" + getTestContext().getCookies()); //$NON-NLS-1$
>
> }
>
> *public* *void* testAllBusinessServices() {
>
> *try* {
>
> beginAt(
> "/wsee_its_edit.jsp");
>
> assertTitleEquals(
> "Edit WS Intermediary Service");
>
> }
> *catch* (Exception ex) {
>
> ex.printStackTrace();
>
> }
> *finally* {
>
> //assertKeyPresent("test_message");
>
> assertFormPresent(
> "myform"); //$NON-NLS-1$
>
> assertSubmitButtonPresent(Messages.*getString*(
> "ExampleWebTestApp.4")); //$NON-NLS-1$
>
> assertTablePresent(
> "webTest"); //$NON-NLS-1$
>
> }
>
> }
>
> }
>
> --
> Thanks in Advance,
> Viswa Bharat Reddy
>
>
> --
> Regards
> Viswa Bharat Reddy
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> JWebUnit-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jwebunit-users
>
>
>
> ------------------------------
> Découvrez une nouvelle façon d'obtenir des réponses à toutes vos
> questions ! Profitez des connaissances, des opinions et des expériences des
> internautes sur Yahoo!
Questions/Réponses<http://fr.rd.yahoo.com/evt=42054/*http://fr.answers.yahoo.com>
> .
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> JWebUnit-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jwebunit-users
>
>
--
Regards
Viswa Bharat Reddy
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
JWebUnit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users
------------------------------
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions
! Profitez des connaissances, des opinions et des expériences des
internautes sur Yahoo!
Questions/Réponses<http://fr.rd.yahoo.com/evt=42054/*http://fr.answers.yahoo.com>
.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
JWebUnit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users
--
Regards
Viswa Bharat Reddy
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
JWebUnit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users