Microbot development


#1

I am trying to create a microbot. but could not find much documents or reference microbot code to develop new one

Can someone provide links to reference documents and project code to understand and develop new microbots?


Microbot - Implementing IAECodePackage
#2

Hi Dinesh,

Create a C# class library solution and implement IAECodePackage interface. I am providin sample code to append two strings.

namespace AppendString
{
public class AppendString : IAECodePackage
{
public string str1;

        public string str2;

        public string str3;

        private string result;

        [ArgumentDirection(Direction = DirectionType.Input)]
        public string Str1
        {
            get
            {
                return str1;
            }

            set
            {
                str1 = value;
            }
        }

        [ArgumentDirection(Direction = DirectionType.Input)]
        public string Srt2
        {
            get
            {
                return str2;
            }

            set
            {
                str2 = value;
            }
        }

        [ArgumentDirection(Direction = DirectionType.Output)]
        public string Result
        {
            get
            {
                return result;
            }

            set
            {
                result = value;
            }
        }

        public event EventHandler ExecutionCompleted;

        public void Execute(StudioContext context)
        {
            Result = str1 + str2;
            ExecutionCompleted(this, null);
        }
    }
}

#3

Thanks a lot @amit_anand15 .

Is it possible to test the microbot class library directly from Visual studio?


#4

Hi,

Yes it is. Attach your Visual Studio recorder to AutomationStudio.exe process

Regards,
Amit