Skip to content

Iptv Assist

Learn More from us

Menu
  • HOW TO
  • Firestick
  • Chromecast
  • PC Apps
  • Lg Smart TV
  • IPTV Services
  • Automation Testing
  • Smart TV
  • Software Testing Tools
  • Contact Us
Menu

QTP Frameworks – Test Automation Frameworks – Keyword Driven and Linear Framework Examples – QTP Tutorial #17

Posted on September 17, 2023

Best Iptv Service Provider 2023 With 40k+ Channels And 100k+ VOD . 24/7 Suppport . Paypal Supported

=> Click Here For The QTP Training Tutorials Series

Best Iptv Service Provider 2023 With 40k+ Channels And 150k+ VOD . Hurry Up

What is Test Automation Framework and what’s QTP Framework?

Recommended IPTV Service Providers

  1. IPTVGREAT – Rating 4.8/5 ( 600+ Reviews )
  2. IPTVRESALE – Rating 5/5 ( 200+ Reviews )
  3. IPTVGANG – Rating 4.7/5 ( 1200+ Reviews )
  4. IPTVUNLOCK – Rating 5/5 ( 65 Reviews )
  5. IPTVFOLLOW -Rating 5/5 ( 48 Reviews )
  6. IPTVTOPS – Rating 5/5 ( 43 Reviews )

 

In the context of a profitable implementation of QTP for a software program testing challenge we frequently come throughout the idea of frameworks. The framework is nothing however an strategy that we persistently comply with through the automation course of – a set of tips.

Test Automation Frameworks

What You Will Learn:

  • Test Automation Frameworks
    • Types of Automation Frameworks (Applies for QTP Framework)
    • Linear Framework
    • Keyword-Driven Framework

Test Automation Frameworks

Personally, I don’t like to offer names and say that one works higher than the opposite. The number of a sure framework will not be the start of a challenge. It is the reverse that’s true. In the method of devising a testing technique, you construct the foundations which can be relevant to the tester’s present scenario, and that proper there’s your framework.

Having mentioned that, the next are a number of the necessary factors we have to contemplate:

  1. Reusability
  2. Script’s simple upkeep
  3. Readability of scripts
  4. Good workable folder construction for all of the take a look at belongings.
  5. No arduous coding values
  6. No cascade of failures (i.e. if one take a look at fails, it shouldn’t trigger failure or stopping of others).

This is a fundamental record and extra could be added based mostly on the requirement.

Any testing technique that tries to include some or all the above factors is a part of your Test Automation Framework.

There are numerous names and varieties of frameworks.  Given under is the record of frameworks based on me.

Types of Automation Frameworks (Applies for QTP Framework)

types of automation frameworks

  • Linear: The easiest type of making a take a look at. Just write one single program with out modularity in sequential steps
  • Keyword-driven: Create completely different key phrases for a unique set of operations and in the primary script we will simply refer to those key phrases.
  • Data-driven: To run the identical set of operations on a number of units of knowledge which can be saved in separate information, largely excel sheets.
  • Hybrid: A mix framework that may be partly data-driven and partly keyword-driven.
  • BPT: This simply signifies that packages are damaged down into enterprise elements and are used with one or the opposite of the above varieties of frameworks

Linear Framework

As mentioned, this strategy includes merely writing the code as we document and protecting it going.

For instance, if the operation that you must confirm is the creation of a brand new account in Gmail, then the next would be the steps:

  • Open gmail.com
  • Click on “Create Account”
  • Enter the main points
  • Verify the main points
  • Create an account
 'Open GMail
 SystemUtil.Run “iexplore.exe”, “http://www.gmail.com”
 'Page Sync
 Browser(“Gmail”).Page(“Gmail”).Sync
 ‘Click on create account
 Browser(“Gmail”).Page(“Gmail”).WebLink(“Create Account”).Click
 ‘Enter the main points
 Browser(“Gmail”).Page(“Google Accounts”).WebEdit(“First Name”).Set “Swati”
 Browser(“Gmail”).Page(“Google Accounts”).WebEdit(“Last Name”).Set “take a look at”
 ‘Fill in a number of different particulars
 ‘Submit
 Browser(“Gmail”).Page(“Google Accounts”).WebButton(“Next Step”).click on

Given above is an instance of what a program that makes use of the linear methodology seems like. It is clear at this level as what the benefits and disadvantages of this methodology are.

Advantages:

  • Simplicity: For newbie programmers, this methodology is apt.
  • Time: It doesn’t take a whole lot of time to create the take a look at.
  • Very little planning is required

Disadvantages:

  • No reusability in any respect.
  • If there’s one other script that verifies a sure side of the ‘Google Accounts’ Page then you’ll have to rewrite the code to launch the gmail.com web page too. Hence, numerous repetition.
  • All the info is straight embedded into the code. Hardcoding doesn’t enable the code for use for another set of knowledge.
  • Error-prone and upkeep is tough

While the cons outweigh the professionals, this methodology can be utilized when your goal is strict to perform a job with out validations.

The elements of take a look at belongings in this sort of framework are:

  1. Test script
  2. Object repository (This could be prevented by utilizing descriptive programming if wanted)

Keyword-Driven Framework

How can we make the above linear framework take a look at higher? How can we overcome these cons?

Obviously, we want reusability, modularity, and readability. Trying to include these options and arriving at an optimum answer is nothing however an try at creating a brand new, extra improved framework.

What are the Reusable elements?

  • Launching of Gmail and arriving on the ‘Google Accounts’ web page. This is given as validating this web page means to first get right here. ‘GoTo Google Account” – could be made right into a separate operate that may be known as over and over once more.
  • Enter the main points and validate them – You can additional break this up into constructive and adverse blocks to incorporate extra ranges of modularity.
  • Account creation – Final degree of validation and undertaking the duty at hand.

Once you will have arrived right here, you haven’t solely recognized elements that may be known as over and over once more, however you will have additionally damaged your linear program into modules.

Functions:

So far in our sequence, we’ve got not handled features. Functions are nothing however a bit of code that does sure operations. It accepts enter parameters from this system that calls it and returns worth to it.

As a common follow, all of the reusable items of code are grouped right into a file that comprises all of the reusable features. This file is related to a useful resource to your QTP take a look at.  Typically a operate library could be a file of kind: .vbs, .txt or .qfl

Back to our instance – This is how the operate library file could be:

 Function gotoGoogleAccount()
 'Open Gmail
 SystemUtil.Run “iexplore.exe”, “http://www.gmail.com”
 'Page Sync
 Browser(“Gmail”).Page(“Gmail”).Sync
 ‘Click on create account
 Browser(“Gmail”).Page(“Gmail”).WebLink(“Create Account”).Click
 ‘Enter the main points
 End Function
 Function EnterParticulars()
 Browser(“Gmail”).Page(“Google Accounts”).WebEdit(“First Name”).Set “Swati”
 Browser(“Gmail”).Page(“Google Accounts”).WebEdit(“Last Name”).Set “take a look at”
 ‘Fill in a number of different particulars
 End Function

 Function SubmitToCreate()
 ‘Submit
 Browser(“Gmail”.Page(“Google Accounts”).WebButton(“Next Step”).click on
 End Function

Your Actual script will probably be:

 'Open GMail
 gotoGoogleAccount()
 ‘Enter the main points
 EnterParticulars()
 ‘Submit
 SubmitToCreate()

From the above program, it’s now clear that we’ve got achieved readability, modularity and if in case one other program needs to make use of the login operate, we will certainly reuse it. All you must do is affiliate the operate library with that new take a look at too and you’re good to go.

You may also see that in your script the operate names are functioning as if they’re VBScript’s key phrases and the identify for this framework.

The elements of take a look at belongings in this sort of framework are:

  1. Test scripts
  2. Shared OR
  3. Shared operate library

Now, what else would make this program even higher? If we might make the EnterParticulars() operate to take completely different units of knowledge and create completely different accounts and not be restricted to the info that we hard-coded into this system. That is precisely the following step. Data driving your checks and the strategy the place we do this can be a data-driven framework.

We will talk about Data-driven and Hybrid frameworks intimately within the upcoming tutorial.

=> Visit Here For The QTP Training Tutorials Series

If you will have any QTP framework-related points that aren’t coated in these articles, do tell us and we’ll most undoubtedly attempt to reply your questions.

Related

Best Iptv Service Provider 2023 With 40k+ Channels And 150k+ VOD . Hurry Up

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • 20+ Best IPTV Service Providers In 2023 [For Your Android TV, FireStick Or PC]
  • IPTV List: Best iptv lista 2023
  • IPTV Premium: Best Premium IPTV Service Provider List And Benefits
  • Nikon IPTV Review: Over 10,000 Live Channels for $12/Month
  • Iptvwings. Com Review: +18000 Live IPTV Channels ,+70000 Movies, +40000 TV show For $15/1 month

Recent Comments

  1. How to Install and Watch NFL Game Pass on Roku? - Iptv Assist on How to Install and Watch NFL Game Pass on PS5 in 2023?
  2. How to Find Maximum Valid Defects in Any Application? - Iptv Assist on Why Does Software Have Bugs?
  3. How to Get and Watch NFL Game Pass on Samsung smart TV? - Iptv Assist on How to Install and Watch NFL Game Pass on PS5 in 2023?
  4. Chromecast Steam | How to cast Steam Games to TV? [Updated 2023] - Iptv Assist on How to Install & Watch ESPN+ on LG Smart TV? [Updated November 2023]
  5. How to Root Chromecast? [Simple Steps] - Iptv Assist on How to Copy Text from Image on iOS 15?

Archives

  • September 2023

Categories

  • Activate
  • Agile Testing
  • Alternatives
  • Android
  • APK
  • Apple TV
  • Automation Testing
  • Basics of Software Testing
  • Best Apps
  • Breakfast Hours
  • Bug Defect tracking
  • Career in Software Testing
  • Chromebook
  • Chromecast
  • Cross Platform
  • Database Testing
  • Delete Account
  • Discord
  • Error Code
  • Firestick
  • Gaming
  • General
  • Google TV
  • Hisense Smart TV
  • HOW TO
  • Interview Questions
  • iPhone
  • IPTV
  • IPTV Apps
  • Iptv Service SP
  • IPTV Services
  • JVC Smart TV
  • Kodi
  • Lg Smart TV
  • Manual Testing
  • MI TV
  • Mobile Testing
  • Mod APK
  • newestiptv.com
  • News
  • Nintendo Switch
  • Panasonic Smart TV
  • PC Apps
  • Performance Testing
  • Philips Smart TV
  • PS4
  • PS5
  • Python
  • QA Certifications
  • QA Leadership
  • QA Team Skills
  • Quality Assurance
  • Reddit
  • Reviews
  • Roku
  • Samsung Smart TV
  • Screenshot
  • Selenium Tutorials
  • Sharp Smart TV
  • Skyworth Smart TV
  • Smart TV
  • Soft Skills For Testers
  • Software Testing Templates
  • Software Testing Tools
  • Software Testing Training
  • Sony Smart TV
  • Sports
  • Streaming Apps
  • Streaming Devices
  • Tech News
  • Test Management Tools
  • Test Strategy
  • Testing Best Practices
  • Testing Concepts
  • Testing Methodologies
  • Testing News
  • Testing Skill Improvement
  • Testing Tips and Resources
  • Toshiba Smart TV
  • Tutorials
  • Twitch
  • Types of Testing
  • Uncategorized
  • Vizio Smart TV
  • VPN
  • Web Testing
  • What is
  • Xbox
©2023 Iptv Assist | Design: Newspaperly WordPress Theme