Showing posts with label test. Show all posts
Showing posts with label test. Show all posts

Saturday, November 18, 2023

Verify Terraform Configurations Using Terraform Test

This blog explains how to use the terraform test framework to verify that new changes do not break existing resources. 

Pre-requisites: Follow this blog and configure a terraform project with a test file.

The sample terraform project configure a resource group and a storage account in Azure.



Sunday, November 5, 2023

Getting Started with Terraform Test

This blog explains how to use new terraform test framework to test infrastructure automation scripts.

Pre-requisites: Install Terraform v1.6.0 or later version, Azure subscription, code editor (Visual studio code use as the code editor in this blog)

What is the use of terraform test?

Terraform has introduced new test framework which helps to achieve followings.

  • Validate terraform configuration updates and get verified new changes does not introduce any breaking changes.
  • Terraform test supports running test against test environment which allows to create short lived resources without breaking existing resources.

Thursday, September 17, 2020

Fix "unknown error: cannot find Chrome binary" Failure in UI Test Execution Using Test Clients in Azure DevOps Pipelines.

 This blog explains one of the issues faced by Test Automation team when executing the UI test scripts using Chrome web driver. Lets have a look at, what is the process Test Automation team followed and the issue encountered. Importantly let's see how it can be resolved. 

In the UI test scripts developed with Spec flow, Selenium and C#, the purpose is to run automated UI test using a CD pipeline. Team has setup a Azure DevOps agent to run in interactive mode and installed the chrome web browser in the agent VM. Once, pipelines are  executing the UI test automation using the test agent it has reported the following error.


System.AggregateException : One or more errors occurred. (unknown error: cannot find Chrome binary) (unknown error: cannot find Chrome binary)

---- OpenQA.Selenium.WebDriverException : unknown error: cannot find Chrome binary

---- OpenQA.Selenium.WebDriverException : unknown error: cannot find Chrome binary

Tuesday, February 6, 2018

Using Sikuli & Selenium in VS to Detect the Undetectable

While doing GUI automation, We can identify few limitations of the selenium web driver.

  • Selenium web driver does not support flash objects.
  • Selenium web driver automate only web applications.

Other than these web driver limitations,some times you may have to write automation scripts, while you do not have easy access to GUI’s internal code.

Sunday, January 28, 2018

Functional Testing with Selenium and Python

The visual studio IDE can be used to do the python+selenium script writing. The best thing is, If you use unittest module, Test case is displayed on the test explorer. Which allows to run a test case using test explorer.