noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 53/151: Improve DOC for Scenario


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 53/151: Improve DOC for Scenario
Date: Sat, 4 Feb 2017 17:14:27 +0000 (UTC)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 26fed5b45299e5ae542e531955e03ae1be4b3376
Author: Rachel <address@hidden>
Date:   Fri Dec 16 15:46:58 2016 +0100

    Improve DOC for Scenario
---
 scenario/readme.txt             |   27 +++++++++++++++++++++++++--
 scenario/test_parse_formula.php |    4 +++-
 2 files changed, 28 insertions(+), 3 deletions(-)

diff --git a/scenario/readme.txt b/scenario/readme.txt
index 6bd9065..71fd91f 100644
--- a/scenario/readme.txt
+++ b/scenario/readme.txt
@@ -14,10 +14,12 @@
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
-
+-----------------------
+    FRANCAIS
+-----------------------
 Afin d'avoir les scénarios pour les rejouer avec test.php.
 
-Dans include/constant.php, changer 
+Dans include/config.inc.php, changer 
 define ('LOGINPUT',false); par
 define ('LOGINPUT',true); 
 
@@ -33,4 +35,25 @@ Vous pouvez aussi utiliser un nom de fichier plus parlant.
     
 L'objectif étant de pouvoir tester et de rejouer facilement les actions que 
vous avez faites.
 
+Il est aussi possible de faire vos tests unitaire ici , autrement qu'avec 
PHPUNIT (voir répertiore php-unit)
+
+
+-----------------------
+     ENGLISH
+-----------------------
+If you want to use scenario in order to use them with test.php 
+You must have in include/config.inc.php
+
+define ('LOGINPUT',true); 
+
+you must also create the file authorized_debug (this file is empty)
+
+Next step you perform the action you like to test or change , a file into 
$_ENV['TMP'] has been created, you
+copy this file into tghe noalyss/scenario folder.
+
+You point  you browser  noalyss/html/test.php an you click on the link with 
the name of the file
+
+and you can rerun the file , it works also for ajax.
+
+It is useful to test ajax answer , unit test or testing a class
 
diff --git a/scenario/test_parse_formula.php b/scenario/test_parse_formula.php
index 6bd2bfb..b14a59e 100644
--- a/scenario/test_parse_formula.php
+++ b/scenario/test_parse_formula.php
@@ -1,10 +1,12 @@
 <?
+//@description:Impress::check_formula test 
 /*
 # check the Impress::check_formula and the parse_formula
 # This file is a part of NOALYSS under GPL
 # Author D. DE BONTRIDDER address@hidden
 */
-include_once('class_impress.php');
+
+include_once NOALYSS_INCLUDE.'/lib/class_impress.php';
 
 echo '<hr>';
 foreach ( array('1',



reply via email to

[Prev in Thread] Current Thread [Next in Thread]