Selenium Frameworks | Data-Driven | PART -1 | Why do we need Data-driven Framework | Introduction

Writing code to test functionality is a great thing but writing the code effectively to accomplish the function is even greater. Our code should perform the desired operation in less number of lines. Rewriting the code, again and again, is not the best practice and that will make our project unmanageable. Our code should be reusable, manageable, scalable, cost-effective and so on. This is where frameworks come into the picture.
#Selenium #Frameworks #DataDriven #Java #LearnAutomationOnline
The application under test: bit.ly/2QiBwQw
What will we learn in this Video:
---------------------------------------------------
1. Creating a sample project for a login operation
2. Why our code is not a better one?
3. What should we employ to make our code better?
4. What is a framework?
5. What is a data-driven framework?
Best way to reach me (replies will be faster): KZread comment section
Also, you can follow me on Facebook and Instagram.
Facebook: bit.ly/2TqPlis
Instagram: bit.ly/2Ez36rH

Пікірлер: 118

  • @herrlich9230
    @herrlich92304 жыл бұрын

    Don't know how to thank you bro..u r just awesome..I thought I can't learn this easily but thank God I found you

  • @LearnAutomationOnline

    @LearnAutomationOnline

    4 жыл бұрын

    Glad it's useful for you. 😊 Share with your friends and colleagues.

  • @shilpavarma2168
    @shilpavarma21684 жыл бұрын

    Wow... Nice teaching.... Easy to understand.. Thank you.. For your effort and hardwork.

  • @gayathrigopal9632
    @gayathrigopal96323 жыл бұрын

    Ji thx a lot... I'm undergoing selenium class but u r very very clear. I'm refering ur video daily thx u so much.. pls dont stop this gud work.

  • @mehanethram3587
    @mehanethram3587 Жыл бұрын

    Hi Sir. You are presenting. Every vedio perfectly a ckear understanding.. I thought Software testing is easy but when I faced few complications I felt that I choosed a career which is very difficult for me. so decided to change the profession but I really say sir its because of your teachings in the subject which gave me clear understanding and perfect knowledge on time. Thank you very much sir God bless you

  • @vanajabobby8353
    @vanajabobby8353 Жыл бұрын

    Easily understanding your teaching techniques sir thank you so much

  • @GauwthamMurugesan
    @GauwthamMurugesan Жыл бұрын

    Bro, Thanks a lot for making me understand the things which I though would be much difficult...

  • @100sridhar
    @100sridhar6 ай бұрын

    Crystal clear explanation and is easily understandable

  • @86satz
    @86satz3 жыл бұрын

    Hi, Thank you so much for your effort in teaching Selenium for manual testers like me. Can you please upload videos for Keyword driven and Hybrid Driven framework also.

  • @LearnAutomationOnline

    @LearnAutomationOnline

    3 жыл бұрын

    Sure

  • @muthukumaran4267
    @muthukumaran42673 жыл бұрын

    Pakka bro.. Today I'm going to watch this series fully.. Advance thank you bro..

  • @LearnAutomationOnline

    @LearnAutomationOnline

    3 жыл бұрын

    Welcome. Learn well and keep learning

  • @saisangeetha123
    @saisangeetha1234 жыл бұрын

    Thank you sir.. crystal clear explanation. Appreciate your work.

  • @LearnAutomationOnline

    @LearnAutomationOnline

    4 жыл бұрын

    Glad u liked it

  • @saisangeetha123

    @saisangeetha123

    4 жыл бұрын

    @@LearnAutomationOnline thank you sir

  • @manojkumar-xy5vn
    @manojkumar-xy5vn2 жыл бұрын

    Vera Level bro

  • @thirupathythiru3883
    @thirupathythiru38832 жыл бұрын

    Very well explained bro 🎉

  • @rajkumarm25
    @rajkumarm253 жыл бұрын

    Video is super

  • @kowsalyaselvaraj6007
    @kowsalyaselvaraj6007 Жыл бұрын

    Good Introduction Sir..

  • @kavipriyarajapandi2241
    @kavipriyarajapandi22413 жыл бұрын

    Hi anna , Could you pls give us idea about types of frame works ?

  • @zahirhussain1669
    @zahirhussain16692 жыл бұрын

    Thanks

  • @awesomejesustamilguitartutoria
    @awesomejesustamilguitartutoria2 жыл бұрын

    Hello Sir , I am christo , Hope you are doing well , I am following your videos regularly , You are simply awesome and i have one doubt regarding frameworks , Could you please tell me the total number of frameworks in selenium ??? , So far i know Data driven , POM , Cucumber , MAVEN ... Correct me If i am wrong .. Thanks in advance .

  • @ln2752
    @ln27523 жыл бұрын

    bro.. super thanks for your videos

  • @LearnAutomationOnline

    @LearnAutomationOnline

    3 жыл бұрын

    U r welcome

  • @arunkumaarr2949
    @arunkumaarr2949 Жыл бұрын

    When I put mouse on xml class path it is not showing as a link can you explain why?

  • @pratheepkumar4218
    @pratheepkumar42184 жыл бұрын

    Hi , while automate the positive and negative scenario, i am getting an error. the error is if invalid popup is not displayed it should goes to " else" part. but its not . and Time is taking too much seconds to run. whats the issue. package com.tg.Testcases; import java.awt.AWTException; import java.io.IOException; import java.util.IllegalFormatException; import java.util.concurrent.TimeUnit; import org.apache.http.impl.conn.LoggingSessionInputBuffer; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.support.PageFactory; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; import org.testng.Assert; import org.testng.annotations.*; import com.tg.Pages.LoginPage; import com.utility.ConfigReader; import io.qameta.allure.Description; import io.qameta.allure.Severity; import io.qameta.allure.SeverityLevel; import io.qameta.allure.Story; public class LoginValidation { public static WebDriver driver; ConfigReader config; LoginPage login; ListofRoleSelection roleSelection; @BeforeMethod @Severity(SeverityLevel.BLOCKER) @Description("Test Case Description: Verify Base Setup") @Story("Story Name: To check Base Setup File Configuration") public void setUp1() throws IOException, InterruptedException { config = new ConfigReader(); System.setProperty("webdriver.chrome.driver", config.getChromePath()); driver = new ChromeDriver(); driver.manage().timeouts().pageLoadTimeout(50, TimeUnit.SECONDS); driver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS); driver.manage().window().maximize(); driver.get(config.getUrl()); String actualUrl = config.getUrl().trim(); String expectedUrl = driver.getCurrentUrl(); System.out.println("The Expected URL is : " + " " + expectedUrl + "... And... " + "The Actual URL is : " + " " + actualUrl); Assert.assertEquals(expectedUrl, actualUrl); } @DataProvider(name = "getDataFromExternalFile") @Severity(SeverityLevel.BLOCKER) @Description("Test Case Description: Verify getting UserName and Password from Excel Sheet ") @Story("Story Name: To check Excel Sheet Configuration") public static Object[][] getExcelData() throws IllegalFormatException, IOException, InterruptedException { ReadLoginCredentials getLoginData = new ReadLoginCredentials(); return getLoginData.readXLSFile("C:\\Users\\Pradeep\\Documents\\New_Excel.xlsx", "Sheet2"); } @Test(priority = 1, dataProvider = "getDataFromExternalFile") @Severity(SeverityLevel.BLOCKER) @Description("Test Case Description: Verify getting UserName and Password from Excel Sheet is Inserted or Not ") @Story("Story Name: To check User able to Login Successfully") public void verifyValidLogin(String UserEmailId, String userPassword) throws IOException, InterruptedException, AWTException { login = PageFactory.initElements(driver, LoginPage.class); login.enterEmailData(UserEmailId); login.enterPasswordData(userPassword); System.out.println("---->" + UserEmailId); System.out.println("---->" + userPassword); login.loginButton(); Thread.sleep(1000); System.out.println("---->" + UserEmailId); System.out.println("---->" + userPassword); boolean loginPageErrorModal = login.invalidUserNamePasswordModalAlert().isEnabled(); System.out.println("loginPageErrorModal"+loginPageErrorModal); if (loginPageErrorModal == true) { System.out.println("~~~~~~Invalid Credential~~~~~~"); String InvalidLogin = login.invalidUserNamePasswordErrorMessage().getText(); if (InvalidLogin.contains("Invalid Username/Password")) { System.out.println("Login Error Message is :" + " " + InvalidLogin); login.invalidUserNamePasswordOKButton().click();; } } else { System.out.println("~~~~~~Login Successfully~~~~~~"); logOut(); } } @Test(priority = 2, enabled = false, description = "LogOut the Page") @Severity(SeverityLevel.NORMAL) @Description("To Verify the Logout Scenario : LogOut the tgWebApplication ") public void logOut() throws InterruptedException { @SuppressWarnings("deprecation") WebDriverWait wait = new WebDriverWait(driver, 7); wait.until(ExpectedConditions.elementToBeClickable(login.selectMenu())).click(); System.out.println("->>> Select the Menu Bar Logout the Page Successfully

  • @kavipriyarajapandi2241
    @kavipriyarajapandi22413 жыл бұрын

    Rocking anna

  • @bharat5066
    @bharat50663 жыл бұрын

    Nice very elaborate do you have the video for Data driven using excel if have please provide link.Thanks

  • @selvarathi2075
    @selvarathi20753 жыл бұрын

    Please upload videos for keyword driven and hybrid framework

  • @SantoshKumar-dy3pr
    @SantoshKumar-dy3pr4 жыл бұрын

    sir Testng jar ah vechchi panna mudiyuma

  • @blackman-zi2fg
    @blackman-zi2fg Жыл бұрын

    Brother xml . File class path error nu show aguthu but crt ha than panniruke

  • @anthonygnanaprakasam6426
    @anthonygnanaprakasam6426 Жыл бұрын

    data driven la main method Illa ma run panna mudiyala bro, refer agavum matenguthu eclipse la enna reason bro

  • @alwinj4229
    @alwinj42292 жыл бұрын

    bro ippo namme oru project le work pannrom apdina Majority.POM framework dhan use panuvange nu solitinge appo data driven framework nenge work panne example mari oru scenario varidhu na epdi bro appo namme data driven framework ku use pannuvoma ille pom le ye andhe two input ku 2^2 four ways um test cases aaa run pannuvoma please reply.....

  • @LearnAutomationOnline

    @LearnAutomationOnline

    2 жыл бұрын

    You will have two different sets. If your application is data sensitive, then you will test only the data sensitive module with data driven framework, when it comes to end to end, you will use page object model. When u test end to end, you will not extensively test with different set of data

  • @suryav01
    @suryav01 Жыл бұрын

    Hello sir i can't find XML in eclipse how to resolve that ?

  • @rajkumarm25
    @rajkumarm253 жыл бұрын

    Please use bonegarcia dependency for browser manager.

  • @sakthi4296
    @sakthi42964 жыл бұрын

    The annotation @ Test is disallowed for this location, Library is also not showing. how to fix it, please help.

  • @pratheepkumar4218

    @pratheepkumar4218

    4 жыл бұрын

    im also facing the same issue in Testng .

  • @DINESH9786285
    @DINESH97862853 жыл бұрын

    Bro..Maven use panni Base class create pandradhu video pannugea and dependancy sila version yeduthukkea maatingaudhu

  • @sundaravadhanisekar617
    @sundaravadhanisekar6172 жыл бұрын

    sir pls put videos for hybrid framework

  • @prabhakaranprabha8847
    @prabhakaranprabha8847 Жыл бұрын

    Your videos are awesome. this tutorial about data driven framework. Alternatively, Can we pass the data using @parameters...

  • @LearnAutomationOnline

    @LearnAutomationOnline

    Жыл бұрын

    You can but for large volume, that’s no my ideal

  • @arunuvan
    @arunuvan3 жыл бұрын

    Hi sir vedio was Crystal clear...thank you...I need j unit vedio's....I searched hear....but ur was not thr

  • @LearnAutomationOnline

    @LearnAutomationOnline

    3 жыл бұрын

    I haven't posted ant videos on junit

  • @sridevirajkumar6051
    @sridevirajkumar60514 жыл бұрын

    Hi arul I don't have experience in selenium. I have been learning lately. But in interviews they expect me to have selenium project experience. So if they ask what framework Yu use in your project..should I say pom alone? Or data driven?

  • @LearnAutomationOnline

    @LearnAutomationOnline

    4 жыл бұрын

    Say both. Practice everything and put in GitHub. The more you do hands-on you will be able to answer them in a better manner.

  • @sindran126
    @sindran1263 жыл бұрын

    Oru functionality achieve Panna naalu testCase use panradhu best parctice ila nu sonninga(only different data usage but functionality same na itha dhan panni aganum) sollitu apram kadaisila indha concept dhan DATA DRIVEN nu convey pandringa (@24:15 to 24:40). Appo data driven best practice ilanu solringala?

  • @LearnAutomationOnline

    @LearnAutomationOnline

    3 жыл бұрын

    One function for 4 set of data is the best practice, four functions for four set of data is not. Ithu than convey paniruken. Listen once again if needed.

  • @ambikasenthil6101
    @ambikasenthil61015 жыл бұрын

    Can we use 2 diff framework in one project? like Data - driven and Page object Model...

  • @LearnAutomationOnline

    @LearnAutomationOnline

    5 жыл бұрын

    That depends. Say for example, paid software are available in the market. For them, validation with the valid key for activation of the product will be a test case. And there are so many crack keys available on internet. So in this case, they have to test that particular module with lots of valid and invalid data. So we have to employ data driven for this and page object for rest of the application. That's a business requirement and the nature of the application.

  • @arpdcast5881
    @arpdcast5881 Жыл бұрын

    This sample website is not working, anyother sites for practice please

  • @LearnAutomationOnline

    @LearnAutomationOnline

    Жыл бұрын

    Use php travels

  • @niyaram7578
    @niyaram75782 жыл бұрын

    Hi Prasath, I am following your videos from the scratch.AM not getting link for the class file. I checked Packagename and classname all correct still am not getting. i click the mouse and ctrl.

  • @LearnAutomationOnline

    @LearnAutomationOnline

    2 жыл бұрын

    Some versions of eclipse has this issue. It's not a problem as long as it's getting executed

  • @seenukaniappan8882
    @seenukaniappan88823 жыл бұрын

    For Login Validation Use ""thedemosite.co.uk/login.php"" if you are facing any issue with ORANGE-HRM.

  • @kalaiselvikiot3395
    @kalaiselvikiot33953 жыл бұрын

    Hi sir, I have one doubt on TestNG. I have 2 xml files in one project. for first xml file it shows run as TestNG suit but for second it not showed . I have TestNG library also. if any globally add for TestNG sir? Please clarify that

  • @LearnAutomationOnline

    @LearnAutomationOnline

    3 жыл бұрын

    Are there any differences in these two xmls. I mean, the second one you are saying, does it have proper testng suite structure?

  • @kalaiselvikiot3395

    @kalaiselvikiot3395

    3 жыл бұрын

    @@LearnAutomationOnline yes sir it has proper suite structure, can I share my xml code?

  • @banupriya6278

    @banupriya6278

    Жыл бұрын

    @@LearnAutomationOnline Hello sir.. 2 differenct projects on one project xml file shows run as testng suite.. another xml file s not showing run as testng suite.. kindly help to resolve this

  • @naganandhini4343
    @naganandhini43433 жыл бұрын

    hi sir, I did not get the link on XML page, but it's working only. I've given correct package.Classname. kindly help

  • @LearnAutomationOnline

    @LearnAutomationOnline

    3 жыл бұрын

    If its working that's not an issue . Most recent eclipse versions are not giving that link style highlighting

  • @naganandhini4343

    @naganandhini4343

    3 жыл бұрын

    @@LearnAutomationOnline then ok sir thank you, ur teaching is awesome sir..very easy to learn, I'm new to selenium, but I learnt everything. God bless you sir🙏

  • @Paapathikids
    @Paapathikids5 жыл бұрын

    @arulprasath in Orange hrm demo site username and password are not working bro how to solve it it shows Invalid credentials

  • @LearnAutomationOnline

    @LearnAutomationOnline

    5 жыл бұрын

    Are you copying the password and username from that site itself? In that case, while copying you may have blank spaces. Kindly type once and check.

  • @Paapathikids

    @Paapathikids

    5 жыл бұрын

    @@LearnAutomationOnline no i didnt copy i just typed if possible u to try opensource-demo.orangehrmlive.com

  • @LearnAutomationOnline

    @LearnAutomationOnline

    5 жыл бұрын

    Yes. There's some problem with that site itseems. You can try PHP travels or some other apps over internet.

  • @Paapathikids

    @Paapathikids

    5 жыл бұрын

    Its working now @arulprasath thanks for quick response

  • @arundex5045
    @arundex50454 жыл бұрын

    WebDriver driver= new ChromeDriver(); in this line I got error Multiple markers at this line - Type mismatch: cannot convert from ChromeDriver to WebDriver - Cannot instantiate the type ChromeDriver

  • @LearnAutomationOnline

    @LearnAutomationOnline

    4 жыл бұрын

    Check the import statement, do you have the webdriver and chrome driver imported?

  • @arundex5045

    @arundex5045

    4 жыл бұрын

    @@LearnAutomationOnline yes it is imported but it's shows x symbol

  • @arundex5045

    @arundex5045

    4 жыл бұрын

    @@LearnAutomationOnline Now its working. thank u sir

  • @tharakchaitanyareddy7552
    @tharakchaitanyareddy75523 жыл бұрын

    After running xml and doing refresh, im not able see index.html like all things in test output

  • @LearnAutomationOnline

    @LearnAutomationOnline

    3 жыл бұрын

    were u able to run successfully? is it running as expected?

  • @tharakchaitanyareddy7552

    @tharakchaitanyareddy7552

    3 жыл бұрын

    @@LearnAutomationOnline Everything went good and got output, in test-output folder i got 2 folders named as defaultsuite and loginsuite along with those emailable report.html and testng-failed.xml appeared

  • @thechennaicook8961
    @thechennaicook89615 жыл бұрын

    May i know if there are tutorials for Git, continuos integration jenkins please?

  • @LearnAutomationOnline

    @LearnAutomationOnline

    5 жыл бұрын

    As of now there is not any. But they are upcoming. You can refer www.learnautomation.online in this blog I have written in a detailed manner.

  • @thechennaicook8961

    @thechennaicook8961

    5 жыл бұрын

    @@LearnAutomationOnline oh thx so much.. Im surprised to get such a speedy response... I really wanna say that your videos are making me learn automation with such interest...keeping up at late nights.... Thx for the motivation. Your videos need to reach more people.👌

  • @LearnAutomationOnline

    @LearnAutomationOnline

    5 жыл бұрын

    Thanks a lot for your kind words. If am awake, I will reply within minutes because my late response should not be a hurdle in the learning of my viewers. Kindly share it with your friends or colleagues to whom it may be useful. 😊

  • @LearnAutomationOnline

    @LearnAutomationOnline

    5 жыл бұрын

    I think you have asked for web API, but before I reply it got deleted. There's an upcoming video on web APIs in general and their testing both manual and automation will be posted very soon.

  • @renukadevi1285
    @renukadevi1285 Жыл бұрын

    Hi bro,How to add XML file,we download separately ,what ever u taught in the video I followed,but it doesn't show XML file in searching wizard

  • @LearnAutomationOnline

    @LearnAutomationOnline

    Жыл бұрын

    U can try adding any xml plugin from eclipse market place

  • @renukadevi1285

    @renukadevi1285

    Жыл бұрын

    Thank you 👍

  • @arunragavan442
    @arunragavan4424 жыл бұрын

    ungalauku ethana vaati thanks sonnalum pattadhu.....

  • @akshayasuresh975
    @akshayasuresh97510 ай бұрын

    thank you for posting this video.sir, want to know why my classname in xml file are not enabled as clickable links.

  • @LearnAutomationOnline

    @LearnAutomationOnline

    10 ай бұрын

    Some eclipse versions may have this problem. As long as it’s working fine, no issues

  • @akshayasuresh975

    @akshayasuresh975

    10 ай бұрын

    thank u for your reply. @@LearnAutomationOnline

  • @salmana35
    @salmana354 жыл бұрын

    Hi bro, how to automate Angular web application using selenium, any video?

  • @LearnAutomationOnline

    @LearnAutomationOnline

    4 жыл бұрын

    Be it angular or anything, no specic stuff needed from selenium side. Just like any other applications you can test. However, if you use protractor you can achieve best results.

  • @salmana35

    @salmana35

    4 жыл бұрын

    @@LearnAutomationOnline Thanks for your reply bro. in future, protractor video upload?

  • @atlankenze9863
    @atlankenze98632 жыл бұрын

    Orae Project la 2 Framework use pannalama bro?

  • @LearnAutomationOnline

    @LearnAutomationOnline

    2 жыл бұрын

    Orae project nu etha mean panringa

  • @Meena-Rajendran
    @Meena-Rajendran5 жыл бұрын

    Xml la Link Madhiri Varamatengudhu sir, So what ican i do for that.

  • @LearnAutomationOnline

    @LearnAutomationOnline

    5 жыл бұрын

    Packagename.classname correct ah kudunga. There is a mistake in that. That's the reason.

  • @meenar7108

    @meenar7108

    5 жыл бұрын

    Kuduthalaum varala sir

  • @LearnAutomationOnline

    @LearnAutomationOnline

    5 жыл бұрын

    Mouse ah press panikite, click pananum. Apdithan panringala? Share your XML file.

  • @meenar7108

    @meenar7108

    5 жыл бұрын

    Telegram group irundha photo anupuren sir,

  • @meenar7108

    @meenar7108

    5 жыл бұрын

    Thank you sir

  • @deenadhayalan1220
    @deenadhayalan12202 жыл бұрын

    Bro API concept pathi video podunga

  • @LearnAutomationOnline

    @LearnAutomationOnline

    2 жыл бұрын

    If you haven't subscribed please subscribe and enable notifications. For the past two months I have been posting videos on APIs.

  • @sheebarani772
    @sheebarani7723 жыл бұрын

    HI Ji .Are you taking any online classess

  • @LearnAutomationOnline

    @LearnAutomationOnline

    3 жыл бұрын

    Hi sheeba rani, no I'm not taking any online classes.

  • @SantoshKumar-dy3pr
    @SantoshKumar-dy3pr4 жыл бұрын

    can we do these things using TestNG jar

  • @LearnAutomationOnline

    @LearnAutomationOnline

    4 жыл бұрын

    No. I have tried that during my initial days. I was unsuccessful. It's better to go with the library

  • @SantoshKumar-dy3pr

    @SantoshKumar-dy3pr

    4 жыл бұрын

    @@LearnAutomationOnline Ok sir

  • @rajeshraje1958
    @rajeshraje1958 Жыл бұрын

    Sir maven la practice pannalama

  • @LearnAutomationOnline

    @LearnAutomationOnline

    Жыл бұрын

    Ipdi keta enna solrathu. If u want yes u can

  • @rajeshraje1958

    @rajeshraje1958

    Жыл бұрын

    @@LearnAutomationOnline neenga maven la junit tta workout panni videos upload panni irukingala ketten,

  • @rajeshraje1958

    @rajeshraje1958

    Жыл бұрын

    Unga videos paathathukku appuram tha hope kidaichi iruku enaku ,base class videos also i need

  • @LearnAutomationOnline

    @LearnAutomationOnline

    Жыл бұрын

    As of now there are no junit videos. I have only maven

  • @rajeshraje1958

    @rajeshraje1958

    Жыл бұрын

    @@LearnAutomationOnline ok bro

  • @ishuishu3149
    @ishuishu31499 ай бұрын

    I thought testNG itself a framework 😮

  • @LearnAutomationOnline

    @LearnAutomationOnline

    9 ай бұрын

    It is . It’s a unit testing framework

  • @SantoshKumar-dy3pr
    @SantoshKumar-dy3pr4 жыл бұрын

    please reply sir

  • @LearnAutomationOnline

    @LearnAutomationOnline

    4 жыл бұрын

    Have replied. Please check

  • @pandithatchinadhanasekar8016
    @pandithatchinadhanasekar80164 жыл бұрын

    Hi bro your vidoes are really super bro,I have doubts in jenkins.kindly share your mail I'd bro

  • @LearnAutomationOnline

    @LearnAutomationOnline

    4 жыл бұрын

    arulprasath36@gmail.com

  • @pandithatchinadhanasekar8016

    @pandithatchinadhanasekar8016

    4 жыл бұрын

    @@LearnAutomationOnline thanks for your prompt response bro

Келесі