|
|
|
# Sharing Export Tests
|
|
|
|
|
|
|
|
All tests were made in the course [SharingImportExportTesting](https://artemis.codeability.uibk.ac.at/course-management/156).
|
|
|
|
|
|
|
|
#### Export Facts
|
|
|
|
- For an export to be successfull (authorized), the sharing user must have role `ROLE_USER`.
|
|
|
|
- The import screen in sharing shows Metadata Version `0.4`.
|
|
|
|
|
|
|
|
#### Import Facts
|
|
|
|
|
|
|
|
#### Open Questions
|
|
|
|
- How can a user delete his own uploaded exercise?
|
|
|
|
|
|
|
|
## Testing Export/Import with different languages
|
|
|
|
|
|
|
|
#### C exercises (FACT and GCC)
|
|
|
|
|
|
|
|
##### Export to Sharing
|
|
|
|
|
|
|
|
The logs of the container `sharing_search` show the following warnings with every export:
|
|
|
|
|
|
|
|
c_fact_export_admin.png
|
|
|
|
|
|
|
|
After clicking the `save` button in sharing import view, the following error occurs in the logs:
|
|
|
|
|
|
|
|
c_fact_export_error.png
|
|
|
|
|
|
|
|
Although there is this error in the logs, the users gets redirected to Artemis and the sharing exercise was created successfully. After trying to export the same exercise again, the error didn't appear anymore. Maybe this error happened independent of the export
|
|
|
|
|
|
|
|
When clicking `more` on the newly created sharing exercise
|
|
|
|
|
|
|
|
c_fact_export_more
|
|
|
|
|
|
|
|
the follow error log occurs:
|
|
|
|
|
|
|
|
c_fact_export_more_error
|
|
|
|
|
|
|
|
This error orrcurs with multiple exercises, while other exercises like [this](https://search.sharing-codeability.uibk.ac.at/item/%5B105%5Dintroduction/convert_minutes) throw larger errors and there gitlab is not available:
|
|
|
|
|
|
|
|
c_fact_export_more_error2
|
|
|
|
|
|
|
|
##### Import to Artemis
|
|
|
|
|
|
|
|
Importing the newly created Sharing exercise in Artemis works without errors.
|
|
|
|
|
|
|
|
Importing other C exercises is not possible, because the default language is always set to `Java` with `Gradle` and it's not possible to change this.
|
|
|
|
|
|
|
|
c_fact_import_error |
|
|
\ No newline at end of file |