Tag: Azure DevOps

  • How To Optimize Automation Using Azure DevOps

    How To Optimize Automation Using Azure DevOps

    Before doing all these we need to write test cases that contain test steps. The Test Steps describe the execution steps and expected results for each test step. The results of the comparison between the expected and actual outcomes are used to mark each step as pass or fail.

    azure devops dashboard
    login into dynamics window

    Save test case and copy its id.

    Now we need to associate this test to our unit project for it we need to place code on the repository. From the test explorer, we need to associate the test as below.

    associate the test case
    create in azure DevOps’s test case

    You need to add the ID of the test case created in azure DevOps’s test case.

    test case in ID column directly opens into azure DevOps

    You got the link of a test case in ID column which directly opens into azure DevOps.

    Here we are ready enough to use one of the most useful features of DevOps which provide true automation. The Azure Pipelines service enables you to automatically build, test, and make your code available to other users. It works with almost any type of language or project. Azure Pipelines combines continuous integration (CI) and continuous delivery (CD) to continuously test and build your code, and then deliver it. 

    Azure Pipeline is its self topic which I will cover in the next blog. Here I would like to discuss the pipeline that will automate the test cases.

    create a configuration of test plan in Azure DevOps

    Before creating a pipeline we need to create a configuration of test plan in Azure DevOps. The configuration is a platform on which the test code will run. Like which OS to use, which browser to use, etc. All these definitions provided in the configuration.

    configuration to run its test cases.

    We need to assign a configuration to test suits so suits will use configuration to run its test cases.

    add test cases into a pipeline and configure

    Now we are good to use the pipeline’s vsTest task add it into a pipeline and configure it below.

    Select test plan from the dropdown, select test suits, and select test configuration.

    check Test mix contains UI test as it is automation we need to check this.  

    Save and queue the pipeline and run it

    Save and queue the pipeline and run it. you can see real-time logs as tasks are running.

    get a summary of test cases

    We can get a summary of test cases also we can get logs of fail test cases. All these features going to provide ease in the development process and help develop more effective softwares.

  • Integrate Katalon with Azure DevOps

    Integrate Katalon with Azure DevOps

    You need to have Katalon Studio version 7.0.0 or later to use the Azure DevOps extension.

    This extension is NOT available for Linux.

    Prerequisites

    • Must have a Trial or Valid License (Always use your business email for trial Account).
    • You must have an Azure DevOps Service Account with the required permissions.
    • Installation of Katalon for Azure DevOps extension.
    • Katalon Studio command for console mode execution.
    • The command will invoke Katalon Studio Tests task for execution so a Katalon build is needed for each execution.

    So, let’s begin, please follow the below steps.

    Step 1 –

    • I am assuming you have signup on the Katalon Portal with your business account and downloaded the latest Katalon Studio.

      In my case, I am using a trial license and Katalon Studio 7.3.1 to integrate Katalon with Azure DevOps. You can use a trial license which will provide access to all the features for a limited time period.

    Step 2 –

    • Install Katalon for Azure DevOps extension. Once you have installed the extension, you will need to configure to execute the Katalon Studio Tests task to complete the integration.

    Step 3 –

    • If you already have a repo for the Katalon project on Git or Azure, then go to step 4, otherwise follow the below steps.

      In Azure DevOps, I have created a separate Project for demo purposes. Inside that project, I have created a repository by importing a sample Webservice project from Katalon Git Repositories. You can use your own custom Katalon Project.

      You can also create an empty repository on Azure and make a clone on your local machine. After that put your katalon project in that folder and commit those changes.

    clone to your computer

    Step 4 –

    Regarding the Command Arguments, you can generate them from your Katalon Studio.

    Click on Build CMD icon in Katalon Studio Tool. Click on the Browse button and select your Test Suit. Click on the Generate Command button.

    Note: Please leave out any irrelevant arguments such as -runmode-apiKeyOnPremises, etc.

    Step 5 –

    Now go to Pipeline in Azure DevOps, and then click Add to add the Katalon Task.

    • If you are using Classic Editor to create a pipeline without YAML then you will get a screen like this. Click on the Add button after searching for Katalon.

    Now go to Pipeline in Azure DevOps, and then click Add to add the Katalon Task.

    Once you have added the task, you will need to define the version of Katalon Studio and the command arguments.

    You can give your project path as given below by adding the relative path of your .prj file to D:a1s.

    If you are using the Yaml option to create an azure pipeline. Search for Katalon and click on Task.

    If you are using the Yaml option to create an azure pipeline. Search for Katalon and click on Task.

    Now define the version of your Katalon Studio and Command Argument and click on Add button.

    define the version of your Katalon Studio and Command Argument and click on Add button

    Step 6 –

    Now Save the pipeline and run it manually.

     Now Save the pipeline and run it manually.

    I hope this blog post helped you to solve the problem. If you’re still experiencing the same or other issues, consider contacting our Microsoft Azure Managed Services. We have a team of certified developers who can quickly help you fix all kinds of Azure-related issues.

    In the next blog post, I’ll write down about Reporting in Azure DevOps using Katalon.

  • Project Development + Azure DevOps = Happy Developers

    Project Development + Azure DevOps = Happy Developers

    HOW AZURE DEVOPS CAN HELP?

    • Azure Boards:
      You have to accept that while working on the project your team need various tool to manage their work items. Azure Board going to provide your team bunch of tools and services that manage the work for your software projects. With integrated reporting, customizable dashboard, managing your scrums meeting.

    Azure Pipelines:
    This is the most exciting feature when it is an action that gives us the power to automatically build and test your project and provide it to other users as well. It flexible for any language or project type.

    You can test, build, and ship code continuously and consistently with Azure Pipelines using continuous integration (CI) and continuous delivery (CD).

    • Azure Repos:
      Manage your code with version control tools provides you trackability on every check-in check-out. Working as a team we always need version control for a project code. Its always good practice to implement it.Azure Repos provides two types of version control:
      1)Git: distributed version control
      2)Team Foundation Version Control (TFVC): centralized version control
    • Azure Artifacts:
    • By using Azure Artifacts, you can manage and share Maven, NuGet, and npm package feeds from both public and private sources. With a single click, you can integrate package management into your continuous integration/continuous delivery pipelines.

    • Azure Test Plans:
      Quality is a vital aspect of software systems, and manual testing and exploratory testing continue to be an important technique for maximizing this. Every member of the software development team owns quality, including developers, managers, product owners, user experience advocates, and others. Using Azure DevOps and TFS, everyone in the team can drive quality and collaboration throughout the development process. Browser-based test management software provides all the capabilities needed for manual testing, user acceptance testing, exploratory testing, and gathering stakeholder feedback.

    IN THE UPCOMING BLOG, I WILL DESCRIBE OUR USER STORY OF HOW AZURE DEVOPS HELPS US IN PROJECT DEVELOPMENT, AUTOMATING TESTING AND MANAGING WORK ITEMS. STAY TUNED AND ☮