Selenium įrankis

M.Gzegozevskis ... 2021-10-01 Testing
  • Selenium
  • Testavimas
About 1 min

# Testavimas su Selenium

Types of Selenium Frameworks

Selenium frameworks based on the functional approach are classified into three main types:

Data-driven framework Keyword driven framework Hybrid framework

Data Driven Framework The data-driven framework is based on the different data sets that are created into an external file (excel sheets) and imported into the automation testing tool. When the number of data sets that the test framework uses as input is on a higher side, it is very difficult to change these values in the script every time to conduct the test.

And thus, these data sets are kept separate from the original script which can fetch the required input each time from the data set excel sheet. This makes it convenient for the tester to modify the script without disturbing the data sets or vice versa, making it much more robust.

Thus, you can easily apply a single test for all the data sets, which is available in the table without the need to modify the code each.

Keyword Driven Framework Keywords that form the basis of the functionality, takes in parameters and throws the relevant output. Often, when the code has to cover a lot of functionality, it might need repetitive writing for some of its sections. And thus, keywords are written to abstract the complexity of the code.

Here the operations or methods that are to be performed are written separately from the actual script in the form of keywords. These keywords which are placed in an external file (Excel sheet), are called using the code. This enables testers to keep each of the functionalities separate. The keywords are available in the table, where you can modify each of them individually without hampering others.

Hybrid Driven Framework Hybrid Driven Framework is a combination of data-driven and keyword-driven frameworks. This framework uses different keywords and data sets, where the list of inputs and the functions are stored in separate files. Similar to the data-driven framework, it also uses the same code for different data sets.

https://www.browserstack.com/guide/best-practices-in-selenium-automation

https://www.browserstack.com/guide/challenges-faced-by-qa

https://www.browserstack.com/selenium

https://www.browserstack.com/guide/how-to-reduce-flaky-selenium-test

https://www.browserstack.com/guide/bug-severity-vs-priority

Last update: September 11, 2021 20:45
Contributors: Marius Gžegoževskis