content.txt 8.03 KB
!1 User Story 07: Paramètre composé utilisateur sur scalaire, avec opération simple et expression simple
http://yahscrum.akka.eu:8080/icescrum/p/AMDAKERNEL-40
!define path {../test/FitNesseRoot/ReleaseS/FirstPart/ReLease2/SprinT2/UserStory07/}
!define executable {amdaXMLRequestorTool}
!2 Description

construct and output values of composed parameter based on user defined expression with one arithmetic operator and parameters simple.

Available operators for this US are: +, -, *, /, ^

The expression contain only one operator (for example: paramA + paramB)

Validation formule
!2 Liste des tests

!3 ID-71  doc de conception mise a jour

!3 ID 72: Operation scalar + constant

Input: expression_plus_1 (paramID)
!-StartTime-!: '2008000003000000\0'
!-TimeInt-!: '0000001000000000\0'

Output: ascii file
!4 Tests : 
!|script|TestAmdaCommandLine|
|reference|US 07: id 72|id test|
|set|${path}|path|
|execute|${executable}|command|${path}request_7_72.xml|args|
|check|result|0|
|check|diffOutputFile|test_7_72.txt|file1|output-expression_plus_1_2008000003000000.txt|file2|0|epsilon|0|

!3 ID 83: Operation constant + scalar

Input: expression_plus_2 (paramID)
!-StartTime-!: '2008000003000000\0'
!-TimeInt-!: '0000001000000000\0'

Output: Identique à la sortie du test d’acceptaion ID72

!4 Tests : 
!|script|TestAmdaCommandLine|
|reference|US 07: id 83|id test|
|set|${path}|path|
|execute|${executable}|command|${path}request_7_83.xml|args|
|check|result|0|
|check|diffOutputFile|test_7_72.txt|file1|output-expression_plus_2_2008000003000000.txt|file2|0|epsilon|0|

!3 ID 84: Operation scalarA + scalarB

Input: expression_plus_3 (paramID)
!-StartTime-!: '2008000003000000\0'
!-TimeInt-!: '0000001000000000\0'
Output: ascii file

!4 Tests : 
!|script|TestAmdaCommandLine|
|reference|US 07: id 84|id test|
|set|${path}|path|
|execute|${executable}|command|${path}request_7_84.xml|args|
|check|result|0|
|check|diffOutputFile|test_7_84.txt|file1|output-expression_plus_3_2008000003000000.txt|file2|0|epsilon|0|

!3 ID 85: Operation scalar - constant

Input: expression_moins_1 (paramID)
!-StartTime-!: '2008000003000000\0'
!-TimeInt-!: '0000001000000000\0'
Output: ascii file

!4 Tests : 
!|script|TestAmdaCommandLine|
|reference|US 07: id 85|id test|
|set|${path}|path|
|execute|${executable}|command|${path}request_7_85.xml|args|
|check|result|0|
|check|diffOutputFile|test_7_85.txt|file1|output-expression_moins_1_2008000003000000.txt|file2|0|epsilon|0|

!3 ID 86: Operation constant - scalar

Input: expression_moins_2 (paramID)
!-StartTime-!: '2008000003000000\0'
!-TimeInt-!: '0000001000000000\0'
Output: ascii file

!4 Tests : 
!|script|TestAmdaCommandLine|
|reference|US 07: id 86|id test|
|set|${path}|path|
|execute|${executable}|command|${path}request_7_86.xml|args|
|check|result|0|
|check|diffOutputFile|test_7_86.txt|file1|output-expression_moins_2_2008000003000000.txt|file2|0|epsilon|0|

!3 ID 87: Operation scalarA - scalarB

Input: expression_moins_3 (paramID)
!-StartTime-!: '2008000003000000\0'
!-TimeInt-!: '0000001000000000\0'
Output: ascii file

!4 Tests : 
!|script|TestAmdaCommandLine|
|reference|US 07: id 87|id test|
|set|${path}|path|
|execute|${executable}|command|${path}request_7_87.xml|args|
|check|result|0|
|check|diffOutputFile|test_7_87.txt|file1|output-expression_moins_3_2008000003000000.txt|file2|0|epsilon|0|

!3 ID 88: Operation constant*scalar

Input: expression_fois_1 (paramID)
!-StartTime-!: '2008000003000000\0'
!-TimeInt-!: '0000001000000000\0'
Output: ascii file

!4 Tests : 
!|script|TestAmdaCommandLine|
|reference|US 07: id 88|id test|
|set|${path}|path|
|execute|${executable}|command|${path}request_7_88.xml|args|
|check|result|0|
|check|diffOutputFile|test_7_88.txt|file1|output-expression_fois_1_2008000003000000.txt|file2|0|epsilon|0|

!3 ID 89: Operation scalar*constant

Input: expression_fois_2 (paramID)
!-StartTime-!: '2008000003000000\0'
!-TimeInt-!: '0000001000000000\0'
Output: Identique à la sortie du test d’acceptaion ID88

!4 Tests : 
!|script|TestAmdaCommandLine|
|reference|US 07: id 89|id test|
|set|${path}|path|
|execute|${executable}|command|${path}request_7_89.xml|args|
|check|result|0|
|check|diffOutputFile|test_7_88.txt|file1|output-expression_fois_2_2008000003000000.txt|file2|0|epsilon|0|

!3 ID 90: Operation scalarA*scalarB

Input: expression_fois_3 (paramID)
!-StartTime-!: '2008000003000000\0'
!-TimeInt-!: '0000001000000000\0'
Output: ascii file

!4 Tests : 
!|script|TestAmdaCommandLine|
|reference|US 07: id 90|id test|
|set|${path}|path|
|execute|${executable}|command|${path}request_7_90.xml|args|
|check|result|0|
|check|diffOutputFile|test_7_90.txt|file1|output-expression_fois_3_2008000003000000.txt|file2|0|epsilon|0|

!3 ID 91: Operation scalar/constant

Input: expression_div_1 (paramID)
!-StartTime-!: '2008000003000000\0'
!-TimeInt-!: '0000001000000000\0'
Output: ascii file

!4 Tests : 
!|script|TestAmdaCommandLine|
|reference|US 07: id 91|id test|
|set|${path}|path|
|execute|${executable}|command|${path}request_7_91.xml|args|
|check|result|0|
|check|diffOutputFile|test_7_91.txt|file1|output-expression_div_1_2008000003000000.txt|file2|0|epsilon|0|

!3 ID 92: Operation constant/scalar

Input: expression_div_2 (paramID)
!-StartTime-!: '2008000013000000\0'
!-TimeInt-!: '0000001000000000\0'
Output: ascii file
Attention!! Le start time de la requète est différent de celui des tests précedents (ceci afin de se retrouver dans le cas où le scalaire vaut 0)

!4 Tests : 
!|script|TestAmdaCommandLine|
|reference|US 07: id 92|id test|
|set|${path}|path|
|execute|${executable}|command|${path}request_7_92.xml|args|
|check|result|0|
|check|diffOutputFile|test_7_92.txt|file1|output-expression_div_2_2008000013000000.txt|file2|0|epsilon|0|

!3 ID 93: Operation scalarA/scalarB

Input: expression_div_3 (paramID)
!-StartTime-!: '2008000003000000\0'
!-TimeInt-!: '0000001000000000\0'
Output: ascii file

!4 Tests : 
!|script|TestAmdaCommandLine|
|reference|US 07: id 93|id test|
|set|${path}|path|
|execute|${executable}|command|${path}request_7_93.xml|args|
|check|result|0|
|check|diffOutputFile|test_7_93.txt|file1|output-expression_div_3_2008000003000000.txt|file2|0|epsilon|0|

!3 ID 94: Operation scalar^constant

Input: expression_pow_1 (paramID)
!-StartTime-!: '2008000003000000\0'
!-TimeInt-!: '0000001000000000\0'
Output: ascii file

!4 Tests : 
!|script|TestAmdaCommandLine|
|reference|US 07: id 94|id test|
|set|${path}|path|
|execute|${executable}|command|${path}request_7_94.xml|args|
|check|result|0|
|check|diffOutputFile|test_7_94.txt|file1|output-expression_pow_1_2008000003000000.txt|file2|0|epsilon|0|

!3 ID 95: Operation constant^scalar

Input: expression_pow_2 (paramID)
!-StartTime-!: '2008000003000000\0'
!-TimeInt-!: '0000001000000000\0'
Output: ascii file

!4 Tests : 
!|script|TestAmdaCommandLine|
|reference|US 07: id 95|id test|
|set|${path}|path|
|execute|${executable}|command|${path}request_7_95.xml|args|
|check|result|0|
|check|diffOutputFile|test_7_95.txt|file1|output-expression_pow_2_2008000003000000.txt|file2|0|epsilon|0|

!3 ID 96: Operation scalarA^scalarB

Input: expression_pow_3 (paramID)
!-StartTime-!: '2008000003000000\0'
!-TimeInt-!: '0000001000000000\0'

Output: ascii file

Attention!! Par rapport aux autres tests de cette story, ce test correspond plutôt à scalarB^scalarA

!4 Tests : 
!|script|TestAmdaCommandLine|
|reference|US 07: id 96|id test|
|set|${path}|path|
|execute|${executable}|command|${path}request_7_96.xml|args|
|check|result|0|
|check|diffOutputFile|test_7_96.txt|file1|output-expression_pow_3_2008000003000000.txt|file2|2.1e-3|epsilon|0|


!2 Suivit des modifications
 * test ID 84:
dernière ligne 
2008-01-02T00:30:00.000 190.644
remplacer par
2008-01-02T00:30:00.000 190.144

 * test ID 87:
dernière ligne 
2008-01-02T00:30:00.000 191.644
remplacer par
2008-01-02T00:30:00.000 192.144

 * test ID 90:
dernière ligne 
2008-01-02T00:30:00.000   -95.572
remplacer par
2008-01-02T00:30:00.000   -191.144

 * test ID 93:
dernière ligne 
2008-01-02T00:30:00.000   -0.003
remplacer par
2008-01-02T00:30:00.000   -0.005


 * test ID 96:
dernière ligne 
2008-01-02T00:30:00.000  7.233e-02
remplacer par
2008-01-02T00:30:00.000   5.231e-03