コード例 #1
0
        static void Main(string[] args)
        {
            pCloudyClient client    = new pCloudyClient("https://device.pcloudy.com");
            String        authToken = client.authenticateUser("*****@*****.**", "qngf3bgv6h8pg2r8xm78xvxz");
            var           p         = client.getAvailableApps(authToken);
            var           time      = p[0].UploadedOn_UTC;

            SingleRunReport report = new SingleRunReport();

            report.addComment("Report on");
            report.addComment("Asus Zenfone laser");

            report.addStep("TestStep-1", "Arguments", null, ExecutionResult.Pass);
            report.addStep("TestStep-2", "Other Arguments", "output", null, ExecutionResult.Fail);

            report.Header = "pCloudy";
            report.Footer = "@Copyright pCloudy.sstsinc.com";

            FileInfo reportOut = new FileInfo(Path.Combine(Environment.CurrentDirectory, "Reports", report.Header + ".html"));

            if (reportOut.Directory.Exists == false)
            {
                reportOut.Directory.Create();
            }

            HtmlFilePrinter printer = new HtmlFilePrinter(reportOut);

            printer.printSingleRunReport(report);
            Console.WriteLine(reportOut.FullName);
            Console.ReadLine();
        }
コード例 #2
0
        static void Main(string[] args)
        {
            SingleRunReport report = new SingleRunReport();

            report.addComment("report on");
            report.addComment("asus Zenfone laser");

            report.addStep("gghjjhk", "ffjhgkj", null, ExecutionResult.Pass);
            report.addStep("vbjnkml", "fhjgjhk", "gfghmj", null, ExecutionResult.Fail);

            report.Header = "pcloudy";
            report.Footer = "@copyright pcloudy.ssts.inc";

            FileInfo reportOut = new FileInfo(Path.Combine(Environment.CurrentDirectory, "Reports", report.Header + ".html"));

            if (reportOut.Directory.Exists == false)
            {
                reportOut.Directory.Create();
            }

            HtmlFilePrinter printer = new HtmlFilePrinter(reportOut);

            printer.printSingleRunReport(report);
            Console.WriteLine(reportOut.FullName);
            Console.ReadLine();
        }
コード例 #3
0
        static void Main(string[] args)
        {
            SingleRunReport report = new SingleRunReport();

            report.addComment("Report on");
            report.addComment("Asus Zenfone laser");

            report.addStep("TestStep-1", "Arguments", null, ExecutionResult.Pass);
            report.addStep("TestStep-2", "Other Arguments", "output", null, ExecutionResult.Fail);

            report.Header = "pCloudy";
            report.Footer = "@Copyright pCloudy.sstsinc.com";

            FileInfo reportOut = new FileInfo(Path.Combine(Environment.CurrentDirectory, "Reports", report.Header + ".html"));

            if (reportOut.Directory.Exists == false)
            {
                reportOut.Directory.Create();
            }

            HtmlFilePrinter printer = new HtmlFilePrinter(reportOut);

            printer.printSingleRunReport(report);
            Console.WriteLine(reportOut.FullName);
            Console.ReadLine();
        }