Salome HOME
Erreur dans le tableau des cas
[modules/smesh.git] / src / Tools / blocFissure / doc / testcases.rst
old mode 100755 (executable)
new mode 100644 (file)
index 47be3dc..76ae558
@@ -4,7 +4,7 @@
 Test cases\r
 #######################\r
 \r
-A base of 25 test cases ensures the proper functioning of « Bloc Fissure ». 12 cases are dedicated to :ref:`cracked bended pipes <pipeTC>` and the others 13 are for other :ref:`generic geometries <genericTC>`. They are shown here in order to illustrate cases on which « Bloc Fissure » works.\r
+A base of 30 test cases guarantees the correct functioning of « Bloc Fissure ». 12 cases are dedicated to :ref:`cracked bended pipes <pipeTC>` and the others 13 are for other :ref:`generic geometries <genericTC>`. They are shown here in order to illustrate cases on which « Bloc Fissure » works.\r
 \r
 .. _genericTC:\r
 \r
@@ -115,18 +115,30 @@ All 12 bended pipe test cases are not shown here because they are relatively sim
 | with an external crack         |                                              |\r
 +--------------------------------+----------------------------------------------+\r
 \r
+coude_0 can be computed using this file for the data:\r
+\r
+  * :download:`data for a bended puipe <../ihm/dialogFissureCoude.dic>`\r
+\r
 « Bloc Fissure » is very efficient for the case of bended pipes. The generation of the geometry and the crack insertion takes only around 15s.\r
 \r
 Running test cases\r
 =====================================\r
 \r
-In SALOME interface:\r
+All the files for these test cases are stored in the directory of the installation of SALOME:\r
+\r
+``Salome-VXXXX_package-YY/modules/SMESH_VXXXX/lib/python3.6/site-packages/salome/blocFissure``\r
 \r
-0) **Generate med and breps files.** Once the files are generated, they are saved in SALOME source files. There is no need to generate them again::\r
+The test cases can be runned either through the python window of the SALOME GUI or with a python script.\r
+\r
+0) **Generate med and breps files.**::\r
 \r
     from blocFissure.materielCasTests import genereMateriel\r
 \r
-Then the user can either launch all test cases, several at once or just one :\r
+Once the files are generated, they are saved into the directory of the installation of SALOME:\r
+\r
+``Salome-VXXXX_package-YY/modules/SMESH_VXXXX/lib/python3.6/site-packages/salome/blocFissure/materielCasTests``\r
+\r
+There is no need to generate them again.\r
 \r
 1) **To execute all test cases**::\r
 \r
@@ -134,37 +146,42 @@ Then the user can either launch all test cases, several at once or just one :
 \r
 2) **To execute only selected test cases**:\r
 \r
-modify execution_Cas.py file and change::\r
+modify the file ``CasTests/execution_Cas.py`` and change::\r
 \r
     runall = False. #old : True\r
 \r
-And change from 0 to 1 of the number of the test you want to launch::\r
+And change from 0 to 1 of the index of the test you want to launch::\r
 \r
-    torun = [ 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,]\r
+    torun = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]\r
 \r
 then launch the test cases::\r
 \r
     from blocFissure.CasTests import execution_Cas\r
 \r
-3) **To execute only one test case**::\r
-\r
-    from blocFissure.CasTests.[TEST_CASE_NAME] import [TEST_CASE_NAME]\r
-\r
-    [TEST_CASE_NAME](0).executeProbleme()\r
-\r
-[TEST_CASE_NAME] is the name of the test case in the following list. Note that the test cases fissureCoude_4 and fissure_Coude_4 are very similar.\r
+The index of each test is the position of the test in the following table, from 0 for cubeAngle, 1 for cubeAngle2,\r
+2 for cubeCoin... from top to bottom, then from left to right.\r
 \r
 +--------------------+--------------------+--------------------+-----------------+-----------------+\r
-| faceGauche         | cylindre_2         | disquePerce        | fissureCoude_3  | fissureCoude_6  |\r
+| cubeAngle          | cylindre_2         | eprouvetteDroite_2 | fissureCoude_3  | fissureCoude_9  |\r
++--------------------+--------------------+--------------------+-----------------+-----------------+\r
+| cubeAngle2         | disquePerce        | faceGauche         | fissureCoude_4  | fissure_Coude   |\r
 +--------------------+--------------------+--------------------+-----------------+-----------------+\r
-| faceGauche_2       | eprouvetteCourbe   | vis_1              | fissureCoude_4  | fissureCoude_7  |\r
+| cubeCoin           | ellipse_1          | faceGauche_2       | fissureCoude_5  | fissure_Coude_4 |\r
 +--------------------+--------------------+--------------------+-----------------+-----------------+\r
-| ellipse_1          | eprouvetteDroite   | fissureCoude       | fissure_Coude_4 | fissureCoude_8  |\r
+| cubeMilieu         | ellipse_2          | fissureCoude_1     | fissureCoude_6  | vis_1           |\r
 +--------------------+--------------------+--------------------+-----------------+-----------------+\r
-| ellipse_2          | cubeAngle          | fissureCoude_1     | fissureCoude_5  | fissureCoude_9  |\r
+| cubeTransverse     | eprouvetteCourbe   | fissureCoude_10    | fissureCoude_7  |                 |\r
 +--------------------+--------------------+--------------------+-----------------+-----------------+\r
-| cylindre           | cubeAngle2         | fissureCoude_2     | fissureCoude_5  | fissureCoude_10 |\r
+| cylindre           | eprouvetteDroite   | fissureCoude_2     | fissureCoude_8  |                 |\r
 +--------------------+--------------------+--------------------+-----------------+-----------------+\r
 \r
+3) **To execute only one test case**::\r
+\r
+    from blocFissure.CasTests.[TEST_CASE_NAME] import [TEST_CASE_NAME]\r
+\r
+    [TEST_CASE_NAME](0).executeProbleme()\r
+\r
+[TEST_CASE_NAME] is the name of the test case in the previous list. Note that the test cases fissureCoude_4 and fissure_Coude_4 are very similar.\r
+\r
 \r
 \r