SlideShare a Scribd company logo
The other side of elegant websites

Balaji Iyer, Anwarhusen Malgave
SIGIST,13 March 2013

© Mindtree limited 2013
Outline
•  The Elegance
•  Performance Testing
•  The Other side
•  Impact
•  The Attempt
•  Road Ahead
The Culprits
Balaji Iyer
•  Works	
  with	
  Mindtree	
  Limited	
  
•  Develop	
  tools,	
  frameworks	
  	
  
	
  	
  	
  	
  in	
  the	
  area	
  of	
  Performance	
  Tes;ng	
  
•  Open	
  sourced	
  JMeter	
  Error	
  Listener	
  at	
  Github	
  
•  Other	
  areas	
  of	
  interest	
  include	
  Web	
  applica;on	
  
Security	
  Tes;ng	
  

Anwarhusen Malgave
•  Works	
  with	
  Mindtree	
  Limited	
  
•  Develop	
  tools,	
  frameworks	
  	
  
	
  	
  	
  	
  in	
  the	
  area	
  of	
  Performance	
  Tes;ng	
  
•  Other	
  areas	
  of	
  interest	
  include	
  test	
  automa;on	
  and	
  
UI	
  development	
  
The Elegance
Before

EVOLUTION

After
Elegant websites
Performance Testing of Elegant websites

Scrip;ng	
  

Why?

Execu;on	
  
Tools

Analysis	
  
Tuning	
  

Facts

	
  
	
  
Rich	
  Set	
  of	
  web	
  applica0ons	
  
Ten	
  seconds	
  is	
  about	
  the	
  limit	
  for	
  keeping	
  the	
  user’s	
  a;en0on	
  
Speed,	
  scalability	
  etc.	
  
	
  
	
  
	
  	
  	
  	
  JMeter	
  
	
  	
  	
  	
  Open	
  Source	
  
	
  	
  	
  	
  PlaCorm	
  Agnos0c	
  

Google	
  search	
  handles	
  over	
  1	
  billion	
  searches	
  per	
  day	
  
In	
  20	
  minutes	
  2,716,000	
  photos	
  are	
  uploaded	
  on	
  Facebook	
  
More	
  than	
  65	
  million	
  tweets	
  a	
  day	
  
	
  
The Other side of Elegance - Scripting Challenges
Basics - Need for Parameterization

Name : Shaun
Search : Mobile

Name : Ted
Search : Book

Name : Joe
Search : Bag

Name : Marsh
Search : Laptop

Name : Frank
Search : Wallet

	
  
APPLICATION	
  
Basics - Need for Correlation
Replaying (Correlated)

	
  	
  

Browser

Login:Enter Credentials

Login Successful(Session Id : ssn789)

Get HomePage (Submit : ssn789)

Homepage retrieved

Application Under
Test	
  
Challenges…
	
  	
  +	
  	
  	
  	
  	
  Iden0fy	
  parameters	
  for	
  parameteriza0on	
  and	
  correla0on	
  
	
  +	
  	
  	
  	
  	
  Script	
  Management	
  across	
  builds	
  

	
  +	
  	
  	
  	
  	
  	
  Script	
  Interoperability	
  

	
  +	
  	
  	
  	
  	
  	
  Iden0fy	
  java	
  scripts	
  dealing	
  with	
  business	
  logic	
  
Impact

TIME

COST

QUALITY
The Attempt
Scripting Engine

	
  	
  

Application Under
Test	
  

Browser

JMeter
	
  
Req-Res

	
  
	
  

Scripting Engine

Req-Res
Functions
•  Categorize parameters for parameterization and correlation
•  Auto and manual correlation
•  “Remember Me” functionality for frequently cited parameters
•  Gauge differences between scripts across different builds
•  Convert script to other load test tool templates
Road Ahead
•  Narrow down on java scripts dealing with business logic
•  Port scripts to new versions of VSTS
•  Enhance existing algorithm to support huge request and parameter set
Questions & Answers
Scrip;ng	
  Engine	
  
Correla;on	
  

Performance	
  

Parameteriza;on	
  
Scrip;ng	
  
www.mindtree.com/social

India | USA | UK | Germany | Sweden | Belgium | France | Switzerland | UAE | Singapore | Australia | Japan | China

More Related Content

The other side of elegant websites

  • 1. The other side of elegant websites Balaji Iyer, Anwarhusen Malgave SIGIST,13 March 2013 © Mindtree limited 2013
  • 2. Outline •  The Elegance •  Performance Testing •  The Other side •  Impact •  The Attempt •  Road Ahead
  • 3. The Culprits Balaji Iyer •  Works  with  Mindtree  Limited   •  Develop  tools,  frameworks            in  the  area  of  Performance  Tes;ng   •  Open  sourced  JMeter  Error  Listener  at  Github   •  Other  areas  of  interest  include  Web  applica;on   Security  Tes;ng   Anwarhusen Malgave •  Works  with  Mindtree  Limited   •  Develop  tools,  frameworks            in  the  area  of  Performance  Tes;ng   •  Other  areas  of  interest  include  test  automa;on  and   UI  development  
  • 7. Performance Testing of Elegant websites Scrip;ng   Why? Execu;on   Tools Analysis   Tuning   Facts     Rich  Set  of  web  applica0ons   Ten  seconds  is  about  the  limit  for  keeping  the  user’s  a;en0on   Speed,  scalability  etc.              JMeter          Open  Source          PlaCorm  Agnos0c   Google  search  handles  over  1  billion  searches  per  day   In  20  minutes  2,716,000  photos  are  uploaded  on  Facebook   More  than  65  million  tweets  a  day    
  • 8. The Other side of Elegance - Scripting Challenges
  • 9. Basics - Need for Parameterization Name : Shaun Search : Mobile Name : Ted Search : Book Name : Joe Search : Bag Name : Marsh Search : Laptop Name : Frank Search : Wallet   APPLICATION  
  • 10. Basics - Need for Correlation Replaying (Correlated)     Browser Login:Enter Credentials Login Successful(Session Id : ssn789) Get HomePage (Submit : ssn789) Homepage retrieved Application Under Test  
  • 11. Challenges…    +          Iden0fy  parameters  for  parameteriza0on  and  correla0on    +          Script  Management  across  builds    +            Script  Interoperability    +            Iden0fy  java  scripts  dealing  with  business  logic  
  • 14. Scripting Engine     Application Under Test   Browser JMeter   Req-Res     Scripting Engine Req-Res
  • 15. Functions •  Categorize parameters for parameterization and correlation •  Auto and manual correlation •  “Remember Me” functionality for frequently cited parameters •  Gauge differences between scripts across different builds •  Convert script to other load test tool templates
  • 16. Road Ahead •  Narrow down on java scripts dealing with business logic •  Port scripts to new versions of VSTS •  Enhance existing algorithm to support huge request and parameter set
  • 17. Questions & Answers Scrip;ng  Engine   Correla;on   Performance   Parameteriza;on   Scrip;ng  
  • 18. www.mindtree.com/social India | USA | UK | Germany | Sweden | Belgium | France | Switzerland | UAE | Singapore | Australia | Japan | China