Solved

How to run UI automation from Azure pipeline?

  • 13 July 2023
  • 1 reply
  • 55 views

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.

icon

Best answer by davidnavasardyan09 21 August 2023, 08:34

View original

1 reply

Userlevel 5
Badge +1

@ziarahman62 

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:

  1. 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.

  2. Select a template: Choose the "ASP.NET Core" template, which is suitable for console applications.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. Configure the triggers: Set up the triggers for your pipeline, such as continuous integration (CI) or scheduled builds.

  8. Save and run the pipeline: Save your pipeline and click "Run" to build and run your Acumatica Automation project.

  9. 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


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved