prathana balaji

Ranch Hand
+ Follow
since Oct 07, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by prathana balaji

Thanks a lot...in that I just got everything that I needed.
Thanks very much
11 years ago
Hi all,
Please someone help in learning struts.from where(site or book) can I learn the basics of framework & struts

Regards,
Prathana
11 years ago
Hi dave,

I tried the code which you have send for doTrace()
I am getting the below error in browser,can you please help me

HTTP Status 405 - HTTP method GET is not supported by this URL

--------------------------------------------------------------------------------

type Status report

message HTTP method GET is not supported by this URL

description The specified HTTP method is not allowed for the requested resource (HTTP method GET is not supported by this URL).


--------------------------------------------------------------------------------

Sun Java System Application Server Platform Edition 9.0_01

Regards,
Prathana
11 years ago
Hi Thanks for the information,it is totally theoretical,I can very well understand the concepts,but I don't how to implement it.So I just want some example code/programs to under the implementation of the servlet methods.

Thanks & regards,
Prathana
11 years ago
Hi all,
Please can anyone help me in understanding these methods of servlets,by giving any sample coding for all the methods.

Please..

Thanks in advance
Regards,
Prathana
11 years ago
import junit.framework.TestSuite;
import net.sourceforge.jwebunit.junit.WebTestCase;
import junit.framework.Test;
import junit.framework.TestCase;
import net.sourceforge.jwebunit.util.*;
import net.sourceforge.jwebunit.util.TestingEngineRegistry;


public class GoogleTest extends WebTestCase {
public static String searchLink = "";

public GoogleTest(String name)
{
setTestingEngineKey(TestingEngineRegistry.TESTING_ENGINE_HTMLUNIT);
}


public void setup() {
//setTestingEngineKey(TestingEngineRegistry.TESTING_ENGINE_HTMLUNIT);
getTestContext().setBaseUrl("http://www.google.com");
}


public void testSearch() {
beginAt("/");
assertFormElementPresent("q");
setFormElement("q", "HttpUnit");
submit("btnG");
assertLinkPresentWithText(searchLink);
clickLinkWithText(searchLink);
}

public static void main(String[] args) {
searchLink = args[0];
junit.textui.TestRunner.run(new TestSuite(GoogleTest.class));
}

}


For the above code,While running the testcase from the command prompt I am getting the Following error
There was 1 failure:
1) warning(junit.framework.TestSuite$1)junit.framework.AssertionFailedError: Exc
eption in constructor: testSearch (java.lang.NullPointerException
at net.sourceforge.jwebunit.junit.WebTestCase.setTestingEngineKey(WebTes
tCase.java:1766)
at GoogleTest.<init>(GoogleTest.java:15)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at GoogleTest.main(GoogleTest.java:37)
)
at GoogleTest.main(GoogleTest.java:37)

FAILURES!!!
Tests run: 1, Failures: 1, Errors: 0


Please help me in soving this problem

REgards,
Prathana
11 years ago
Hi lasse,

Can you please suggest me a site from where I can learn Jwebunit to write testcase as well as to run it.Actually I don't know anything about Unit testing for webpages.CAn you please guide me by telling a good book or a good site from where I can learn Jwebunit

Regards,
Pavithra
11 years ago
Hi lasse,
What is your opinion about Cactus (testing tool).and how far these above mentioned tools by you is different
Please help me by suggesting

Regards,
Prathana
11 years ago
thanks a lot lassee,
Actually ,My modules contains servlets as well as JSP so is it possible to opt different testing tool for both or we have to use the common tool

Kindly please advice(suggest) me

Regards,
Prathana
11 years ago
Hi all,
Can any one please suggest me the best stable unit testing for the webpage

Regards,
Prathana
11 years ago
Hi all,
I am new to JSP and Servlet,Can anyone please guide me for starting the basics.please help me

Regards,
Prathana
11 years ago
JSP
Thanks a lot
11 years ago
Hi all,
can anyone help me in calcuating the difference between two date&Time
How can we add particular number of hours to a date & time


Regards,
Prathana
11 years ago
thanks a lot.
jeanne,I know the command line that is given in sql command line
mysqldump -a -u root -p dbname > dbname.sql
How can I call that in java using Runtime.exec()?
Can you please explain me ...

Thanks in advance

Regards
Parthana
Hi all,
Please someone help me --How to take backup automatically from the database(MYSQL) after certains number of records from java GUI.
When the record count exceeds certain count then the records should move from the table to backup.

Regards,
Prathana