Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.06 KB

README.md

File metadata and controls

40 lines (27 loc) · 1.06 KB

NetInteractor

Build Status NuGet Version

Web operation automation library in C# (.NET Core)

It can be used for the purposes below:

  • Web white-box test automation;
  • Web operation automation;
  • ...

Features:

  • Xml as script;
  • Accept input parameters;
  • Extract parameters from the responses of middle steps (output parameters);
  • Basic work flow controlling (if);

The Automation Script

Shop

Execute the script

var config = ConfigFactory.DeserializeXml<InteractConfig>("Scripts/Shop.config");

var executor = new InterationExecutor();

var inputs = new NameValueCollection();

inputs["CreditCardNumber"] = "0123456789ABCD";
inputs["CreditCardExpMonth"] = "04";
inputs["CreditCardExpYear"] = "2021";
// more input parameters
// ...

var result = await executor.ExecuteAsync(config, inputs);