SmarteSoft Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

SmarteSoft Forums is now live!

Author Topic: "Diffing" SmarteScripts  (Read 324 times)

radilly

  • SuperMember
  • ****
  • Posts: 47
  • Working (mostly) on WinMobile apps at Sensus USA
    • WWW
"Diffing" SmarteScripts
« on: February 17, 2010, 11:18:37 AM »
My Unix background is going to show here, but is there a simple way to "diff" 2 versions of a Smarte script?

I've tinkered a little with exporting to various formats and comparing those files, but it's not been terribly elegant.

In the heat of getting something running, I'll tweak a couple small things on a test server and not recall what I did when I go to merge it back in with the master copy.

(Can't help it ... I keep thinking like a programmer  :-\ )

Anyone have a nice tidy solution?

Cheers - Bob
Logged
Bob Dilly | Senior Software Q/A Engineer | SmarteSoft Newbie

radilly

  • SuperMember
  • ****
  • Posts: 47
  • Working (mostly) on WinMobile apps at Sensus USA
    • WWW
Re: "Diffing" SmarteScripts
« Reply #1 on: March 09, 2010, 09:34:00 AM »
The best technique I've found thus far is to export the scenario to a .csv, strip off any index columns and save it back out at a tab-delimited txt file.  Having done this for 2 scenarios, diffing seems to work reasonably.

Once in a while I've wanted to compare the Object Trees.  I've thought that might be done by copying the script view to a file- but that wouldn't tell one about the object attributes, e.g. Object Recognition settings.  I'm stumped on that one!   :'(


I've been using WinWerge (http://winmerge.org/) on Windows.  It's been good for my needs...
Logged
Bob Dilly | Senior Software Q/A Engineer | SmarteSoft Newbie