Comments (9)
Not sure if this has changed from the original repo here:
https://github.com/Esri/patrol-data-capture-toolbox
But that one did have some basic tests (might be able to borrow the readme, test data, etc., too):
https://github.com/Esri/patrol-data-capture-toolbox/tree/master/source/test
from solutions-geoprocessing-toolbox.
Also - just might want to add some description to readme about how this version of Patrol Data Capture differs from that other one -or- are we just marking the other repo as "deprecated" like was done with a few others
from solutions-geoprocessing-toolbox.
@mfunk, @jrweakland and I did not remember that this repo existed. Since I was the bonehead that should have searched before pulling this in I will pull all the other updates from that location and overwrite the recent addition.
from solutions-geoprocessing-toolbox.
@conklinbd What is the current status of this issue?
from solutions-geoprocessing-toolbox.
@conklinbd @jrweakland This repo has tests for Patrol Data Capture Tools.tbx:
- test_gpx2layer
- test_remove_duplicates
- test_distinguish_trackts
- test_despike_gps
And all run OK at Desktop 10.3. However there are 9 tools in the toolbox and I'm pretty sure that the 4 tests do not cover them.
If I take a look at the tools and compare them to the tests:
- test_gpx2layer uses 'GPX to Layer'
- test_remove_duplicates uses 'Remove Duplicate GPS Data'
- test_distinguish_tracks uses 'Distinguish Tracks'
- test_despike_gps uses ' Despike GPS Log'
So the following 5 tools do NOT have tests:
- Append Tracks to DB
- Import Patrol Rpt --- Not a great tool name
- Make Track Lines
- Recalculate Delta Times
- Rejoin Track Parts
from solutions-geoprocessing-toolbox.
Just a follow up :
You can remove these 3 from the list of those needing tests:
- Make Track Lines
- Recalculate Delta Times
- Rejoin Track Parts
test_distinguish_tracks - calls "Distinguish Tracks" which calls "Make Track Lines" and "Recalculate Delta Times"
Rejoin Track Parts - requires user input and a user selection so doesn't really make sense in an automated test
Also - it wasn't possible to readily rename "Import Patrol Rpt" because there is already a "Import Patrol Report(.py)" in the toolbox
from solutions-geoprocessing-toolbox.
Just an update on this one. I've added test for Rejoin Track Parts and Import Patrol Report. I renamed Import Patrol Rpt to Import Patrol Report, in the process. But currently i'm having issues getting the test to work. Unfortunately the tool is failing with an Invalid field type error that is proving difficult to locate.
test_import_patrol_rpt:
[exec] Starting Test: TestImportPatrolRpt
[exec] Setting up inputs and environment...
[exec] Number of rows in Patrol Report Table before: 0
[exec] Number of rows in Enemy Sightings Table before: 0
[exec] Selecting track OBJECTID = 2 for report...
[exec] Executing RejoinTrackParts_pdc...
[exec] ERROR: Executing: ImportPatrolReport inputLinesFC_layer TrackGUID C:\Users\matt2542\Documents\GitHub\solutions-geoprocessing-toolbox\data_management\data\PatrolDataCapture\PatrolReport017.xml C:\Users\matt254
2\Documents\GitHub\solutions-geoprocessing-toolbox\data_management\data\geodatabases\test_patrol_data_capture_inputs.gdb\PatrolReport C:\Users\matt2542\Documents\GitHub\solutions-geoprocessing-toolbox\data_management\dat
a\geodatabases\test_patrol_data_capture_inputs.gdb\EnemySightings
[exec] Start Time: Fri Aug 14 09:01:08 2015
[exec] Failed to execute. Parameters are not valid.
[exec] ERROR 000308: Invalid field type
[exec] Failed to execute (ImportPatrolReport).
[exec] Failed at Fri Aug 14 09:01:08 2015 (Elapsed Time: 0.01 seconds)
If you use the same inputs in a model, or directly in the tool in ArcMap it works just fine. But inside a script it fails. Still working on this.
from solutions-geoprocessing-toolbox.
I have seen scripts that run fine on laptop using Python 32, wont run on a server, that defaults to Python 64. In this case it was differing of the handling of path to a FC.
from solutions-geoprocessing-toolbox.
Thanks @pshowalter but it was something in the model tool that was being tested. I converted it to a script and got it working as it should have been.
To this point the tests are made and running.
from solutions-geoprocessing-toolbox.
Related Issues (20)
- GRG (CreateReferenceSystemGRGFromArea) Unit Tests Failing at Pro 2.1 HOT 11
- Unit test harness logging issues HOT 2
- Transfer labels HOT 5
- Distance to Assets Geocode Assets and Bases model fails to open in Pro 2.1 HOT 2
- Add support for APP6b to all Military Features tools HOT 1
- Create GRG from Point tool error handling - catch and handle case where no point dropped. HOT 10
- Be able to pass a variable into the test runner script
- Create GRG from Area tool when run from Pro is creating cells that are too small HOT 10
- Append Military Features tool errors, no geometry imported when Z mismatch HOT 2
- Create GRG From Point alpha-numeric labels just include the alpha part HOT 9
- Labels off for rotated, non-square grids created with the Create GRG from Area tool HOT 9
- Clearing Operations requires additional units of measure ArcGIS Pro HOT 1
- Create GRG from Point tool failing in Pro 2.2 build 11661 - module 'arcpy' has no attribute 'LoadSettings' HOT 26
- Horizontal/Vertical inputs are reversed in Create GRG from Point HOT 7
- Retire the military_aspects_of_terrain tools HOT 1
- Remove the military_aspects_of_weather tools HOT 1
- NumberFeatures tool does not label feature correctly when new feature class is created HOT 4
- Update the scripts for GRG HOT 12
- Exclude alpha-characters I L O from GRG output
- Add CIB rasters to mosaic dataste doesn't work in Pro 2.9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solutions-geoprocessing-toolbox.