SlideShare une entreprise Scribd logo
1  sur  23
HTTP://TESTINGTOOLSTECNIQUES.BLOGSPOT.COM/
FAHAD SHEIKH 0
0
LOAD TESTING WITH VISUAL
STUDIO
Fahad Sheikh
fsheikh@lmkt.com
http://testingtoolstecniques.blogspot.com/
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
Table of Contents
Chapter 1: Introduction.......................................................................................................................2
Load testing introduction ................................................................................................................2
Difference Betweenload and performance test................................................................................3
Performance testing:.................................................................................................................3
Load Testing:..............................................................................................................................3
Process of Creating load Test in Visual Studio...................................................................................3
Guidelines for a Good load test........................................................................................................4
Resources required for load testing With VSTS. ................................................................................4
Chapter 2: Creating Web Application Performance Test........................................................................4
Creating a Load Test Project ............................................................................................................5
Creating a Performance Test Using Recorder....................................................................................6
Parameterize recorded script...........................................................................................................8
Chapter 3: Load Testing Soap Web service.........................................................................................11
Creating a Load Test Project ..........................................................................................................11
Creating a Performance Test Using Recorder..................................................................................12
Parameterize script.......................................................................................................................14
Chapter 3: Creating Load test against Performance test......................................................................16
Add load test................................................................................................................................16
Executingload test........................................................................................................................20
Generating Report........................................................................................................................21
http://testingtoolstecniques.blogspot.com/
Chapter 1: Introduction
Load testing introduction
Load testingisthe processof puttingdemandona systemor device andmeasuringitsresponse.Load
testingisperformedtodetermine asystem’sbehaviorunderbothnormal andanticipatedpeakload
conditions.Ithelpstoidentifythe maximumoperatingcapacityof anapplicationaswell asany
bottlenecksanddeterminewhichelementiscausingdegradation.Whenthe loadplacedonthe system
israisedbeyondnormal usage patterns,inordertotestthe system'sresponse atunusuallyhighorpeak
loads,itis knownas stresstesting.The loadisusuallysogreatthat error conditionsare the expected
result,althoughnoclearboundaryexistswhenanactivityceasestobe aloadtest andbecomesa stress
test.
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
Difference Between load and performance test
Performance testing:
“In the computerindustry,software performance testingisusedtodetermine the speedor
effectivenessof acomputer,network,software programordevice.Thisprocesscaninvolve quantitative
testsdone ina lab, suchas measuringthe response time orthe numberof MIPS(millionsof instructions
persecond) at whicha systemfunctions.Qualitative attributessuchasreliability,scalabilityand
interoperabilitymayalsobe evaluated.Performance testingisoftendone inconjunctionwithstress
testing.”
Load Testing:
Load testingismeantto testthe systembyconstantlyandsteadilyincreasingthe loadonthe systemtill
the time itreachesthe thresholdlimit.Itisthe simplestformof testingwhichemploysthe use of
automationtoolssuchas Visual Studiooranyothergood tools,whichare available.Loadtestingisalso
famousbythe nameslike.
Difference:
Load Testing Performance Testing
Load testingismeantto testthe systemby
constantlyandsteadilyincreasingthe loadonthe
systemtill the time itreachesthe thresholdlimit
Performance testingismeasuringquality
characteristicsof an applicationlike‘Response
Time’,‘Processorutilization‘etc
It Is usedtodetermine what’sthe peaklimitof
requestunderwhichourapplicationcanwork
fine
Performance testingisused todetermine
performance characteristicse.g.what’sthe
response of a certainfunctionality.
The goals of loadtestingare to expose the
defectsinapplicationrelatedtobufferoverflow,
memoryleaksandmismanagementof memory
The primarygoal of performance testingincludes
establishingthe benchmarkbehaviorof
the system.There are a numberof industry-
definedbenchmarks,whichshouldbe metduring
performance testing.
How it’s used:
NormallyPerformanceTestandLoad testare performedtogetherbecause whenugenerate ahigh
volume loadonthe otherhand u have to measure responsetime processorutilizationandotherquality
characteristics
Process of Creating load Test in Visual Studio
These Diagramwill explainabasicloadtestcreation invisual studio.
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
Guidelines for a Good load test.
Load testshouldsimulate crateristicsof areal useras close aspossible e.g.onsigninwhatcan userdo
he can provide validorinvalidbothtype of credentials.
Load Testmust be provideda meaningfull data.
TestData mustbe createdafter analyzingthe processandall possibletype of datathat can be usedina
certainfunctionalitymustbe incorporatedsothatdifferenttypesof behaviorscanbe simulated
Resources required for load testing With VSTS.
Resourcesrequiredforaloadtestwithvisual studioare
Software Requirements:
Visual StudioUltimate
SQL Server
MicrosoftExcel
Hardware Requirements:
It dependsonloadtest
Chapter 2: Creating Web Application Performance Test
In thischapterwe will explainhowtocreate a Load testfor a Web Application.Aswe know aweb
applicationworksonHTTP requests,basicallyload testisdone againstthese HTTPrequestsitdoesn’t
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
clickany GUI elementsortypesinfielde.gwhenyouregisteronapplicationitcallssome GET POST
methodrecorderrecordsthisGET POSTmethodinsteadof recordingin whichelementsusertypedorhe
clicked.
Creating a Load Test Project
Firststepof creatinga loadtest Project.To-doso performfollowingsteps
Steps:
1. OpenVisual StudioInstance
2. Create a NewProjectByclickingNew > Project….
3. Click“Test”and thenselect“WebPerformance and LoadTest Project”withC#,Provide any
Suitable name andclick“OK”.
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
4. AfterCreatingProject
Creating a Performance Test Using Recorder
SecondStepisto create a performance testitcanbe createdusinga recorderor directlycallingHTTP
requestshere we will recordHTTPrequestsusingrecorder.
Steps:
1. To Adda Performance TestLeftClickyourprojectandopenAdd> Web Performance Test.
Note:A Web Testwill be automaticallyaddedandyoucanalsorename that if desired
2. Nowto Start RecorderClickRecordiconOn Visual StudioItwill startrecorderinIE.
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
3. PerformyouStepsandrecorderwill automaticallyrecordHTTPRequest
Here I am Performing
Open login.live.com/
Provide IdandPassword(Note:here Iam usingdummycredentials)
ClickSignin
U will see some HTTPrequestsrecordedonleftsideof screen
AfterRecordingClickSTOP.
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
4. Wait forsome time Visual Studiowill be detectingsome dynamicparametersautomaticallye.g
SessionID
GeneratedScriptwill looklike the below screenshot
Parameterize recorded script
As we knowinloadTest will simulate multiple Userstherefore insome casesall userneedaunique data
settherefore it’sveryimportanttoParameterize load.Tothisfollowingstepsare requiredtobe done
1. IdentifyFields/Parameterse.g.insignin twoparametersmustbe dynamicIDand Password.
2. ExpandYour Requestwhichishavingparameters.
As youcan see PasswordandID, These twoParametersare neededtobe dynamic
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
3. We require adata source to bindour parameterwithadata in Excel or SQL ServerTable.Todo
thisCreate a data source by clickhighlightedIcon.
4. If you wantto fetchdata for parametersfroma CSV file selectCSelse selectDatabase.
In case of SQL Servercreate a connectionwithD.Bbyperformingrequiredstepsandatlast
selectingtable.
5. Afteraddingdatasource viewwill be like this.
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
6. LeftClick Parameterand expandlistandthenselectfieldof table indatasource here Iam
selectingfromCSV
Expanddata source
Expand Table/CSV
SelectField
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
Nowparametervalue will looklike this
7. Save your test
Chapter 3: Load Testing Soap Web service
In thischapterwe will explainhowtocreate a Load testfor a Web Service.Aswe know aAndroid,Web
and differenttype of applicationare builtonSOAPWebservices , basicallyloadtestisdone against
these SOAPWebservices requests.
Creating a Load Test Project
Firststepof creatinga loadtestProject.To-doso performfollowingsteps
Steps:
5. OpenVisual StudioInstance
6. Create a NewProjectByclickingNew > Project….
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
7. Click“Test”and thenselect“WebPerformance andLoadTest Project”withC#,Provide any
Suitable name andclick“OK”.
8. AfterCreatingProject
Creating a Performance Test Using Recorder
SecondStepisto create a performance testitcanbe createdusinga recorderor directlycallingHTTP
requestshere we will recordHTTP requestsusingrecorder.
Steps:
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
1. To Adda Performance TestLeftClickyourprojectandopenAdd> Web Performance Test.
Note:A Web Testwill be automaticallyaddedandyoucanalsorename that if desired
2. If recorderopensclose itotherwise simplyleft clickyourtestandclick“Add WebService
Request” .
3. Change local hostpost methodtouserWeb service addressfrompropertiesatleftpane
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
4. In BodyPropertiesSelectContentType asText/XMLand in StringBodyprovide yourXML .
E.g. Please note use SOAP1.2Requestaswe are using.netframe work4.0 or 4.5
Clickok
Parameterize script
As we knowinloadTest will simulate multiple Userstherefore insome casesall userneedaunique data
settherefore it’sveryimportantto Parameterize Request. Tothisfollowingstepsare requiredtobe
done
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
1. We require adata source to bindour parameterwithadata in Excel or SQL ServerTable.Todo
thisCreate a data source by clickhighlightedIcon.
2. If you wantto fetchdata for parametersfroma CSV file selectCSelse selectDatabase.
In case of SQL Servercreate a connectionwithD.Bbyperformingrequiredstepsandatlast
selectingtable.
3. Nowopenthe webservice bodyXML andfor parameterizingaparametertype initstag
{{DataSource.Name of CSVfile .FieldName}} e.g. {{DataSource1.test#csv.ID}}
Thisway parameterize all requiredparametersof webservice.
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
Chapter 3: Creating Load test against Performance test
Add load test
Nowaftercreatinga performance testyouneedtocreate a loadtestagainstit.To do so perform
followingsteps.
Steps:
1. Leftclickprojectand open
2. A windowwill openclicknext
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
Name yourscenario, SelectThinktime andclickNext
SelectUserscountas per yourrequirementandtestmachine specifications.
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
SelectTestModel
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
Addyour Performance TestByclicking addwhichwouldbe includedinLoadtest
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
SelectYourtest
In thiswayconfigure yourloadtestand continue
Executing load test.
AfterDoingAll configurationssimplystartLoadtest
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
Whenloadtestwill startfollowinggraphswillbe shown
Generating Reporti
There are differentwaysof generatingaloadtestreport one isto automaticallycreatingreport using
excel andsecondone ispreparingreportyourself-havingonlyrequireddatawhatI normallyrequire is
response time anditsgraphsI simplymake reportlike the one mentionedbelowinemail formbutit
dependsonneed.
Fahad Shaikh
http://testingtoolstecniques.blogspot.com/
References:
http://testingtoolstecniques.blogspot.com/
i You can followmy posts on http://testingtoolstecniques.blogspot.com/

Contenu connexe

Tendances

Load testing using_neoload by kc
Load testing using_neoload by kcLoad testing using_neoload by kc
Load testing using_neoload by kckrishna chaitanya
 
Coldbox developer training – session 4
Coldbox developer training – session 4Coldbox developer training – session 4
Coldbox developer training – session 4Billie Berzinskas
 
2014 Joker - Integration Testing from the Trenches
2014 Joker - Integration Testing from the Trenches2014 Joker - Integration Testing from the Trenches
2014 Joker - Integration Testing from the TrenchesNicolas Fränkel
 
Exactpro Systems for KSTU Students in Kostroma
Exactpro Systems for KSTU Students in KostromaExactpro Systems for KSTU Students in Kostroma
Exactpro Systems for KSTU Students in KostromaIosif Itkin
 
Introduction to Performance Testing & Loadrunner
Introduction to Performance Testing & LoadrunnerIntroduction to Performance Testing & Loadrunner
Introduction to Performance Testing & LoadrunnerAisha Mazhar
 
Loadrunner presentation
Loadrunner presentationLoadrunner presentation
Loadrunner presentationmedsherb
 
Arquillian & Citrus
Arquillian & CitrusArquillian & Citrus
Arquillian & Citruschristophd
 
Web testing
Web testingWeb testing
Web testingMaveryx
 
Oracle appsloadtestbestpractices
Oracle appsloadtestbestpracticesOracle appsloadtestbestpractices
Oracle appsloadtestbestpracticessonusaini69
 
Behavior-Driven Development and Automation Testing Using Cucumber Framework W...
Behavior-Driven Development and Automation Testing Using Cucumber Framework W...Behavior-Driven Development and Automation Testing Using Cucumber Framework W...
Behavior-Driven Development and Automation Testing Using Cucumber Framework W...KMS Technology
 
Exploring No Mans Land with Keyword-Driven Testing
Exploring No Mans Land with Keyword-Driven TestingExploring No Mans Land with Keyword-Driven Testing
Exploring No Mans Land with Keyword-Driven TestingMartinGijsen
 
Overview of Lab Management and TFS
Overview of Lab Management and TFSOverview of Lab Management and TFS
Overview of Lab Management and TFSChris Kadel, MBA
 
Performance Testing using LoadRunner
Performance Testing using LoadRunnerPerformance Testing using LoadRunner
Performance Testing using LoadRunnerKumar Gupta
 
Continuous Testing in the Agile Age
Continuous Testing in the Agile AgeContinuous Testing in the Agile Age
Continuous Testing in the Agile AgeBlazeMeter
 
201502 - Integration Testing
201502 - Integration Testing201502 - Integration Testing
201502 - Integration Testinglyonjug
 
Using Automation to Meet Demands for Performance and Quality
Using Automation to Meet Demands for Performance and QualityUsing Automation to Meet Demands for Performance and Quality
Using Automation to Meet Demands for Performance and QualityNeotys
 

Tendances (20)

Load testing using_neoload by kc
Load testing using_neoload by kcLoad testing using_neoload by kc
Load testing using_neoload by kc
 
Coldbox developer training – session 4
Coldbox developer training – session 4Coldbox developer training – session 4
Coldbox developer training – session 4
 
2014 Joker - Integration Testing from the Trenches
2014 Joker - Integration Testing from the Trenches2014 Joker - Integration Testing from the Trenches
2014 Joker - Integration Testing from the Trenches
 
Exactpro Systems for KSTU Students in Kostroma
Exactpro Systems for KSTU Students in KostromaExactpro Systems for KSTU Students in Kostroma
Exactpro Systems for KSTU Students in Kostroma
 
Introduction to Performance Testing & Loadrunner
Introduction to Performance Testing & LoadrunnerIntroduction to Performance Testing & Loadrunner
Introduction to Performance Testing & Loadrunner
 
Neoload overview
Neoload overviewNeoload overview
Neoload overview
 
Loadrunner presentation
Loadrunner presentationLoadrunner presentation
Loadrunner presentation
 
Jbehave selenium
Jbehave seleniumJbehave selenium
Jbehave selenium
 
Arquillian & Citrus
Arquillian & CitrusArquillian & Citrus
Arquillian & Citrus
 
Web testing
Web testingWeb testing
Web testing
 
Oracle appsloadtestbestpractices
Oracle appsloadtestbestpracticesOracle appsloadtestbestpractices
Oracle appsloadtestbestpractices
 
Qa process
Qa processQa process
Qa process
 
Behavior-Driven Development and Automation Testing Using Cucumber Framework W...
Behavior-Driven Development and Automation Testing Using Cucumber Framework W...Behavior-Driven Development and Automation Testing Using Cucumber Framework W...
Behavior-Driven Development and Automation Testing Using Cucumber Framework W...
 
Exploring No Mans Land with Keyword-Driven Testing
Exploring No Mans Land with Keyword-Driven TestingExploring No Mans Land with Keyword-Driven Testing
Exploring No Mans Land with Keyword-Driven Testing
 
Overview of Lab Management and TFS
Overview of Lab Management and TFSOverview of Lab Management and TFS
Overview of Lab Management and TFS
 
Performance Testing using LoadRunner
Performance Testing using LoadRunnerPerformance Testing using LoadRunner
Performance Testing using LoadRunner
 
Continuous Testing in the Agile Age
Continuous Testing in the Agile AgeContinuous Testing in the Agile Age
Continuous Testing in the Agile Age
 
201502 - Integration Testing
201502 - Integration Testing201502 - Integration Testing
201502 - Integration Testing
 
Using Automation to Meet Demands for Performance and Quality
Using Automation to Meet Demands for Performance and QualityUsing Automation to Meet Demands for Performance and Quality
Using Automation to Meet Demands for Performance and Quality
 
Neoload
Neoload Neoload
Neoload
 

Similaire à Load testing with vs 2013

WebTest - Efficient Functional Web Testing with HtmlUnit and Beyond
WebTest - Efficient Functional Web Testing with HtmlUnit and BeyondWebTest - Efficient Functional Web Testing with HtmlUnit and Beyond
WebTest - Efficient Functional Web Testing with HtmlUnit and Beyondmguillem
 
Performance testing and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meterPurna Chandar
 
Less12 3 e_loadmodule_2
Less12 3 e_loadmodule_2Less12 3 e_loadmodule_2
Less12 3 e_loadmodule_2Suresh Mishra
 
JMeter & ColdFusion
JMeter & ColdFusion JMeter & ColdFusion
JMeter & ColdFusion isummation
 
Let's make this test suite run faster! SoftShake 2010
Let's make this test suite run faster! SoftShake 2010Let's make this test suite run faster! SoftShake 2010
Let's make this test suite run faster! SoftShake 2010David Gageot
 
performancetestingjmeter-121109061704-phpapp02
performancetestingjmeter-121109061704-phpapp02performancetestingjmeter-121109061704-phpapp02
performancetestingjmeter-121109061704-phpapp02Gopi Raghavendra
 
performancetestingjmeter-121109061704-phpapp02 (1)
performancetestingjmeter-121109061704-phpapp02 (1)performancetestingjmeter-121109061704-phpapp02 (1)
performancetestingjmeter-121109061704-phpapp02 (1)QA Programmer
 
appserver.io tutorial
appserver.io tutorialappserver.io tutorial
appserver.io tutorialappserver.io
 
Php[tek] 2016 - BDD with Behat for Beginners
Php[tek] 2016 - BDD with Behat for BeginnersPhp[tek] 2016 - BDD with Behat for Beginners
Php[tek] 2016 - BDD with Behat for BeginnersAdam Englander
 
Codeception introduction and use in Yii
Codeception introduction and use in YiiCodeception introduction and use in Yii
Codeception introduction and use in YiiIlPeach
 
Qtp complete guide for all
Qtp complete guide for allQtp complete guide for all
Qtp complete guide for allRamu Palanki
 
Selenium-Browser-Based-Automated-Testing-for-Grails-Apps
Selenium-Browser-Based-Automated-Testing-for-Grails-AppsSelenium-Browser-Based-Automated-Testing-for-Grails-Apps
Selenium-Browser-Based-Automated-Testing-for-Grails-Appschrisb206 chrisb206
 
Acceptance testing in php with Codeception - Techmeetup Edinburgh
Acceptance testing in php with Codeception - Techmeetup EdinburghAcceptance testing in php with Codeception - Techmeetup Edinburgh
Acceptance testing in php with Codeception - Techmeetup EdinburghEngineor
 

Similaire à Load testing with vs 2013 (20)

Combined Project
Combined ProjectCombined Project
Combined Project
 
WebTest - Efficient Functional Web Testing with HtmlUnit and Beyond
WebTest - Efficient Functional Web Testing with HtmlUnit and BeyondWebTest - Efficient Functional Web Testing with HtmlUnit and Beyond
WebTest - Efficient Functional Web Testing with HtmlUnit and Beyond
 
Performance testing and j meter
Performance testing and j meterPerformance testing and j meter
Performance testing and j meter
 
Bp ttutorial
Bp ttutorialBp ttutorial
Bp ttutorial
 
Less12 3 e_loadmodule_2
Less12 3 e_loadmodule_2Less12 3 e_loadmodule_2
Less12 3 e_loadmodule_2
 
Load Runner
Load RunnerLoad Runner
Load Runner
 
JMeter & ColdFusion
JMeter & ColdFusion JMeter & ColdFusion
JMeter & ColdFusion
 
Let's make this test suite run faster! SoftShake 2010
Let's make this test suite run faster! SoftShake 2010Let's make this test suite run faster! SoftShake 2010
Let's make this test suite run faster! SoftShake 2010
 
performancetestingjmeter-121109061704-phpapp02
performancetestingjmeter-121109061704-phpapp02performancetestingjmeter-121109061704-phpapp02
performancetestingjmeter-121109061704-phpapp02
 
performancetestingjmeter-121109061704-phpapp02 (1)
performancetestingjmeter-121109061704-phpapp02 (1)performancetestingjmeter-121109061704-phpapp02 (1)
performancetestingjmeter-121109061704-phpapp02 (1)
 
appserver.io tutorial
appserver.io tutorialappserver.io tutorial
appserver.io tutorial
 
Php[tek] 2016 - BDD with Behat for Beginners
Php[tek] 2016 - BDD with Behat for BeginnersPhp[tek] 2016 - BDD with Behat for Beginners
Php[tek] 2016 - BDD with Behat for Beginners
 
Qtp tutorial
Qtp tutorialQtp tutorial
Qtp tutorial
 
Codeception introduction and use in Yii
Codeception introduction and use in YiiCodeception introduction and use in Yii
Codeception introduction and use in Yii
 
loadrunner
loadrunnerloadrunner
loadrunner
 
Qtp basics
Qtp basicsQtp basics
Qtp basics
 
Qtp complete guide for all
Qtp complete guide for allQtp complete guide for all
Qtp complete guide for all
 
Selenium-Browser-Based-Automated-Testing-for-Grails-Apps
Selenium-Browser-Based-Automated-Testing-for-Grails-AppsSelenium-Browser-Based-Automated-Testing-for-Grails-Apps
Selenium-Browser-Based-Automated-Testing-for-Grails-Apps
 
Acceptance testing in php with Codeception - Techmeetup Edinburgh
Acceptance testing in php with Codeception - Techmeetup EdinburghAcceptance testing in php with Codeception - Techmeetup Edinburgh
Acceptance testing in php with Codeception - Techmeetup Edinburgh
 
Learning selenium sample
Learning selenium sampleLearning selenium sample
Learning selenium sample
 

Dernier

Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerThousandEyes
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsJhone kinadey
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️Delhi Call girls
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providermohitmore19
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Modelsaagamshah0812
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 

Dernier (20)

Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Unlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language ModelsUnlocking the Future of AI Agents with Large Language Models
Unlocking the Future of AI Agents with Large Language Models
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 

Load testing with vs 2013

  • 1. HTTP://TESTINGTOOLSTECNIQUES.BLOGSPOT.COM/ FAHAD SHEIKH 0 0 LOAD TESTING WITH VISUAL STUDIO Fahad Sheikh fsheikh@lmkt.com http://testingtoolstecniques.blogspot.com/
  • 3. Fahad Shaikh http://testingtoolstecniques.blogspot.com/ Table of Contents Chapter 1: Introduction.......................................................................................................................2 Load testing introduction ................................................................................................................2 Difference Betweenload and performance test................................................................................3 Performance testing:.................................................................................................................3 Load Testing:..............................................................................................................................3 Process of Creating load Test in Visual Studio...................................................................................3 Guidelines for a Good load test........................................................................................................4 Resources required for load testing With VSTS. ................................................................................4 Chapter 2: Creating Web Application Performance Test........................................................................4 Creating a Load Test Project ............................................................................................................5 Creating a Performance Test Using Recorder....................................................................................6 Parameterize recorded script...........................................................................................................8 Chapter 3: Load Testing Soap Web service.........................................................................................11 Creating a Load Test Project ..........................................................................................................11 Creating a Performance Test Using Recorder..................................................................................12 Parameterize script.......................................................................................................................14 Chapter 3: Creating Load test against Performance test......................................................................16 Add load test................................................................................................................................16 Executingload test........................................................................................................................20 Generating Report........................................................................................................................21 http://testingtoolstecniques.blogspot.com/ Chapter 1: Introduction Load testing introduction Load testingisthe processof puttingdemandona systemor device andmeasuringitsresponse.Load testingisperformedtodetermine asystem’sbehaviorunderbothnormal andanticipatedpeakload conditions.Ithelpstoidentifythe maximumoperatingcapacityof anapplicationaswell asany bottlenecksanddeterminewhichelementiscausingdegradation.Whenthe loadplacedonthe system israisedbeyondnormal usage patterns,inordertotestthe system'sresponse atunusuallyhighorpeak loads,itis knownas stresstesting.The loadisusuallysogreatthat error conditionsare the expected result,althoughnoclearboundaryexistswhenanactivityceasestobe aloadtest andbecomesa stress test.
  • 4. Fahad Shaikh http://testingtoolstecniques.blogspot.com/ Difference Between load and performance test Performance testing: “In the computerindustry,software performance testingisusedtodetermine the speedor effectivenessof acomputer,network,software programordevice.Thisprocesscaninvolve quantitative testsdone ina lab, suchas measuringthe response time orthe numberof MIPS(millionsof instructions persecond) at whicha systemfunctions.Qualitative attributessuchasreliability,scalabilityand interoperabilitymayalsobe evaluated.Performance testingisoftendone inconjunctionwithstress testing.” Load Testing: Load testingismeantto testthe systembyconstantlyandsteadilyincreasingthe loadonthe systemtill the time itreachesthe thresholdlimit.Itisthe simplestformof testingwhichemploysthe use of automationtoolssuchas Visual Studiooranyothergood tools,whichare available.Loadtestingisalso famousbythe nameslike. Difference: Load Testing Performance Testing Load testingismeantto testthe systemby constantlyandsteadilyincreasingthe loadonthe systemtill the time itreachesthe thresholdlimit Performance testingismeasuringquality characteristicsof an applicationlike‘Response Time’,‘Processorutilization‘etc It Is usedtodetermine what’sthe peaklimitof requestunderwhichourapplicationcanwork fine Performance testingisused todetermine performance characteristicse.g.what’sthe response of a certainfunctionality. The goals of loadtestingare to expose the defectsinapplicationrelatedtobufferoverflow, memoryleaksandmismanagementof memory The primarygoal of performance testingincludes establishingthe benchmarkbehaviorof the system.There are a numberof industry- definedbenchmarks,whichshouldbe metduring performance testing. How it’s used: NormallyPerformanceTestandLoad testare performedtogetherbecause whenugenerate ahigh volume loadonthe otherhand u have to measure responsetime processorutilizationandotherquality characteristics Process of Creating load Test in Visual Studio These Diagramwill explainabasicloadtestcreation invisual studio.
  • 5. Fahad Shaikh http://testingtoolstecniques.blogspot.com/ Guidelines for a Good load test. Load testshouldsimulate crateristicsof areal useras close aspossible e.g.onsigninwhatcan userdo he can provide validorinvalidbothtype of credentials. Load Testmust be provideda meaningfull data. TestData mustbe createdafter analyzingthe processandall possibletype of datathat can be usedina certainfunctionalitymustbe incorporatedsothatdifferenttypesof behaviorscanbe simulated Resources required for load testing With VSTS. Resourcesrequiredforaloadtestwithvisual studioare Software Requirements: Visual StudioUltimate SQL Server MicrosoftExcel Hardware Requirements: It dependsonloadtest Chapter 2: Creating Web Application Performance Test In thischapterwe will explainhowtocreate a Load testfor a Web Application.Aswe know aweb applicationworksonHTTP requests,basicallyload testisdone againstthese HTTPrequestsitdoesn’t
  • 6. Fahad Shaikh http://testingtoolstecniques.blogspot.com/ clickany GUI elementsortypesinfielde.gwhenyouregisteronapplicationitcallssome GET POST methodrecorderrecordsthisGET POSTmethodinsteadof recordingin whichelementsusertypedorhe clicked. Creating a Load Test Project Firststepof creatinga loadtest Project.To-doso performfollowingsteps Steps: 1. OpenVisual StudioInstance 2. Create a NewProjectByclickingNew > Project…. 3. Click“Test”and thenselect“WebPerformance and LoadTest Project”withC#,Provide any Suitable name andclick“OK”.
  • 7. Fahad Shaikh http://testingtoolstecniques.blogspot.com/ 4. AfterCreatingProject Creating a Performance Test Using Recorder SecondStepisto create a performance testitcanbe createdusinga recorderor directlycallingHTTP requestshere we will recordHTTPrequestsusingrecorder. Steps: 1. To Adda Performance TestLeftClickyourprojectandopenAdd> Web Performance Test. Note:A Web Testwill be automaticallyaddedandyoucanalsorename that if desired 2. Nowto Start RecorderClickRecordiconOn Visual StudioItwill startrecorderinIE.
  • 8. Fahad Shaikh http://testingtoolstecniques.blogspot.com/ 3. PerformyouStepsandrecorderwill automaticallyrecordHTTPRequest Here I am Performing Open login.live.com/ Provide IdandPassword(Note:here Iam usingdummycredentials) ClickSignin U will see some HTTPrequestsrecordedonleftsideof screen AfterRecordingClickSTOP.
  • 9. Fahad Shaikh http://testingtoolstecniques.blogspot.com/ 4. Wait forsome time Visual Studiowill be detectingsome dynamicparametersautomaticallye.g SessionID GeneratedScriptwill looklike the below screenshot Parameterize recorded script As we knowinloadTest will simulate multiple Userstherefore insome casesall userneedaunique data settherefore it’sveryimportanttoParameterize load.Tothisfollowingstepsare requiredtobe done 1. IdentifyFields/Parameterse.g.insignin twoparametersmustbe dynamicIDand Password. 2. ExpandYour Requestwhichishavingparameters. As youcan see PasswordandID, These twoParametersare neededtobe dynamic
  • 10. Fahad Shaikh http://testingtoolstecniques.blogspot.com/ 3. We require adata source to bindour parameterwithadata in Excel or SQL ServerTable.Todo thisCreate a data source by clickhighlightedIcon. 4. If you wantto fetchdata for parametersfroma CSV file selectCSelse selectDatabase. In case of SQL Servercreate a connectionwithD.Bbyperformingrequiredstepsandatlast selectingtable. 5. Afteraddingdatasource viewwill be like this.
  • 11. Fahad Shaikh http://testingtoolstecniques.blogspot.com/ 6. LeftClick Parameterand expandlistandthenselectfieldof table indatasource here Iam selectingfromCSV Expanddata source Expand Table/CSV SelectField
  • 12. Fahad Shaikh http://testingtoolstecniques.blogspot.com/ Nowparametervalue will looklike this 7. Save your test Chapter 3: Load Testing Soap Web service In thischapterwe will explainhowtocreate a Load testfor a Web Service.Aswe know aAndroid,Web and differenttype of applicationare builtonSOAPWebservices , basicallyloadtestisdone against these SOAPWebservices requests. Creating a Load Test Project Firststepof creatinga loadtestProject.To-doso performfollowingsteps Steps: 5. OpenVisual StudioInstance 6. Create a NewProjectByclickingNew > Project….
  • 13. Fahad Shaikh http://testingtoolstecniques.blogspot.com/ 7. Click“Test”and thenselect“WebPerformance andLoadTest Project”withC#,Provide any Suitable name andclick“OK”. 8. AfterCreatingProject Creating a Performance Test Using Recorder SecondStepisto create a performance testitcanbe createdusinga recorderor directlycallingHTTP requestshere we will recordHTTP requestsusingrecorder. Steps:
  • 14. Fahad Shaikh http://testingtoolstecniques.blogspot.com/ 1. To Adda Performance TestLeftClickyourprojectandopenAdd> Web Performance Test. Note:A Web Testwill be automaticallyaddedandyoucanalsorename that if desired 2. If recorderopensclose itotherwise simplyleft clickyourtestandclick“Add WebService Request” . 3. Change local hostpost methodtouserWeb service addressfrompropertiesatleftpane
  • 15. Fahad Shaikh http://testingtoolstecniques.blogspot.com/ 4. In BodyPropertiesSelectContentType asText/XMLand in StringBodyprovide yourXML . E.g. Please note use SOAP1.2Requestaswe are using.netframe work4.0 or 4.5 Clickok Parameterize script As we knowinloadTest will simulate multiple Userstherefore insome casesall userneedaunique data settherefore it’sveryimportantto Parameterize Request. Tothisfollowingstepsare requiredtobe done
  • 16. Fahad Shaikh http://testingtoolstecniques.blogspot.com/ 1. We require adata source to bindour parameterwithadata in Excel or SQL ServerTable.Todo thisCreate a data source by clickhighlightedIcon. 2. If you wantto fetchdata for parametersfroma CSV file selectCSelse selectDatabase. In case of SQL Servercreate a connectionwithD.Bbyperformingrequiredstepsandatlast selectingtable. 3. Nowopenthe webservice bodyXML andfor parameterizingaparametertype initstag {{DataSource.Name of CSVfile .FieldName}} e.g. {{DataSource1.test#csv.ID}} Thisway parameterize all requiredparametersof webservice.
  • 17. Fahad Shaikh http://testingtoolstecniques.blogspot.com/ Chapter 3: Creating Load test against Performance test Add load test Nowaftercreatinga performance testyouneedtocreate a loadtestagainstit.To do so perform followingsteps. Steps: 1. Leftclickprojectand open 2. A windowwill openclicknext
  • 18. Fahad Shaikh http://testingtoolstecniques.blogspot.com/ Name yourscenario, SelectThinktime andclickNext SelectUserscountas per yourrequirementandtestmachine specifications.
  • 20. Fahad Shaikh http://testingtoolstecniques.blogspot.com/ Addyour Performance TestByclicking addwhichwouldbe includedinLoadtest
  • 21. Fahad Shaikh http://testingtoolstecniques.blogspot.com/ SelectYourtest In thiswayconfigure yourloadtestand continue Executing load test. AfterDoingAll configurationssimplystartLoadtest
  • 22. Fahad Shaikh http://testingtoolstecniques.blogspot.com/ Whenloadtestwill startfollowinggraphswillbe shown Generating Reporti There are differentwaysof generatingaloadtestreport one isto automaticallycreatingreport using excel andsecondone ispreparingreportyourself-havingonlyrequireddatawhatI normallyrequire is response time anditsgraphsI simplymake reportlike the one mentionedbelowinemail formbutit dependsonneed.