This project is read-only.
1

Resolved

Create light-weight component to perform automation via xml files

description

LIGHT-WEIGHT AUTOMATION API
 
  1. an xml file has commands in the form of elements/nodes ( e.g. "<command name="helloworld" hello="hola" />" )
  2. attributes can be applied to classes to represent the class as a command.
  3. the "commands" in an xml file will map to the commands defined by the attributes
  4. a script runner will exist that takes the in the xml file and run the commands in the file by loading the classes associated w/ the commands in xml.
     
    This is extremely useful for import/export purposes as well as other automation purposes.
     
    NOTES:
  5. Powershell was reviewed for usability, and as good a tool as it is, I wanted something even lighter and more importantly the commands are supposed to be part of an application and not separate from it.
     
     
    SAMPLE XML FILE:
    <commands>
    <command name="HelloWorld" arg1="abc" arg2="123" />
    <command name="DeleteAllPosts" byuser="kreddy" />
    <command name="CreateUser"     username="testuser1" password="abcdef" email="testuser1@abc.com"  /> 
    </commands>
     
    SAMPLE CLASSES
    [Command(Name="HelloWorld")]
    public class CommandHello : Command
    {
    public override bool DoExecute(object context)
    {
     //  ... do something.
     return true;
    }
    }

comments