Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-917

Analyze AutoCAD behaviors

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.4.8
    • Fix Version/s: 2.5.0
    • Component/s: Behaviors, Tests

      Description

      The goal is to identify what AutoCAD does:

      • when opening an existing project
      • when saving a new project
      • when saving an existant project
      • when exporting a project to another format
      • on a long running session (~10 min) to check what is done by the auto-save feature

      It is important to check those behaviors on Windows and macOS.

      For testing, we can use a tool to automate/facilitate informations retreival.

      1. Set-up a virtual environment:

      virtualenv -p python2 VENV
      . VENV/bin/activate
      pip install watchdog==0.8.3
      

      2. Launch the tool, do something and save records:

      watchmedo log DIRECTORY
      

      DIRECTORY is an empty folder where files are/will be tested.

      Records will be something of that kind:

      # Creation of a picture with GIMP
      on_created(self=<watchdog.tricks.LoggerTrick object at 0x7f824465a490>, event=<FileCreatedEvent: src_path='/home/tiger-222/Bureau/a/IMG_1504-2.JPG'>)
      on_modified(self=<watchdog.tricks.LoggerTrick object at 0x7f824465a490>, event=<DirModifiedEvent: src_path='/home/tiger-222/Bureau/a'>)
      on_modified(self=<watchdog.tricks.LoggerTrick object at 0x7f824465a490>, event=<FileModifiedEvent: src_path='/home/tiger-222/Bureau/a/IMG_1504-2.JPG'>)
      on_modified(self=<watchdog.tricks.LoggerTrick object at 0x7f824465a490>, event=<FileModifiedEvent: src_path='/home/tiger-222/Bureau/a/IMG_1504-2.JPG'>)
      on_modified(self=<watchdog.tricks.LoggerTrick object at 0x7f824465a490>, event=<FileModifiedEvent: src_path='/home/tiger-222/Bureau/a/IMG_1504-2.JPG'>)
      on_modified(self=<watchdog.tricks.LoggerTrick object at 0x7f824465a490>, event=<FileModifiedEvent: src_path='/home/tiger-222/Bureau/a/IMG_1504-2.JPG'>)
      
      # Deletion of a picture on Debian GNU/Linux
      on_deleted(self=<watchdog.tricks.LoggerTrick object at 0x7f824465a490>, event=<FileDeletedEvent: src_path='/home/tiger-222/Bureau/a/IMG_1504-2.JPG'>)
      on_modified(self=<watchdog.tricks.LoggerTrick object at 0x7f824465a490>, event=<DirModifiedEvent: src_path='/home/tiger-222/Bureau/a'>)
      

      All we need are those records.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 30 minutes
                  1h 30m