Testing #2210

Envelope task #2192: 1D data import functionality

Test 1d data import on known file formats

Added by dmitry almost 2 years ago. Updated over 1 year ago.

Status:ResolvedStart date:26 Oct 2018
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:Reflectometry
Target version:Sprint 41

Description

Data import functionality should be tested on "real-life" data, mainly provided
by Marina Ganeva. After replacing proprietary data with random numbers, files can be used
for functional testing. Set of unit tests for ImportAssistant would be also very desirable.

One also need to make sure (e.g. with unit tests), that the following behavior is fulfilled:
1. ASCII files ---> opened in a reasonable time (e.g. <= 1 sec)
2. int ---> opened without calling import assistant
3. int.gz ---> opened without calling import assistant
4. No crash on binary files

History

#1 Updated by juan almost 2 years ago

  • Assignee set to juan

#2 Updated by juan almost 2 years ago

  • Assignee deleted (juan)

#3 Updated by dmitry almost 2 years ago

  • Description updated (diff)
  • Assignee set to juan

#4 Updated by dmitry almost 2 years ago

  • Target version changed from Sprint 39 to Sprint 40

#5 Updated by dmitry almost 2 years ago

  • Category set to Reflectometry

#6 Updated by dmitry over 1 year ago

  • Assignee deleted (juan)

#7 Updated by juan over 1 year ago

Data import functionality should be tested on "real-life" data, mainly provided
by Marina Ganeva. After replacing proprietary data with random numbers, files can be used
for functional testing. - DONE

Set of unit tests for ImportAssistant would be also very desirable. - NEED TO EXPAND THE TEST CASES

One also need to make sure (e.g. with unit tests), that the following behavior is fulfilled:
1. ASCII files* ---> opened in a reasonable time (e.g. <= 1 sec) - DONE (in a performance functional test)
2. int ---> opened without calling import assistant - DONE
3. int.gz ---> opened without calling import assistant - DONE
4. No crash on binary files - DONE

*STILL TO DO: When trying to open extremely large files (maybe by user mistake) that may not even be related to scattering data, the import assistant will hang.
A possible solution would be to spawn a separate thread to read the files. This would allow the inclusion of an "abort" button that the user can click to stop the process if the reading is taking long.

#8 Updated by dmitry over 1 year ago

  • Target version changed from Sprint 40 to Sprint 41

#9 Updated by juan over 1 year ago

  • Status changed from Sprint to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF