Menu

Validating text with forbidden symbols

Help
Lesya
2006-09-27
2013-04-25
  • Lesya

    Lesya - 2006-09-27

    On the page I have the message that I have to validate. This message looks like this: The ‘Attribute Name’ is required. Jameleon doesn't want to read inverted commas(perhaps such symbols are forbidden in Jameleon). Please, help me to solve this problem.

     
    • Christian Hargraves

      Please give me more information. I need a sample test script and the name of the charset you are writing your test case in.

       
      • Lesya

        Lesya - 2006-09-29

        I use Jiffle plugin. The charset used on the page is <meta http-equiv="Content-Type" content="text/html;CHARSET=UTF-8" />

        I need to find such a text:
        The ‘Attribute Name’ is required
        I tried to do it so:

        1) <jm:ie-validate-text functionId="Verify warning" text="The &#145;Attribute Name&#146; is required" />
        2)  <jm:ie-validate-text functionId="Verify warning" text="The 'Attribute Name' is required" />

        3)   <jm:ie-validate-text functionId="Verify warning" text="The ‘Attribute Name’ is required" />

        Nothing works(.

         
        • Christian Hargraves

          The following things might help:

          1. You can set the charset in your XML file
          2. You can set the value in a properties file and then use the variable name inside the XML instead of the actual text.

           
    • rafatkd

      rafatkd - 2006-10-05

      How can i define the CharSet at XML file?

       
      • Christian Hargraves

        If the XML parser is complaining, then you need to set the encoding to the correct type in the prolog. For example:

        <?xml version="1.0" encoding="utf-16" ?> 

        For CSV files, you set the csvCharset attribute to whatever charset you want.

        http://jameleon.sourceforge.net/syntax-reference.html#csv_tag

        If you then want the HTML to be generated in the correct charset, set the genTestCaseDocsEncoding config variable in Environment.properties or in the testcase tag itself.

        http://jameleon.sourceforge.net/testCaseTag.html

         

Log in to post a comment.