I am creating a Azure DevOps pipeline for Acumatica Automation project to build and run. I am not able to run the automation from pipeline. I may be using the wrong task. I have tried dotnet run, since Acumatica Automation is console application. VS test may not work since it is for nunit/xunit type. Any idea/suggestions or link to the article or YouTube video. I tried googling but no help.
How to run UI automation from Azure pipeline?
Best answer by davidnavasardyan
Creating an Azure DevOps pipeline for an Acumatica Automation project involves setting up the build and deployment process for your project. Since the Acumatica Automation project is a console application, you can use the dotnet build
and dotnet run
commands for building and running the project. However, it is important to set up the tasks correctly and configure the necessary parameters.
Here are the steps to create an Azure DevOps pipeline for an Acumatica Automation project:
-
Create a new pipeline: In Azure DevOps, go to "Pipelines" and click "Create Pipeline". Choose the source code repository where your Acumatica Automation project is located.
-
Select a template: Choose the "ASP.NET Core" template, which is suitable for console applications.
-
Configure the build task: Add a task to build your Acumatica Automation project using the
dotnet build
command. Set the "Path to project(s)" parameter to the path of your Acumatica Automation project. You can also specify additional parameters, such as the configuration (Debug/Release) and the target framework. -
Configure the run task: Add a task to run your Acumatica Automation project using the
dotnet run
command. Set the "Working Directory" parameter to the path of your Acumatica Automation project. You can also specify additional parameters, such as command-line arguments. -
Configure the test task: If your Acumatica Automation project includes tests, add a task to run the tests using the appropriate test runner. For example, if you are using NUnit, you can add a task to run the tests using the
dotnet test
command. -
Configure the artifacts: If you want to publish artifacts from your Acumatica Automation project, such as DLLs or log files, add a task to publish the artifacts. Set the "Path to publish" parameter to the path of the artifacts you want to publish.
-
Configure the triggers: Set up the triggers for your pipeline, such as continuous integration (CI) or scheduled builds.
-
Save and run the pipeline: Save your pipeline and click "Run" to build and run your Acumatica Automation project.
-
Review the results: After the pipeline runs, review the results to see if the build and run tasks were successful. If there are any errors or warnings, review the logs to troubleshoot the issues.
Keep in mind that building and running an Acumatica Automation project in an Azure DevOps pipeline might require some additional configuration, depending on the specifics of your project. You might need to set up variables, parameters, or dependencies to ensure that the build and run tasks work correctly.
If you are having difficulty running the automation from the pipeline, make sure that the pipeline is correctly configured, and review the logs for any error messages or warnings. Consider running the pipeline with the "Debug" option enabled to get more detailed logs. You can also use the "dotnet run" command locally to verify that the automation works outside of the pipeline.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.