Add PSN MET test recipes and patterns to JSON
This commit is contained in:
committed by
Tucker Chase (CSC FI SPS MESLEO)
parent
8c11300455
commit
a0897d19df
40
LSL2/STPROC/TEST_PSN_SERVICES.txt
Normal file
40
LSL2/STPROC/TEST_PSN_SERVICES.txt
Normal file
@ -0,0 +1,40 @@
|
||||
Compile function Test_PSN_Services(@Test)
|
||||
#pragma precomp SRP_PreCompiler
|
||||
|
||||
$Insert LOGICAL
|
||||
|
||||
Declare function PSN_Services, Error_Services
|
||||
Declare subroutine PSN_Services, Error_Services
|
||||
|
||||
Error_Services('Clear')
|
||||
|
||||
GotoTest
|
||||
|
||||
// TODO: Code to run after each test goes here
|
||||
|
||||
Return TestResult or 1
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// TESTS
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Test GetMetrologyRecipesAndPatternsWithNullPsnNoShouldThrowError
|
||||
PSN_Services('GetMetrologyRecipesAndPatterns', '')
|
||||
Assert Error_Services('HasError') equals True$
|
||||
end test
|
||||
|
||||
Test GetMetrologyRecipesAndPatternsWithInvalidPsnNoShouldThrowError
|
||||
PSN_Services('GetMetrologyRecipesAndPatterns', 'potato')
|
||||
Assert Error_Services('HasError') equals True$
|
||||
end test
|
||||
|
||||
Test GetMetrologyRecipesAndPatternsWithValidPsnNoShouldReturnPrescribedValues
|
||||
Values = PSN_Services('GetMetrologyRecipesAndPatterns', 4609)
|
||||
Assert DCount(Values, @FM) equals 5
|
||||
|
||||
Values = PSN_Services('GetMetrologyRecipesAndPatterns', 5159)
|
||||
Assert DCount(Values, @FM) equals 4
|
||||
|
||||
Values = PSN_Services('GetMetrologyRecipesAndPatterns', 4830)
|
||||
Assert DCount(Values, @FM) equals 5
|
||||
end test
|
||||
Reference in New Issue
Block a user