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\(\);
 
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"\];
/
Special caractere for regular expression are correctly escaped (according to
me).
 
So, I can't find where the error is (I've already have spend several hours
on this problem). To put /Q before can not solve the problem because JMeter
put itself automatically regular expression delimiters.
 
In my page to be tested i have another javascript part, and it is correctly
check by another response assertion.
 
Any idea would be appreciated.
 
Thanks in advance.
 

--
Bruno 

Reply via email to