0
static void cmd_DataReceived(object sender, DataReceivedEventArgs e)
    {
        List<string> found = new List<string>();
        string line;
        using(StreamReader file =  new StreamReader(e.Data))
        {
            while((line = file.ReadLine()) != null)
            {
                if(line.Contains("Passed"))
                {
                    found.Add(line);
                }
            }
        }
        foreach (string Txt in found)
        {
            Report.Info("Output from other process");
            Report.Success(Txt);
        }
    }

上面的代码给出了例外。我得到的例外。 System.NotSupportedException: The given path's format is not supported. at System.Security.Util.StringExpressionSet.CanonicalizePath at System.Security.Util.StringExpressionSet.CreateListFromExpressions at System.Security.Permissions.FileIOPermission.AddPathList

我在 ranorex 测试自动化工具中运行此 C# 代码。

4

1 回答 1

0

我不认为这是 Ranorex 的问题。代码中的哪一行导致错误?

于 2014-04-28T13:29:06.253 回答