dcsimg
Report using Junitreport
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Shrikant_k
Posted On:   Friday, May 13, 2005 08:27 AM

hi i am using junitreport to get html report for a testcase. i am writing a junit testcase using cactus to test statsless session bean methos which inserts some value to Db. I am not setting values to all not null fields of a table. So i should get some sql exception. But i am getting html report without this srror message. So any one can help me to get a report which cotains this SQL exception? ttest case; public void testInsert(){ try{ // code to call bean for inserting value to Db fail("fail to insert"); } catch (Exception e){ assertTrue(true); } } pls help me    More>>

hi i am using junitreport to get html report for a testcase.
i am writing a junit testcase using cactus to test statsless session bean methos which inserts some value to Db. I am not setting values to all not null fields of a table. So i should get some sql exception. But i am getting html report without this srror message.
So any one can help me to get a report which cotains this SQL exception?

ttest case;
public void testInsert(){
try{
// code to call bean for inserting value to Db
fail("fail to insert");
}
catch (Exception e){
assertTrue(true);
}
}

pls help me

   <<Less
About | Sitemap | Contact