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
SmartTrack 1.3.0 Android (or later)
SmartTrack 1.1 IOS (or later)
Test data from project “DevUnitTest” March 8, 2017
3 tracks for vehicles “DevUnitTest-1”, “DevUnitTest-2”, “DevUnitTest-3”
Track DevUnitTest-1 time span 1:54 - 4:24
Track DevUnitTest-2 time span 2:05 - 4:23
Track DevUnitTest-3 time span 1:53 - 4:24
NOTE: Developer created this test plan using a tablet set up for showing 24 hour time
Project is set to America/Los_Angeles timezone
Basic Stats Case 1
If the project is restored from archive, there will be no settings.
A settings file is provided: Projects/DevUnitTest/Settings/2017-03-08.settings.disabled
Rename the file to 2017-03-08.settings to enable the day
The settings provides two cycle lines and job hours
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 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
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
Turn job hours back on, with previous time settings
Using the playback control, set the current time to 3:15 PM
Insert segment break (on track ALL)
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 |
Open the second segment from the listview (long press)
Uncheck “Calc Statistics”
Re-open the ReportView
Cycle through each track
Case 1 Test 4 - Turn off track calcs
Make sure case 1 day settings is enabled
Open all 3 tracks from 3/8
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
Make sure case 1 day settings is enabled
Open all 3 tracks from 3/8
Segment ALL at 3:15
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
Make sure case 1 day settings is enabled
Open all 3 tracks from 3/8
Segment each track (DUT-1, DUT-2, DUT-3) at 3:15
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
Make sure case 1 day settings is enabled
Open all 3 tracks from 3/8
Segment ALL at 3:15
From view list, disable statistic calcs on first segment (2:00 - 3:15)
Segment each track (DUT-1, DUT-2, DUT-3) at 4:00
For each track (DUT-1, DUT-2, DUT-3) disable statistics calculation in last segment (4:00 - 4:30)
Open play and report
Manually scan time from start to 3:15
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 |
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
Re-open the three tracks for this test project
Open the playback window
Case 2 Test 1 Simple - segment creation
Using the playback control, set the time slider to 3:15
Insert a segment using the on-screen scissors button
Verify new segment line at 3:15 in the playback view
Using the track selector cycle through each track
Set the job hours on the project to be
Day start at 2:00 PM
Day end at 4:30 PM
Validate that the start time on the first segment is now 2:00 PM
Open the view list
Delete the first segment in the list
Reopen the playback control
Case 2 Test 2 Simple - copy on write segment mode
Segment ALL track at 3:15 PM
Using the track selector, choose DevUnitTest-2
Segment that track at 4:00 PM
Validate a new segment line at 4:00PM for track DUT-2
Validate that the new segment line is not present for any other track
Validate that track DUT-2 has three segments in the view list

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