• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Help me out in HTTPUNIT

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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: 43016
76
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
it is showing error in all the field..
 
Ulf Dittmer
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • 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?
 
    Bookmark Topic Watch Topic
  • New Topic