[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ic] Command Line Testing Customizations vs. Constantly Restarting Interchange


I'm developing some Interchange customizations for a client and I'm looking for an easier way to test a debug my code. I prefer to write clean structured modular code using subroutines for each unique operation. So I often follow the example of many of the System Tags where they are only defined in the tag, then they call a Interchange function. For example, like this soap.coretag:

UserTag soap                Order        call uri proxy
UserTag soap                addAttr
UserTag soap                PosNumber    3
UserTag soap                MapRoutine   Vend::SOAP::tag_soap

UserTag soap_entity                     addAttr
UserTag soap_entity MapRoutine Vend::SOAP::tag_soap_entity

The problem I run into, is I need to perl modules I write that require MySQL database access through Interchange. I can't find any way to write test routines or test those from the command line. So I end up making a change, restarting Interchange and testing over and over again. This turns into a long process.

I'd like to run a test script like in most Perl modules to test my code, but I can't find how to access the database routines in Vend::Data::DBI. I looked at the code in the offline and update scripts but they don't handle SQL databases.

I'm sure I'm missing something. Any experts out there with suggestions on a way to test this code from the command line instead of constantly restarting interchange?

--

Sincerely,

Duane Hinkley
Down Home Web Design, Inc.
(208) 424-0572 Fax(208) 587-0738

suppressed
www.downhomewebdesign.com

_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.