TestStudio in a Github Action

1 Answer 19 Views
Test Execution
Leonardo
Top achievements
Rank 1
Leonardo asked on 31 Jan 2024, 01:16 PM
Is posible to run the test ina a github action?

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 31 Jan 2024, 02:55 PM

Hi Leonardo,

I have to admit that we haven't yet explored the option to use the GitHub Actions to execute the Test Studio tests. However, in theory there shouldn't be anything to be an obstacle for this. 

There are few important notes to keep in mind: 

  1. Minimum Test Studio installation required on the execution machine is the Run-time edition.
  2. The execution machine requires active user session for running UI functional tests - theTest Studio test runner provides built in options to control the user session
    Note: The case when the active desktop session is not a must is if you run web tests in headless browser mode. 
  3. The build agent (GitHub runner in this case) needs to run in interactive mode. 
    Note: The case when the build agent can run as a service is if you run web tests in headless browser mode.
  4. The test or test list execution is triggered with a command through the Test Studio CLI runner called the ArtOfTest.Runner

As far as I am familiar with the options for setting up machines and agents with GitHub Actions I guess that the GitHub-hosted runners can be compared to the Microsoft-hosted agents and thus used only for headless testing, and the self-hosted runners are the equivalent of Azure DevOps self-hosted agents, which are installed on a local machine and are self-managed. That second type of agents allow you to execute any UI tests if there is an active user session on the machine. 

If you decide to try setting up such environment on your end I remain available to assist further if any questions or doubts popup while configuring the yaml file. 

Thank you for your understanding and cooperation in advance. 

Regards,
Elena
Progress Telerik

Virtual Classroom is the free self-paced technical training portal that gets you up to speed with Telerik and Kendo UI products including Telerik Test Studio! Check it out at https://learn.telerik.com/.
Tags
Test Execution
Asked by
Leonardo
Top achievements
Rank 1
Answers by
Elena
Telerik team
Share this question
or