Pawan Kumar delivered a session on "Testing for Microservice App using Azure Service Fabric Cluster" at ATAGTR2020
ATAGTR2020 was the 5th Edition of Global Testing Retreat.
Pawan has 7+ years of experience in Testing world with Banking, Healthcare and Water domain.
He has exposure to IoT, Microservices, Cloud, Ranorex, Selenium, QTP, Docker run extensively, Xamarin, Cloud based Web/Mobile testing with Framework architecture designing.
The video recording of the session is now available on the following link: https://youtu.be/EiehJud8aoc
To know more about #ATAGTR2020, please visit: https://gtr.agiletestingalliance.org/
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
#ATAGTR2020 Presentation - Testing for Microservice App using Azure Service Fabric Cluster
1. #ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
#ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
Testing for MSApps using
Azure Service fabric cluster
Pawan Kumar
2. #ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
#ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
Agenda
• Microservices overview
• Introduction to Service Fabric
• Service Fabric architecture
• Service Fabric advantages
• Service Fabric for Testing
• Configure Service Fabric Cluster in Local and Azure
• Demo: Run Tests in Local and Azure Cluster
• Q&A
3. #ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
#ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
Microservice overview
• Differ from Monolithic architecture
• All in single process
• Scales by replicating monolith on multiple server
• Tightly coupled
• Collection of small services
• Highly maintainable and testable
• Communicate among services with APIs
• Independently deployable
• Scales by distributing services on servers
• Replicating them whenever needed.
• Loosely coupled
4. #ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
#ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
Introduction to Service Fabric
5. #ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
#ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
Service Fabric architecture
6. #ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
#ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
Service Fabric advantages
• Hyper-scalability
• Programming Model flexibility
• Stateful and Stateless
• Reliable
• Low latency
• Deploy quick and anywhere
• Always on
• Service health monitoring
• Self-healing
7. #ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
#ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
Service Fabric for Testing
• Microservices individual services will be treated as Software module.
• Easy to write tests for small and individual components
• Trigger multiple module APIs or Unit Tests from single API call
• Allows to run Tests with dynamic scaling capability on multiple nodes
• With Azure it also supports load balancing for faster test execution
8. #ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
#ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
Configure Service Fabric Cluster Locally
Download executable file from below link
https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-get-started
9. #ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
#ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
Configure Service Fabric Cluster Locally
10. #ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
#ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
Configure Service Fabric Cluster in Azure
• Login to Azure portal with Azure CLI
• az login
• Check account list or subscription list
• az account list --output table
• Select subscription account
• az account set --subscription “subscription guid“
• Set global variables
• $rg = “gtr2020"
• $location = "southcentralus"
• $clusterName = “gtr2020-clustername"
• $certPath = "C:PawanGTR202012-13 DecServiceFabric"
• $subjectName = $clusterName + "." + $location + "cloudapp.azure.com"
• $vaultName = “gtr2020kv"
• $password = "Password3637*"
11. #ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
#ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
Configure Service Fabric Cluster in Azure
• Get account location list
• az account list-locations --output table
• Create Resource group and its location
• az group create --name $rg --location $location
• Verify if Resource group created
• az group list --output table
• Create KeyVault
• az keyvault create --resource-group $rg --name $vaultName --location $location --enabled-
for-deployment --enabled-for-template-deployment
• Verify If key-vault created
• az keyvault list --output table
12. #ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
#ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
Configure Service Fabric Cluster in Azure
• Create Service Fabric Cluster
• az sf cluster create --resource-group $rg `
--location $location `
--cluster-name $clusterName `
--certificate-output-folder $certPath `
--certificate-subject-name $subjectName `
--vault-name $vaultName `
--vault-resource-group $rg `
--vm-password $password
13. #ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
#ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
Configure Service Fabric Cluster in Azure
14. #ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
#ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
Demo
• Installation of Service fabric locally as well as in Azure portal.
• Configuration of nodes and its Load balancer
• Create MsApps application and its test project
• Deploy tests in Local fabric cluster and execute thorough API call
• Deploy tests in Azure fabric cluster and execute through API call
15. #ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
#ATAGTR2020
As a author of this presentation I/we own the copyright and confirm the originality of the content. I/we allow Agile testing alliance to use the content for social media marketing, publishing it on ATA Blog or ATA social medial
channels(Provided due credit is given to me/us)
References
• https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-overview
• https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-architecture
• https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-get-started
• https://github.com/pawanbrn/GTR2020_sfctl/tree/Gtr2020