Menu

How does It set value in a radio button field

2008-04-18
2013-04-25
  • julen madrid

    julen madrid - 2008-04-18

    Hi,

    I have a page with the next html code:

    <tr><td><input type="radio" name="radio" value="1">Customer Register</td></tr>
    <tr><td><input type="radio" name="radio" value="2">CustomerSelfCare</td></tr>

    And I have my Jamaleon test case:

    <testcase xmlns="jelly:jameleon">
      <test-case-summary>Lock Customer Payments Instruments</test-case-summary>
      <test-case-author>Julen</test-case-author>
      <test-case-level>ACCEPTANCE</test-case-level>
      <functional-point-tested>Lock Customer Payments Instruments</functional-point-tested>
      <httpunit-session baseUrl="http://145.230.58.73:8002/mpi/redirection.jsp" beginSession="true" enableScripting="false">

        <hu-submit-form
            formName="0"
            functionId="Set MSISDN in session">
            <param>
                <param-name>msisdn</param-name>
                <param-value>610515938</param-value>
                <param-type>text</param-type>
            </param>
           
            <param>
                <param-name>radio</param-name>
                <param-value>true</param-value>
                <param-type>radio</param-type>
            </param>
           
            </hu-submit-form>
      </httpunit-session>
    </testcase>

    The param-type doesn't accept by Jamaleon engine.

    How could I set a value to radio button?

    Thanks in advance.

     
    • Christian Hargraves

      you can just set the param-type to "text"

      For example:

      <param>
      <param-name>radio</param-name>
      <param-value>2</param-value>
      <param-type>text</param-type>
      </param>

      will set the radio button to "2".

       

Log in to post a comment.