简体   繁体   English

如何在 C# 中以编程方式启动 atmx 文件?

[英]How to launch the atmx file programmatically in C#?

can someone please tell me why my line of code to execute an atmx file isn't working?有人可以告诉我为什么我执行 atmx 文件的代码行不起作用吗? the code doesn't go further after opening the internet explorer:(打开 Internet Explorer 后,代码不再 go :(

try
                    {
                        switch (status)
                        {
                            case true:
                                IWebDriver driver = new InternetExplorerDriver();
                                driver.Navigate().GoToUrl(@"http://www.rpachallenge.com/");

                                Console.WriteLine("get ATMX file...........");                     
                                string getATMX = String.Format("C:\\Users\\{0}\\Desktop\\VS Test Environment\\Testing.atmx", Environment.UserName);
                                Process.Start(getATMX);   

                                SqlConnection connect = new SqlConnection();
                                connect.Open();
                                SqlCommand 

the atmx file get info from sql and fills the fields on rpachallenge.com, capture the ending result then saves in sql. atmx 文件从 sql 获取信息并填充 rpachallenge.com 上的字段,捕获结束结果然后保存在 sql 中。

The.atmx file isn't the executable itself, it's an script file which is executed by the Automation Anywhere runtime (AA.Player.exe) instead. .atmx 文件本身不是可执行文件,它是由 Automation Anywhere 运行时 (AA.Player.exe) 执行的脚本文件。 You need to ensure that "AA.Player.exe" is installed and is registered application for files with extension ".atmx" on the machine you're trying to execute.您需要确保已安装“AA.Player.exe”,并且已在您尝试执行的机器上为扩展名为“.atmx”的文件注册了应用程序。 Hope that helps.希望有帮助。

Atmx file runs on AAPlayer.exe, if you have Automation Anywhere installed you can execute ATMX by invoking AAPlayer.exe with atmx file path. Atmx 文件在 AAPlayer.exe 上运行,如果您安装了 Automation Anywhere,则可以通过使用 atmx 文件路径调用 AAPlayer.exe 来执行 ATMX。

        Process p = new System.Diagnostics.Process();
        p.StartInfo.FileName = "C:\\Program Files (x86)\\Automation Anywhere\\Enterprise\\Client\\AAPlayer.exe";
        p.StartInfo.Arguments = "/fD:\\bots\\mybot.atmx";
        p.Start();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在C#中以编程方式启动chkdsk GUI窗口? - How can I programmatically launch chkdsk GUI window in C#? C# 如何使用 Visual Studio 2019 以编程方式启动项目实例 - C# how to programmatically launch an instance of a project with Visual Studio 2019 如何以编程方式使用Roslyn编译C#文件? - How to compile a C# file with Roslyn programmatically? 如何以编程方式下载C#中的大文件 - How to programmatically download a large file in C# 如何在C#中以编程方式创建XSD文件? - How to create XSD file programmatically in C#? 如何通过 C# 中的按钮单击事件以编程方式启动 dsa.msc? - How can you launch dsa.msc programmatically through a button click event in C#? 如何以编程方式(C#或Java)在Windows中启动应用并在其窗口中调用click? - How to programmatically (C# or Java) launch an app in Windows and invoke click in it's window? 如何在C#Windows Service项目中启动.bat文件 - How to launch a .bat file in a C# windows Service project 如何使用C#以编程方式打开服务器上的Office文件? - How to programmatically open an Office file locate on a Server with c#? 如何以编程方式将.MDF文件附加到Azure SQL Server C# - How to attach .MDF file to Azure SQL Server programmatically c#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM