SlideShare a Scribd company logo
1 of 6
WWW.qtptesting.com
          Keyword Driven Testing Frame Work Using the
                   Select … Case Statement




              Step 1:




                Step2:




www.traininighub.in      www.qtptesting.com
WWW.qtptesting.com




               Step 3:



     Step 4: Click Sign Out it will come to the Home page Login


       It is a concept to execute the Process.

How to Create?

Step 1: Create each and every reusable component.

              For this Create the Library <folder> store in this all .vbs files

Step 2: Create separately each and every Object Repositories.

              For this Create the ObjectRepository<folder> all the repository .tsr
              files copy in this folder

Step 3: associate all the .vbs files and objctRepository .tsr to Driver1 Script.

              For this Create the Driver <folder> store the Driver Script in this folder

              After open the qtp open this driver folder fist then run this test.

Step 4: Open the Data Table in QTP

Step 5: Write the Driver Script for calling all the tests through the Key Variable

Launch.vbs



www.traininighub.in        www.qtptesting.com
WWW.qtptesting.com
Function launch_app()

SystemUtil.Run "IEXPLORE.EXE",”Urls of site”

End Function


Login.vbs

Function login()

Browser("Header").Page("Header").WebEdit("userid1").Set "yourself"
Browser("Header").Page("Header").WebEdit("pwd1").SetSecure
"4f3f5cb824f8c09eb07fd80459f9"
Browser("Header").Page("Header").WebButton("Sign in").Click

End Function


Close.vbs

Function Close_app()

Browser("Header").Page("Header_2").Link("Sign Out").Click

End Function


QTP Test file name: Driver1

Write Driver1 Script:

Here associate all the .vbs files and .tsr files to this QTP Driver1 Test

Dim Var

Var = DataTable.Value ("key",Gloabl)

Select Case Var
Case "la" launch_app()
Case "ln" login()
Case "ca" Close_app()
End Select
Note: Without calling function directly execute all the reusable components.
Take the Key Variables in the QTP Data Table in QTP Driver Test:
View  Data Table


www.traininighub.in        www.qtptesting.com
WWW.qtptesting.com




Ex: Key is a User Defined Variable



Associate all each and every .vbs files to the Driver Script:

Call the Tests: Open the Drive Script

File  Settings  Resources  Associate all .vbs files here.

Launch.vbs, Login.vbs, Close.vbs

Note: if Create all .vbs files without descriptive programming. So here after
associate the .vbs files associate all the repository files also.

Associate all repository files to the driver Script:

Login.tsr, Logout.tsr

Resource  Associate Repositories  Click + button to add the Repository Select
that test available action  Click > button to associate the repository  Click Ok
button. Like this associate all the repositories.

Run> Drive1 Test

How to execute the Test:


www.traininighub.in        www.qtptesting.com
WWW.qtptesting.com
Step1. In Data Table Take Key Variable

Step2. Execute that respective key associated function

Step3. Increment the Row automatically take the next key Variable and execute
that respective key associated function and so … on execute remaining key
variables if any next.




If Single File also execute: maintenance is difficult to execute the process for
entire project.



Function launch ()

SystemUtil.Run "IEXPLORE.EXE", "Url of site"

End Function



Function login()

Browser("Header").Page("Header").WebEdit("userid1").Set "Yourself"

Browser("Header").Page("Header").WebEdit("pwd1").SetSecure
"4f3f5cb824f8c09eb07fd80459f9"

Browser("Header").Page("Header").WebButton("Sign in").Click

End Function



Function logout()

Browser("Header").Page("Header_2").Link("Sign Out").Click

End Function



Dim Var


www.traininighub.in      www.qtptesting.com
WWW.qtptesting.com
Var = DataTable.Value ("key",Gloabl)



Select Case Var

Case "a" launch()

Case "b" login()

Case "c" logout()

End Select



What is Key?

It is a Variable that assigns the reusable test. Using these keys to complete the end
to end process.




www.traininighub.in      www.qtptesting.com

More Related Content

What's hot

Using Selenium to Improve a Teams Development Cycle
Using Selenium to Improve a Teams Development CycleUsing Selenium to Improve a Teams Development Cycle
Using Selenium to Improve a Teams Development Cycleseleniumconf
 
Load testing with Visual Studio and Azure - Andrew Siemer
Load testing with Visual Studio and Azure - Andrew SiemerLoad testing with Visual Studio and Azure - Andrew Siemer
Load testing with Visual Studio and Azure - Andrew SiemerAndrew Siemer
 
Selenium RC: Automated Testing of Modern Web Applications
Selenium RC: Automated Testing of Modern Web ApplicationsSelenium RC: Automated Testing of Modern Web Applications
Selenium RC: Automated Testing of Modern Web Applicationsqooxdoo
 
Automated Smoke Tests with Protractor
Automated Smoke Tests with ProtractorAutomated Smoke Tests with Protractor
Automated Smoke Tests with Protractor🌱 Dale Spoonemore
 
Webservices(or)SoapUI Interview Questions
Webservices(or)SoapUI Interview QuestionsWebservices(or)SoapUI Interview Questions
Webservices(or)SoapUI Interview QuestionsH2kInfosys
 
Spring Boot & WebSocket
Spring Boot & WebSocketSpring Boot & WebSocket
Spring Boot & WebSocketMing-Ying Wu
 
JavaLand - Integration Testing How-to
JavaLand - Integration Testing How-toJavaLand - Integration Testing How-to
JavaLand - Integration Testing How-toNicolas Fränkel
 
Cis407 a ilab 6 web application development devry university
Cis407 a ilab 6 web application development devry universityCis407 a ilab 6 web application development devry university
Cis407 a ilab 6 web application development devry universitylhkslkdh89009
 
Jenkins CI/CD setup for iOS in Mac OSX
Jenkins CI/CD setup for iOS in Mac OSXJenkins CI/CD setup for iOS in Mac OSX
Jenkins CI/CD setup for iOS in Mac OSXGagan Vishal Mishra
 
Loadster Load Testing by RapidValue Solutions
Loadster Load Testing by RapidValue SolutionsLoadster Load Testing by RapidValue Solutions
Loadster Load Testing by RapidValue SolutionsRapidValue
 
Testcontainers - Geekout EE 2017 presentation
Testcontainers - Geekout EE 2017 presentationTestcontainers - Geekout EE 2017 presentation
Testcontainers - Geekout EE 2017 presentationRichard North
 
Riga Dev Day - Automated Android Continuous Integration
Riga Dev Day - Automated Android Continuous IntegrationRiga Dev Day - Automated Android Continuous Integration
Riga Dev Day - Automated Android Continuous IntegrationNicolas Fränkel
 
ASP.NET MVC Performance
ASP.NET MVC PerformanceASP.NET MVC Performance
ASP.NET MVC Performancerudib
 
C sharp and asp.net interview questions
C sharp and asp.net interview questionsC sharp and asp.net interview questions
C sharp and asp.net interview questionsAkhil Mittal
 
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
 
Take Control of your Integration Testing with TestContainers
Take Control of your Integration Testing with TestContainersTake Control of your Integration Testing with TestContainers
Take Control of your Integration Testing with TestContainersNaresha K
 
AWS EC2 Ubuntu Instance - Step-by-Step Deployment Guide
AWS EC2 Ubuntu Instance - Step-by-Step Deployment GuideAWS EC2 Ubuntu Instance - Step-by-Step Deployment Guide
AWS EC2 Ubuntu Instance - Step-by-Step Deployment GuideRapidValue
 

What's hot (20)

Using Selenium to Improve a Teams Development Cycle
Using Selenium to Improve a Teams Development CycleUsing Selenium to Improve a Teams Development Cycle
Using Selenium to Improve a Teams Development Cycle
 
Load testing with Visual Studio and Azure - Andrew Siemer
Load testing with Visual Studio and Azure - Andrew SiemerLoad testing with Visual Studio and Azure - Andrew Siemer
Load testing with Visual Studio and Azure - Andrew Siemer
 
Selenium RC: Automated Testing of Modern Web Applications
Selenium RC: Automated Testing of Modern Web ApplicationsSelenium RC: Automated Testing of Modern Web Applications
Selenium RC: Automated Testing of Modern Web Applications
 
Automated Smoke Tests with Protractor
Automated Smoke Tests with ProtractorAutomated Smoke Tests with Protractor
Automated Smoke Tests with Protractor
 
Asp.Net MVC Intro
Asp.Net MVC IntroAsp.Net MVC Intro
Asp.Net MVC Intro
 
Webservices(or)SoapUI Interview Questions
Webservices(or)SoapUI Interview QuestionsWebservices(or)SoapUI Interview Questions
Webservices(or)SoapUI Interview Questions
 
Spring Boot & WebSocket
Spring Boot & WebSocketSpring Boot & WebSocket
Spring Boot & WebSocket
 
JavaLand - Integration Testing How-to
JavaLand - Integration Testing How-toJavaLand - Integration Testing How-to
JavaLand - Integration Testing How-to
 
Cis407 a ilab 6 web application development devry university
Cis407 a ilab 6 web application development devry universityCis407 a ilab 6 web application development devry university
Cis407 a ilab 6 web application development devry university
 
JEE Programming - 05 JSP
JEE Programming - 05 JSPJEE Programming - 05 JSP
JEE Programming - 05 JSP
 
Jenkins CI/CD setup for iOS in Mac OSX
Jenkins CI/CD setup for iOS in Mac OSXJenkins CI/CD setup for iOS in Mac OSX
Jenkins CI/CD setup for iOS in Mac OSX
 
Loadster Load Testing by RapidValue Solutions
Loadster Load Testing by RapidValue SolutionsLoadster Load Testing by RapidValue Solutions
Loadster Load Testing by RapidValue Solutions
 
Testcontainers - Geekout EE 2017 presentation
Testcontainers - Geekout EE 2017 presentationTestcontainers - Geekout EE 2017 presentation
Testcontainers - Geekout EE 2017 presentation
 
Riga Dev Day - Automated Android Continuous Integration
Riga Dev Day - Automated Android Continuous IntegrationRiga Dev Day - Automated Android Continuous Integration
Riga Dev Day - Automated Android Continuous Integration
 
ASP.NET MVC Performance
ASP.NET MVC PerformanceASP.NET MVC Performance
ASP.NET MVC Performance
 
Introduction to spring boot
Introduction to spring bootIntroduction to spring boot
Introduction to spring boot
 
C sharp and asp.net interview questions
C sharp and asp.net interview questionsC sharp and asp.net interview questions
C sharp and asp.net interview questions
 
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
 
Take Control of your Integration Testing with TestContainers
Take Control of your Integration Testing with TestContainersTake Control of your Integration Testing with TestContainers
Take Control of your Integration Testing with TestContainers
 
AWS EC2 Ubuntu Instance - Step-by-Step Deployment Guide
AWS EC2 Ubuntu Instance - Step-by-Step Deployment GuideAWS EC2 Ubuntu Instance - Step-by-Step Deployment Guide
AWS EC2 Ubuntu Instance - Step-by-Step Deployment Guide
 

Viewers also liked

Snapshot On Mobile Data Growth
Snapshot On Mobile Data GrowthSnapshot On Mobile Data Growth
Snapshot On Mobile Data GrowthAshutosh Pandey
 
Ideaon Think Franchise Presentation
Ideaon Think Franchise PresentationIdeaon Think Franchise Presentation
Ideaon Think Franchise Presentationjuls4u
 
Para hablar de amor - paintings
 Para hablar de amor - paintings Para hablar de amor - paintings
Para hablar de amor - paintingsMakala (D)
 
Digital Partner for your Brand Communication
Digital Partner for your Brand CommunicationDigital Partner for your Brand Communication
Digital Partner for your Brand CommunicationSaurabh Pokharna
 
Federal Reserve housing white paper
Federal Reserve housing white paperFederal Reserve housing white paper
Federal Reserve housing white paperBruce Judson
 
Wayne Pua SM Portfolio
Wayne Pua SM PortfolioWayne Pua SM Portfolio
Wayne Pua SM PortfolioWayne Pua
 
Playing The harp.
Playing The harp.Playing The harp.
Playing The harp.Makala (D)
 
TestIT Software Assurance
TestIT Software AssuranceTestIT Software Assurance
TestIT Software Assurancetestitcouk
 
Quiet Moments.
Quiet Moments.Quiet Moments.
Quiet Moments.Makala (D)
 
Farsi in quattro n 15 marzo 2012
Farsi in quattro n 15   marzo 2012Farsi in quattro n 15   marzo 2012
Farsi in quattro n 15 marzo 2012giorgiocorradi
 
Farsi in Quattro N 16, Aprile 2012
Farsi in Quattro N 16, Aprile 2012Farsi in Quattro N 16, Aprile 2012
Farsi in Quattro N 16, Aprile 2012giorgiocorradi
 
Diigo 網路閱讀狂人必備知識分享工具
Diigo 網路閱讀狂人必備知識分享工具Diigo 網路閱讀狂人必備知識分享工具
Diigo 網路閱讀狂人必備知識分享工具bunny4776
 
Best kitchen knives
Best kitchen knivesBest kitchen knives
Best kitchen knivesbestkit3
 
1-Day Service innovation Public Workshop
1-Day Service innovation Public Workshop 1-Day Service innovation Public Workshop
1-Day Service innovation Public Workshop David Chung
 

Viewers also liked (19)

De rit van het leven
De rit van het levenDe rit van het leven
De rit van het leven
 
Book2
Book2Book2
Book2
 
Snapshot On Mobile Data Growth
Snapshot On Mobile Data GrowthSnapshot On Mobile Data Growth
Snapshot On Mobile Data Growth
 
Ideaon Think Franchise Presentation
Ideaon Think Franchise PresentationIdeaon Think Franchise Presentation
Ideaon Think Franchise Presentation
 
Para hablar de amor - paintings
 Para hablar de amor - paintings Para hablar de amor - paintings
Para hablar de amor - paintings
 
Jordan
JordanJordan
Jordan
 
Digital Partner for your Brand Communication
Digital Partner for your Brand CommunicationDigital Partner for your Brand Communication
Digital Partner for your Brand Communication
 
Federal Reserve housing white paper
Federal Reserve housing white paperFederal Reserve housing white paper
Federal Reserve housing white paper
 
Wayne Pua SM Portfolio
Wayne Pua SM PortfolioWayne Pua SM Portfolio
Wayne Pua SM Portfolio
 
Playing The harp.
Playing The harp.Playing The harp.
Playing The harp.
 
Cas n° 002 2017-grell-02
Cas n° 002 2017-grell-02Cas n° 002 2017-grell-02
Cas n° 002 2017-grell-02
 
TestIT Software Assurance
TestIT Software AssuranceTestIT Software Assurance
TestIT Software Assurance
 
Quiet Moments.
Quiet Moments.Quiet Moments.
Quiet Moments.
 
Farsi in quattro n 15 marzo 2012
Farsi in quattro n 15   marzo 2012Farsi in quattro n 15   marzo 2012
Farsi in quattro n 15 marzo 2012
 
Farsi in Quattro N 16, Aprile 2012
Farsi in Quattro N 16, Aprile 2012Farsi in Quattro N 16, Aprile 2012
Farsi in Quattro N 16, Aprile 2012
 
Shallwego
ShallwegoShallwego
Shallwego
 
Diigo 網路閱讀狂人必備知識分享工具
Diigo 網路閱讀狂人必備知識分享工具Diigo 網路閱讀狂人必備知識分享工具
Diigo 網路閱讀狂人必備知識分享工具
 
Best kitchen knives
Best kitchen knivesBest kitchen knives
Best kitchen knives
 
1-Day Service innovation Public Workshop
1-Day Service innovation Public Workshop 1-Day Service innovation Public Workshop
1-Day Service innovation Public Workshop
 

Similar to Keyword Driven Testing Framework Using Select Case

Automation anywhere Training Materials
Automation anywhere Training MaterialsAutomation anywhere Training Materials
Automation anywhere Training MaterialsShekar S
 
The Ring programming language version 1.2 book - Part 51 of 84
The Ring programming language version 1.2 book - Part 51 of 84The Ring programming language version 1.2 book - Part 51 of 84
The Ring programming language version 1.2 book - Part 51 of 84Mahmoud Samir Fayed
 
Qtp complete guide for all
Qtp complete guide for allQtp complete guide for all
Qtp complete guide for allRamu Palanki
 
Qtp 9.2 examples
Qtp 9.2 examplesQtp 9.2 examples
Qtp 9.2 examplesmedsherb
 
Why Every Tester Should Learn Ruby
Why Every Tester Should Learn RubyWhy Every Tester Should Learn Ruby
Why Every Tester Should Learn RubyRaimonds Simanovskis
 
Code igniter unittest-part1
Code igniter unittest-part1Code igniter unittest-part1
Code igniter unittest-part1Albert Rosa
 
The Ring programming language version 1.5.1 book - Part 67 of 180
The Ring programming language version 1.5.1 book - Part 67 of 180The Ring programming language version 1.5.1 book - Part 67 of 180
The Ring programming language version 1.5.1 book - Part 67 of 180Mahmoud Samir Fayed
 
3 Ways to test your ColdFusion API - 2017 Adobe CF Summit
3 Ways to test your ColdFusion API - 2017 Adobe CF Summit3 Ways to test your ColdFusion API - 2017 Adobe CF Summit
3 Ways to test your ColdFusion API - 2017 Adobe CF SummitOrtus Solutions, Corp
 
Testing ASP.NET - Progressive.NET
Testing ASP.NET - Progressive.NETTesting ASP.NET - Progressive.NET
Testing ASP.NET - Progressive.NETBen Hall
 
Scripting as a Second Language
Scripting as a Second LanguageScripting as a Second Language
Scripting as a Second LanguageRob Dunn
 
Making the most of your Test Suite
Making the most of your Test SuiteMaking the most of your Test Suite
Making the most of your Test Suiteericholscher
 
How to Simplify Load Testing: JMeter and Beyond
How to Simplify Load Testing: JMeter and BeyondHow to Simplify Load Testing: JMeter and Beyond
How to Simplify Load Testing: JMeter and BeyondAndrey Pokhilko
 
Angular Optimization Web Performance Meetup
Angular Optimization Web Performance MeetupAngular Optimization Web Performance Meetup
Angular Optimization Web Performance MeetupDavid Barreto
 
IBM ConnectED 2015 - MAS103 XPages Performance and Scalability
IBM ConnectED 2015 - MAS103 XPages Performance and ScalabilityIBM ConnectED 2015 - MAS103 XPages Performance and Scalability
IBM ConnectED 2015 - MAS103 XPages Performance and ScalabilityPaul Withers
 
Testing Ext JS and Sencha Touch
Testing Ext JS and Sencha TouchTesting Ext JS and Sencha Touch
Testing Ext JS and Sencha TouchMats Bryntse
 
Some useful tips with qtp
Some useful tips with qtpSome useful tips with qtp
Some useful tips with qtpSandeep
 
The Ring programming language version 1.5.2 book - Part 68 of 181
The Ring programming language version 1.5.2 book - Part 68 of 181The Ring programming language version 1.5.2 book - Part 68 of 181
The Ring programming language version 1.5.2 book - Part 68 of 181Mahmoud Samir Fayed
 

Similar to Keyword Driven Testing Framework Using Select Case (20)

Automation anywhere Training Materials
Automation anywhere Training MaterialsAutomation anywhere Training Materials
Automation anywhere Training Materials
 
The Ring programming language version 1.2 book - Part 51 of 84
The Ring programming language version 1.2 book - Part 51 of 84The Ring programming language version 1.2 book - Part 51 of 84
The Ring programming language version 1.2 book - Part 51 of 84
 
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
 
Qtp 9.2 examples
Qtp 9.2 examplesQtp 9.2 examples
Qtp 9.2 examples
 
Why Every Tester Should Learn Ruby
Why Every Tester Should Learn RubyWhy Every Tester Should Learn Ruby
Why Every Tester Should Learn Ruby
 
Qtp launch
Qtp launchQtp launch
Qtp launch
 
Code igniter unittest-part1
Code igniter unittest-part1Code igniter unittest-part1
Code igniter unittest-part1
 
The Ring programming language version 1.5.1 book - Part 67 of 180
The Ring programming language version 1.5.1 book - Part 67 of 180The Ring programming language version 1.5.1 book - Part 67 of 180
The Ring programming language version 1.5.1 book - Part 67 of 180
 
3 Ways to test your ColdFusion API - 2017 Adobe CF Summit
3 Ways to test your ColdFusion API - 2017 Adobe CF Summit3 Ways to test your ColdFusion API - 2017 Adobe CF Summit
3 Ways to test your ColdFusion API - 2017 Adobe CF Summit
 
Testing ASP.NET - Progressive.NET
Testing ASP.NET - Progressive.NETTesting ASP.NET - Progressive.NET
Testing ASP.NET - Progressive.NET
 
Scripting as a Second Language
Scripting as a Second LanguageScripting as a Second Language
Scripting as a Second Language
 
Making the most of your Test Suite
Making the most of your Test SuiteMaking the most of your Test Suite
Making the most of your Test Suite
 
How to Simplify Load Testing: JMeter and Beyond
How to Simplify Load Testing: JMeter and BeyondHow to Simplify Load Testing: JMeter and Beyond
How to Simplify Load Testing: JMeter and Beyond
 
Angular Optimization Web Performance Meetup
Angular Optimization Web Performance MeetupAngular Optimization Web Performance Meetup
Angular Optimization Web Performance Meetup
 
Qtp day 3
Qtp day 3Qtp day 3
Qtp day 3
 
IBM ConnectED 2015 - MAS103 XPages Performance and Scalability
IBM ConnectED 2015 - MAS103 XPages Performance and ScalabilityIBM ConnectED 2015 - MAS103 XPages Performance and Scalability
IBM ConnectED 2015 - MAS103 XPages Performance and Scalability
 
Testing Ext JS and Sencha Touch
Testing Ext JS and Sencha TouchTesting Ext JS and Sencha Touch
Testing Ext JS and Sencha Touch
 
Some useful tips with qtp
Some useful tips with qtpSome useful tips with qtp
Some useful tips with qtp
 
The Ring programming language version 1.5.2 book - Part 68 of 181
The Ring programming language version 1.5.2 book - Part 68 of 181The Ring programming language version 1.5.2 book - Part 68 of 181
The Ring programming language version 1.5.2 book - Part 68 of 181
 

Recently uploaded

Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfPrecisely
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 

Recently uploaded (20)

Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdfHyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
Hyperautomation and AI/ML: A Strategy for Digital Transformation Success.pdf
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 

Keyword Driven Testing Framework Using Select Case

  • 1. WWW.qtptesting.com Keyword Driven Testing Frame Work Using the Select … Case Statement Step 1: Step2: www.traininighub.in www.qtptesting.com
  • 2. WWW.qtptesting.com Step 3: Step 4: Click Sign Out it will come to the Home page Login It is a concept to execute the Process. How to Create? Step 1: Create each and every reusable component. For this Create the Library <folder> store in this all .vbs files Step 2: Create separately each and every Object Repositories. For this Create the ObjectRepository<folder> all the repository .tsr files copy in this folder Step 3: associate all the .vbs files and objctRepository .tsr to Driver1 Script. For this Create the Driver <folder> store the Driver Script in this folder After open the qtp open this driver folder fist then run this test. Step 4: Open the Data Table in QTP Step 5: Write the Driver Script for calling all the tests through the Key Variable Launch.vbs www.traininighub.in www.qtptesting.com
  • 3. WWW.qtptesting.com Function launch_app() SystemUtil.Run "IEXPLORE.EXE",”Urls of site” End Function Login.vbs Function login() Browser("Header").Page("Header").WebEdit("userid1").Set "yourself" Browser("Header").Page("Header").WebEdit("pwd1").SetSecure "4f3f5cb824f8c09eb07fd80459f9" Browser("Header").Page("Header").WebButton("Sign in").Click End Function Close.vbs Function Close_app() Browser("Header").Page("Header_2").Link("Sign Out").Click End Function QTP Test file name: Driver1 Write Driver1 Script: Here associate all the .vbs files and .tsr files to this QTP Driver1 Test Dim Var Var = DataTable.Value ("key",Gloabl) Select Case Var Case "la" launch_app() Case "ln" login() Case "ca" Close_app() End Select Note: Without calling function directly execute all the reusable components. Take the Key Variables in the QTP Data Table in QTP Driver Test: View  Data Table www.traininighub.in www.qtptesting.com
  • 4. WWW.qtptesting.com Ex: Key is a User Defined Variable Associate all each and every .vbs files to the Driver Script: Call the Tests: Open the Drive Script File  Settings  Resources  Associate all .vbs files here. Launch.vbs, Login.vbs, Close.vbs Note: if Create all .vbs files without descriptive programming. So here after associate the .vbs files associate all the repository files also. Associate all repository files to the driver Script: Login.tsr, Logout.tsr Resource  Associate Repositories  Click + button to add the Repository Select that test available action  Click > button to associate the repository  Click Ok button. Like this associate all the repositories. Run> Drive1 Test How to execute the Test: www.traininighub.in www.qtptesting.com
  • 5. WWW.qtptesting.com Step1. In Data Table Take Key Variable Step2. Execute that respective key associated function Step3. Increment the Row automatically take the next key Variable and execute that respective key associated function and so … on execute remaining key variables if any next. If Single File also execute: maintenance is difficult to execute the process for entire project. Function launch () SystemUtil.Run "IEXPLORE.EXE", "Url of site" End Function Function login() Browser("Header").Page("Header").WebEdit("userid1").Set "Yourself" Browser("Header").Page("Header").WebEdit("pwd1").SetSecure "4f3f5cb824f8c09eb07fd80459f9" Browser("Header").Page("Header").WebButton("Sign in").Click End Function Function logout() Browser("Header").Page("Header_2").Link("Sign Out").Click End Function Dim Var www.traininighub.in www.qtptesting.com
  • 6. WWW.qtptesting.com Var = DataTable.Value ("key",Gloabl) Select Case Var Case "a" launch() Case "b" login() Case "c" logout() End Select What is Key? It is a Variable that assigns the reusable test. Using these keys to complete the end to end process. www.traininighub.in www.qtptesting.com