diff --git a/tests/powershell/test_rece1.ps1 b/tests/powershell/test_rece1.ps1 index 5c52558ad..591ea9cf9 100644 --- a/tests/powershell/test_rece1.ps1 +++ b/tests/powershell/test_rece1.ps1 @@ -1,10 +1,11 @@ -# call webservice to get last invoice number (Invoice type: 1 - Point of Sale: 2): -RECE1.exe /ult 1 2 /json --debug --trace -# convert the output file to json to read the results: -$json = Get-Content -Path salida.txt | ConvertFrom-Json - describe TestUlt { - Context { + Context "get last invoice - json interchange files" { + BeforeAll { + # call webservice to get last invoice number (Invoice type: 1 - Point of Sale: 2): + RECE1.exe /ult 1 2 /json --debug --trace + # convert the output file to json to read the results: + $json = Get-Content -Path salida.txt | ConvertFrom-Json + } it 'returns last invoice number' { [int]$json[0].cbt_desde | Should -BeGreaterOrEqual 1 }