• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Help me out in HTTPUNIT

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have created a session and follow the session the same page/// after i started for testing it doesn't shows any elements all telling not found.. if i remove the session values it is working fine..


WebConversation con = new WebConversation();
WebRequest req = new GetMethodWebRequest("http://127.0.0.1:8084/Project/update.jsp");
WebResponse res = con.getResource(req);


WebForm form1 = res.getFormWithName("Udpate");
System.out.println(form1);
assertNotNull("No name Like Udpate ", form1);

form1.setAttribute("storeid", "101");

SubmitButton sb = form1.getSubmitButton("ubutton");
System.out.println(sb);
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

What is "it"? What does "all telling not found" mean? Are there any error messages? If so, post the complete stack trace and tell us in which line of code they occur.
 
Vidhya prakash
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it is showing error in all the field..
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Again: What is "it"? Since there is no GUI, what does "showing" mean? If there any error messages, post the complete text and/or stack trace. Also, is the form really called "Udpate"? Is this code that actually runs, meaning is it an exact excerpt from your code?
 
crispy bacon. crispy tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic