• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with Radio buttons

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Ho wdo i write Http unit for below code, Please help me out


< table id = "t1" width="97%" height="20px" border="0" cellpadding="0" cellspacing="0" class="tdtitles"
tr
td style="padding-left:3px;"width="12% align="center" valign="middle" background="./../../images/date.jpg"

IN
input type="text" id="in" name="in" maxlength="16" class="Textbox" value="" "onKeyPress "="return Numbers(event)" /td
td width="12% align="center" valign="middle" background="./../../images/date.jpg"
input type="radio" name="radio1" id="radio1" "onClick"="select1()" /
Display /td
td width="19%"align="left" valign="middle" background="./../../images/date.jpg"
input type="radio" name="radio2" id="radio2" "onClick"="select2()"/
All /td
td width="12%"align="left" valign="middle" background="./../../images/date.jpg"
input type="radio" name="radio3" checked="checked" id="radio3" "onClick"="select3()" /
Att /td
td width="12%"align="left" valign="middle" background="./../../images/date.jpg"
input type="radio" name="radio4" id="radio4" "onClick"="select4()" /
Min /td
td width="12%"align="left" valign="middle" background="./../../images/date.jpg"
input type="radio" name="radio5" id="radio5" "onClick"="select5()"
List td
td width="12%"align="left" valign="middle" background="./../../images/date.jpg"
input type="radio" name="radio6" id="radio6" "onClick"="selecttm5()" /
Search /td
/tr
/table
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What have you tried and how does it fail?

Also, I'm surprised you're using HttpUnit since it's a dead project (not maintained anymore). Most people seem to have moved on to HtmlUnit, JWebUnit (which uses HtmlUnit internally), or Selenium.
 
Pen Pentela
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Lasse Koskela:
What have you tried and how does it fail?

Also, I'm surprised you're using HttpUnit since it's a dead project (not maintained anymore). Most people seem to have moved on to HtmlUnit, JWebUnit (which uses HtmlUnit internally), or Selenium.



Hi,

I am new to HttpUnit , writing Httpunit cases for my webapplication. I need to write HttpUnit for page validations and js validations I have raio buttons, textfields, checkboxes in my jsp page.

How do i write Httpunit fro all these raio buttons, textfields, checkboxes and javascript. please give me reply
 
author & internet detective
Posts: 41915
910
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pen,
I don't see the answer to Lasse's question. What do you have so far? Do you have a test that goes to a web page yet?
 
Pen Pentela
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jeanne Boyarsky:
Pen,
I don't see the answer to Lasse's question. What do you have so far? Do you have a test that goes to a web page yet?



Hi,

Please suggest me how do i write HttpUnit for javascript validations like textfiled , checkbox and radio buttons .



Thanks in advance,
BestRegards,
PP
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you reading any of our responses? Maybe you should?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I'm surprised you're using HttpUnit since it's a dead project (not maintained anymore). Most people seem to have moved on to HtmlUnit, JWebUnit (which uses HtmlUnit internally), or Selenium.



While I agree that working with jWebUnit or Selenium is to be preferred, HttpUnit sprang back to life with a new release last week.
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ulf Dittmer:
While I agree that working with jWebUnit or Selenium is to be preferred, HttpUnit sprang back to life with a new release last week.


That's good news! Do you have an idea of how the new HttpUnit compares with HtmlUnit with regard to their JavaScript support?
 
Pen Pentela
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Lasse Koskela:
Are you reading any of our responses? Maybe you should?



yes, I read your responses, but it is recomended to use HttpUnit for my application.

Thanks for your replies
 
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
Pen, what is being commented upon is not so much the use of HttpUnit, but the fact that you still haven't told us what code you have so far, and where specifically you're stuck making progress. If you don't have anything yet, start with the tutorial and cookbook on the HttpUnit web site; those will get you going.
 
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

Do you have an idea of how the new HttpUnit compares with HtmlUnit with regard to their JavaScript support?


No, I don't. When I last wanted to use it, its dormant status prompted me to look at HtmlUnit (which seems to have had big improvements especially in the JS area) and jWebUnit (which has an API that makes for shorter client code). So the fact that jWebUnit internally uses HtmlUnit -and incorporates its latest versions pretty quickly- made the difference for me.
 
Think of how stupid the average person is. And how half of them are stupider than that. But who reads this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic