Tech Talkers
726 subscribers
2 photos
732 links
Welcome to the Techlistic.com channel!

This channel is created for tech website - www.techlistic.com

Youtube - https://youtube.com/@techtalkers-n6s?si=FEWPPINSAbG67hHl
Download Telegram
Someone asked me about framework design :

My Answer might help anyone here- Mostly frameworks share same structure, they normally have:

BaseClass - Declare setup and teardown method here. And also initialize appium instance here.

ParametersFile - Declare all your global framework variables here like Url, username, pwd etc.

Locator class - keep your locators here or you can also create multiple locator classes like one class for one screen of your app.

Page classes - All the appium/Selenium code functions will be written here like for login, click on something etc. Again one class for one screen and related functions in that class.

Utils - if you are reading test data from excel or some file, keep that code here. Call this code wherever required.

Tests - All your test classes will be here. One Test Class for one functionality. Like for Dashboard screen DashboardTest class. And call the page functions here in your test functions by creating object of page classes. Like.,

DashPage objDash = new DashPage();
objDash.enterSomeValue();

And also extend/inherit BaseClass in your test classes. So, that setup and teardown are called by default.

Use TestNG as unittest framework. Refer Techlistic.com’s Testng tutorial

This is a high level interpretation of an automation framework.

Hope it helps! 👍🏻
If you want to interact with other Selenium Professionals, want to ask your doubts, want to give suggestion for techlistic.com or simply want to connect with me, then join following group-

t.me/SeleniumDiscussions
Channel name was changed to «Techlistic: Selenium & Java»
Find complete series of tutorials on Selenium, Java, TestNG, latest automation trends, Interview preparation, demo websites for practice and many more at -

https://www.techlistic.com
Tech Talkers pinned «Find complete series of tutorials on Selenium, Java, TestNG, latest automation trends, Interview preparation, demo websites for practice and many more at - https://www.techlistic.com»