Table of Contents

Detailed track and segment behavior in SmartTrack mobile apps

The various combinations of tracks and segments are complicated enough that it's critical to capture the behavior for continued testing and application verification.

Testing set up

Initial view of unit test data

Basic Stats Case 1

  1. If the project is restored from archive, there will be no settings.
  2. A settings file is provided: Projects/DevUnitTest/Settings/2017-03-08.settings.disabled
    1. Rename the file to 2017-03-08.settings to enable the day
    2. The settings provides two cycle lines and job hours
    3. The recommended job hours are:
      • Morning 2:00 PM
      • Lunch start 3:00 PM
      • Lunch end 3:30 PM
      • Afternoon end 4:30 PM

Case 1 test with cycles

Case 1 Test 1 - Report Values

Track Time Cycles AvLength AvMove AvSpeed CycleTime MinPerHr CostHrs Volume
All 14:00 - 16:30 57 1511 296 5.1 04:41 47 06:00 0.0
DevUnitTest-1 14:00 - 16:30 19 1528 314 4.9 01:39 50 02:00 0.0
DevUnitTest-2 14:00 - 16:30 19 1490 260 5.7 01:22 41 02:00 0.0
DevUnitTest-3 14:00 - 16:30 19 1515 315 4.8 01:39 50 02:00 0.0

Case 1 Test 2 - Turn off Job Hours

  1. Turn off job hours for Morning, Lunch, Afternoon
Track Time Cycles AvLength AvMove AvSpeed CycleTime MinPerHr CostHrs Volume
All 13:53 - 16:24 57 1524 298 5.1 04:43 38 07:18 0.0
DevUnitTest-1 13:53 - 16:24 19 1542 317 4.9 01:40 40 02:29 0.0
DevUnitTest-2 13:53 - 16:24 19 1508 261 5.8 01:22 33 02:17 0.0
DevUnitTest-3 13:53 - 16:24 19 1523 318 4.8 01:40 40 02:30 0.0

Case 1 Test 3 - Add segment

  1. Turn job hours back on, with previous time settings
  2. Using the playback control, set the current time to 3:15 PM
  3. Insert segment break (on track ALL)
  4. Using playback control, set the current time 3:14 PM (during lunch)
Track Time Cycles AvLength AvMove AvSpeed CycleTime MinPerHr CostHrs Volume
All 14:00 - 16:30 27 1537 306 5.0 02:17 46 03:00 0.0
DevUnitTest-1 14:00 - 16:30 9 1546 326 4.7 00:48 49 01:00 0.0
DevUnitTest-2 14:00 - 16:30 9 1520 263 5.8 00:39 39 01:00 0.0
DevUnitTest-3 14:00 - 16:30 9 1544 328 4.7 00:49 49 01:00 0.0
  1. Open the second segment from the listview (long press)
  2. Uncheck “Calc Statistics”
  3. Re-open the ReportView
  4. Cycle through each track

Case 1 Test 4 - Turn off track calcs

  1. Make sure case 1 day settings is enabled
  2. Open all 3 tracks from 3/8
  3. Disable calc on tracks 2 & 3
Track Time Cycles AvLength AvMove AvSpeed CycleTime MinPerHr CostHrs Volume
All 14:00 - 16:30 19 1542 314 4.9 1:39 50 2:00 0.0
DevUnitTest-1 14:00 - 16:30 19 1542 314 4.9 1:39 50 2:00 0.0
DevUnitTest-2 14:00 - 16:30 Statistics Disabled
DevUnitTest-3 14:00 - 16:30 Statistics Disabled

Case 1 Test 5 - Turn off ALL segment calcs

  1. Make sure case 1 day settings is enabled
  2. Open all 3 tracks from 3/8
  3. Segment ALL at 3:15
  4. Disable calcs segment two from 3:14 to 4:30
Track Time Cycles AvLength AvMove AvSpeed CycleTime MinPerHr CostHrs Volume
All 14:00 - 16:30 27 1537 306 5.0 2:17 46 3:00 0.0
DevUnitTest-1 14:00 - 16:30 9 1546 326 4.7 0:48 49 1:00 0.0
DevUnitTest-2 14:00 - 16:30 9 1520 263 5.8 0:39 39 1:00 0.0
DevUnitTest-3 14:00 - 16:30 9 1544 328 4.7 0:49 49 1:00 0.0

Case 1 Test 5 - Turn off ALL segment calcs

  1. Make sure case 1 day settings is enabled
  2. Open all 3 tracks from 3/8
  3. Segment each track (DUT-1, DUT-2, DUT-3) at 3:15
  4. Disable calcs on second segment of each of three tracks.
Track Time Cycles AvLength AvMove AvSpeed CycleTime MinPerHr CostHrs Volume
All 14:00 - 16:30 27 1537 306 5.0 2:17 46 3:00 0.0
DevUnitTest-1 14:00 - 16:30 9 1546 326 4.7 0:48 49 1:00 0.0
DevUnitTest-2 14:00 - 16:30 9 1520 263 5.8 0:39 39 1:00 0.0
DevUnitTest-3 14:00 - 16:30 9 1544 328 4.7 0:49 49 1:00 0.0

Case 1 Test 6 - ALL track summation

  1. Make sure case 1 day settings is enabled
  2. Open all 3 tracks from 3/8
  3. Segment ALL at 3:15
  4. From view list, disable statistic calcs on first segment (2:00 - 3:15)
  5. Segment each track (DUT-1, DUT-2, DUT-3) at 4:00
  6. For each track (DUT-1, DUT-2, DUT-3) disable statistics calculation in last segment (4:00 - 4:30)
  7. Open play and report
  8. Manually scan time from start to 3:15
  1. continue time scanning until 4:00
Track Time Cycles AvLength AvMove AvSpeed CycleTime MinPerHr CostHrs Volume
All 15:15 - 16:30 18 1473 285 5.2 1:25 57 1:30 0.0
DevUnitTest-1 14:00 - 16:30 6 1494 299 5.0 0:29 60 0:30 0.0
DevUnitTest-2 14:00 - 16:30 6 1443 257 5.6 0:25 51 0:30 0.0
DevUnitTest-3 14:00 - 16:30 6 1483 299 5.0 0:29 60 0:30 0.0
  1. continue time scanning from 4:00 through end of day

Segment Manipulation case 2

These tests will detail creation, deletion, and modification of segments. This is not a statistic centric test. Make sure any day settings are disabled by appending “.disabled” to any active settings files in AgtekAccess (for this project only :-)

Generic setup

  1. Re-open the three tracks for this test project
  2. Open the playback window

Screen view before any segments have been created

Case 2 Test 1 Simple - segment creation

  1. Using the playback control, set the time slider to 3:15
  2. Insert a segment using the on-screen scissors button
  3. Verify new segment line at 3:15 in the playback view

New segment line shown New segments in list shown

  1. Using the track selector cycle through each track
  1. Set the job hours on the project to be
    • Day start at 2:00 PM
    • Day end at 4:30 PM
  2. Validate that the start time on the first segment is now 2:00 PM
  1. Open the view list
  2. Delete the first segment in the list
  3. Reopen the playback control

Case 2 Test 2 Simple - copy on write segment mode

  1. Segment ALL track at 3:15 PM
  2. Using the track selector, choose DevUnitTest-2
  3. Segment that track at 4:00 PM

Track segment added to playbackTrack segment added to list view

  1. Re-open the View list
  2. Delete the first 2:00 to 3:15 segment on ALL
  3. Close view / re-open view
  2:00 PM - 3:15 PM
  3:15 PM - 4:00 PM
  4:00 PM - 4:30 PM

Segment Manipulation case 3

Occasionally apparently strange things happen, but once they are explained the amount of strangeness is reduced. These tests expose the strangeness in the system.

Case 3 Test 1 - the case of the disappearing cycles

Segmenting a day in the middle of active cycles can cause a reduction in the cycle count. This is because segments are defined to be separate periods of work. Thus if a segment happens to occur just before a point in time, when the track would cross the cycle line, the total cycle counts will be reduced. Introducing new segments alters total statistics. This is expected by the definition of segments.

  1. Enable settings for 3/8 by removing “.disabled” from the end of the settings file (via Agtek Access)
  2. In ST, open all tracks for DevUnitTest on 3/8
  3. Verify the background file, and two cycle lines
  4. Open Report-View and verify 57 cycles (3*9 morning + 3*10 afternoon)
  5. Open Playback, select track selector for ALL
  6. Segment ALL at 2:24
  7. Either close playback, or time select to end of day.
  8. Verify that the report is now showing 54 cycles.