[英]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.