Closed ps610 closed 2 years ago
Hello, any update on this?
The error still occurs and we are currently unable to run tests within pipelines.
Sorry to hear that. As requested while creating an issue: can you provide the complete yaml, please?
@waldo1001 This is the yaml of the Test Step:
# ...
variables:
- name: 'job.Test.TestPage'
value: '130409'
- name: 'job.Test.Filter'
value: $[ coalesce(variables['Test.Filter'], '50000..99000') ] # 'Test.Filter' set to '55500..55799'
- name: 'job.Test.TestSuite'
value: $[ coalesce(variables['Test.TestSuite'], 'DEFAULT') ]
- name: 'job.Test.FailAction'
value: $[ coalesce(variables['Test.FailAction'], 'Warning') ]
- name: 'job.Test.FailPublishOnFailedTest'
value: $[ coalesce(variables['Test.FailPublishOnFailedTest'], 'true') ]
# ...
# ...
parameters:
displayName: 'Run TestSuite'
condition: succeeded()
steps:
- task: ALOpsAppTest@1
displayName: 'ALOps ${{ parameters.displayName }}'
condition: ${{ parameters.condition }}
inputs:
usedocker: true
show_available_tests: false
import_testtoolkit: false
testpage: '$(job.Test.TestPage)'
testfilter: '$(job.Test.Filter)'
testsuite: '$(job.Test.TestSuite)'
failed_test_action: '$(job.Test.FailAction)'
- task: PublishTestResults@2
condition: ${{ parameters.condition }}
displayName: '${{ parameters.displayName }}'
inputs:
testResultsFormat: XUnit
testResultsFiles: '**/TestResults.xml'
testRunTitle: 'BC Test Results: $(Build.BuildId)'
failTaskOnFailedTests: '$(job.Test.FailPublishOnFailedTest)'
# ...
Does this help?
Well, no. If I don't see actual values, it's difficult to know what is going on. What about the full output?
Well, I guess the problem was on our end. I tried to reproduce the error in a less complex environment for illustration and noticed that the tests were executed there. Even after adding an existing database backup in the pipeline (with the modified test page) the tests were executed there.
I imported the test page again in our currently used database backup and now the tests are running again.. I am afraid one of my colleagues updated the database backup and used an older version of the test page.
Apologies for the inconvenience.
Problem solves is all I care. ;-). Sorry that I was unresponsive - this issue got lost, and I didn't really have much to look at ...
Hello, for roughly more than a week we have been having problems running tests in some of our pipelines. Specifically, it is a BC14 project and we experience the following error during the "ALOps Run TestSuite" step: "Run-Test-Exception: Exception calling ".ctor" with "2" argument(s): "Value cannot be null.". We are using the modified test page (see #54) and had no issues with our pipelines for at least a year.
Our last successful pipeline run was on July 21 (vacation season :/ ) and it seems the errors started to appear at least on July 25.
last successfully run:
failed run:
Expected behavior The tests should be executed as in the past.
Thank you