-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check unittests, including selenium tests, for FAQ.pm #7
Comments
See also RotherOSS/otobo#512. |
Issue #7 adapt selenium tests for OTOBO 10.0.7
Merged the PR from @wollmers . But for the next release we need to check the tests. |
Reopening. |
For running the tests of an OTOBO package it would nice if the console command |
The tests for FAQ.pm must still be adapted to the current testing framework. Some more work required. |
RegisterDriver is needed in the test framework
Merged the first batch of adaptions. But there are still many test failures. Not sure whether these failures expose real bugs. |
The unit tests look better now:
The failure in FAQSearch.t is interesting . It looks like the mocking of the time did not really work. The first two FAQs should be mocked such that the second FAQ was created 60s after the first FAQ. For getting a clearer picture I added debug info to Field1 and inspected the database. The debug info showed that mocking seems to work, but the create_time does not reflect this.
Looks like the create_time and change_time did not consider the mocking.
|
Do not reuse the variable @tests
Did some more debugging concerning the failure in FAQSearch.t. Simply add debug output in Kernel/System/DB.pm:
|
Failure in FAQConnector.t was due to double slashes in the requested URL. Fixed now. |
@stefanhaerter Could you take a look at the Selenium failures? Passing the issue on to you, |
See also RotherOSS/otobo#682
Selenium tests of installed packages, e. g. FAQ, are not skipped and need adaption.
The text was updated successfully, but these errors were encountered: