Skip to content

Files

Latest commit

 

History

History
175 lines (125 loc) · 9.49 KB

hyperexecute-running-your-first-job.md

File metadata and controls

175 lines (125 loc) · 9.49 KB
id title hide_title sidebar_label description keywords url site_name slug
hyperexecute-running-your-first-job
Running Your First Job on HyperExecute
true
Running Your First Job
Run your first job on HyperExecute
LambdaTest Hyperexecute
LambdaTest Hyperexecute help
LambdaTest Hyperexecute documentation
Run your first job on HyperExecute
LambdaTest
hyperexecute-running-your-first-job/
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify({ "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://www.lambdatest.com" },{ "@type": "ListItem", "position": 2, "name": "Support", "item": "https://www.lambdatest.com/support/docs/" },{ "@type": "ListItem", "position": 3, "name": "Running Your First Job on HyperExecute", "item": "https://www.lambdatest.com/support/docs/hyperexecute-running-your-first-job/" }] }) }} ></script>

Running Your First Job on HyperExecute

This page outlines how you can run your first test execution job on HyperExecute.


Before you start

We recommend to run your first test execution job using a sample project on HyperExecute. This can be done in 3 different ways as mentioned below:

  1. Using Quick Run - Execute tests directly from the HyperExecute Portal. (Recommended for new users)
  2. Using Local System - Execute tests from your Local System. (Requires HyperExecute CLI)
  3. Using GitPod - Execute tests using GitPod. (Requires a GitPod account)

1. Using Quick Run

As you are running tests directly from the HyperExecute GUI, you don't need to do anything. The platform automatically gets the instructions from the HyperExecute YAML file and starts the execution using the HyperExecute CLI.

  1. Go to the Quickstart page.

  2. Select your preferred test automation framework and hit Get Started. <img loading="lazy" src={require('../assets/images/hyperexecute/getting_started/run-first-job/1.png').default} alt="Image" className="doc_img"/>

  3. You can overwrite the HyperExecute YAML here (Optional). Otherwise just click on Trigger test to run your first job. <img loading="lazy" src={require('../assets/images/hyperexecute/getting_started/run-first-job/2.png').default} alt="Image" className="doc_img"/>

  4. At this step the test execution is initiated using the HyperExecute CLI in the background. <img loading="lazy" src={require('../assets/images/hyperexecute/getting_started/run-first-job/3.png').default} alt="Image" className="doc_img"/>

  5. Click on View Test Result to navigate to HyperExecute Dashboard where you can see the job getting executed and the test results.

<img loading="lazy" src={require('../assets/images/hyperexecute/getting_started/run-first-job/10.png').default} alt="Image" className="doc_img"/>


2. Using Local System

<img loading="lazy" src={require('../assets/images/hyperexecute-getting-started/onboarding.png').default} alt="Image" className="doc_img"/>

To run your Test Scripts on HyperExecute from you Local system, you'll need the following:

We will be taking care of everything one by one, just follow the steps given below:

  1. Go to the Quickstart page.

  2. Choose your test automation framework, Select Run on Local System and click on Get Started.

<img loading="lazy" src={require('../assets/images/hyperexecute/getting_started/run-first-job/4.png').default} alt="Image" className="doc_img"/>

  1. Download a sample project by clicking on Code Sample. (Skip this step if you already have a project you want to test)

<img loading="lazy" src={require('../assets/images/hyperexecute/getting_started/run-first-job/5.png').default} alt="Image" className="doc_img"/>

  1. Download the HyperExecute CLI as per the OS that you are on.

<img loading="lazy" src={require('../assets/images/hyperexecute/getting_started/run-first-job/6.png').default} alt="Image" className="doc_img"/>

  1. Select the OS on which you want to run your tests and then download the HyperExecute YAML file shown on screen. This contains all the configurations required for running tests on HyperExecute.

<img loading="lazy" src={require('../assets/images/hyperexecute/getting_started/run-first-job/7.png').default} alt="Image" className="doc_img"/>

<img loading="lazy" src={require('../assets/images/hyperexecute/getting_started/run-first-job/8.png').default} alt="Image"  className="doc_img"/>

Note: Your Yaml file should be in the root directory of your project. If you are renaming it, also change the file name in the execution script as well. You can learn more about the advanced configurations here, however for the given sample projects you can simply download the file using the small icon on top right.

  1. In order to run your tests, copy the command from screen and run in your terminal: <img loading="lazy" src={require('../assets/images/hyperexecute/getting_started/run-first-job/9.png').default} alt="Image" className="doc_img"/>

  2. The generic command required to initiate test execution is given below. You will need to insert the Username, Access key and name of your YAML file in place of the <your_username>, <your_acess_key> and <your_yaml_file_name> before running this command. (Skip if you already used the command from Step 6. )

    ./hyperexecute --user <your_username> --key <your_access_key> --config <your_yaml_file_name>"

    In case of MAC, if you get a permission denied warning while executing CLI, simply run chmod u+x ./hyperexecute to allow permission. In case you get a security popup, allow it from your System PreferencesSecurity & PrivacyGeneral tab.

  3. When you run this command, the HyperExecute CLI will send your test scripts to the HyperExecute Platform for execution across multiple parallel Test Execution Nodes.

  4. Once your Job is running, you can click on View Test Results to navigate to HyperExecute Dashboard where you can see the job getting executed along with the test results. <img loading="lazy" src={require('../assets/images/hyperexecute/getting_started/run-first-job/10.png').default} alt="Image" className="doc_img"/>

If you are facing any issues in running your first job? Watch our Webinar Video


3. Using Gitpod

  1. Go to the Quickstart page.

  2. Choose your test automation framework, select Run test on Gitpod and click on Get Started.

<img loading="lazy" src={require('../assets/images/hyperexecute/getting_started/run-first-job/11.png').default} alt="Image" className="doc_img"/>

  1. You will need to login into your Gitpod account, or create a new one.
    (If you are creating a new account, choose your preferred editor. We recommend VS Code)

<img loading="lazy" src={require('../assets/images/hyperexecute/getting_started/run-first-job/12.png').default} alt="Image" className="doc_img"/>

  1. As you are running a sample project, Fetching of the Test Scripts, HyperExecute YAML, HyperExecute CLI and Triggering your tests using the Execution Command will be automated.

  2. Once you see the Job Link in the logs, you can visit the HyperExecute dashboard to see the tests getting executed.

HyperExecute Webinar Video