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.I tried 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.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

Reply via email to