On 07/10/05, Bruno CHARLOUP <[EMAIL PROTECTED]> wrote: > Hi all, > I've put the following part of script in a response assertion. > > var criteria = new Array\(\); > > criteria\['R0003'\] = \["Tous Champs", "Titre", "Auteur", "Sujet", "ISBN"\]; > criteria\['R0001'\] = \["Tous Champs", "Titre", "Auteur", "Sujet", "ISBN"\]; > criteria\['R0002'\] = \["Tous Champs", "Titre", "Auteur", "Sujet", "ISBN"\]; > criteria\['R0004'\] = \["Tous Champs", "Titre", "Auteur", "Sujet", "ISBN"\]; > > > Even if my tested page contains this script, I've always the following error > : > > Test failed, text expected to contain /var criteria = new Array\(\); >
This indicates that the expression was valid, but not found. This is probably because of the new lines. You might do better to code the lines as separate patterns on the assertion page. S. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

