C#根据接口文档写一个接口测试程序

 

同问

demo:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LeanTek.Mes.Client.Api;
using System.Runtime.InteropServices;
using System.Drawing;
using System.Windows.Forms;


using System.Windows;

using System.Threading;
namespace DesayFTVision
{
    public class Mes
    {
        public Wip Meswip = new Wip();
        public string ReadMES()
        {
            try
            {

                var result = Meswip.CheckAllowLotSnPass(
                                "http://localhost:5000",
                                "P203SBCM190904000028",
                                "D",
                                "P-YS",
                                "WS-YS01");

                return result;
            }
            catch (Exception ex)
            { MessageBox.Show(ex.ToString()); return ""; }
        }
    }
}

 

询问一下 mes接口很多 像这样的mes接口给你了 该如何进行下一步 有没有什么思路 是可以胜任任何一家的mes 求大牛们指导