What is the meaning of test runner? Protractor is a test runner. What is the meaning of test runner in layman terms?

  • 1
    It is as simple as it name suggest, running test using what test framework/tool you have selected(Protractor, Selenium or etc). General idea is, when you create your test scripts and compile it, these tool will execute these test and writes results based on your setup.
    – ky-chan
    Jul 13 '20 at 6:34
  • Thank you very much Jul 13 '20 at 10:54

For starters, it's interesting to understand the difference between a framework and a library:

In a nutshell, a library is a piece of code that your application code calls: Here you are calling the Selenium library functions: WebDriver().get("duckduckgo.com");

On the other hand, a framework is a code that calls your application code:

fun myTest():

In the example above, the code you wrote will be called by a framework, e.g. JUnit. The Callback Pattern is a perfect example of this.

So, test runners are applications that will run your tests that are organized in a certain way:

  • Annotated with @Test;
  • Inside files the end with test.js
  • etc...

They are frameworks. Their workflow is what determines what will happen, they have execution control.

Protractor, Selenium, and alike (mostly) are libraries. Your application code will call them. Your code workflow is what determines what will happen, you have execution control.

  • Thank you very much Jul 13 '20 at 11:34
  • You are welcome Ramya. If you found the answer satisfactory, could you mark it as Accepted? It really motivate contributors. Jul 13 '20 at 12:06
  • How to mark as accepted? Very sorry to have asked this question. I am very new to this. Jul 17 '20 at 9:54
  • If you are log in the site, there is a check sign besides up and down arrows on the left of the answer text. You can click on it. Jul 20 '20 at 5:01

Not the answer you're looking for? Browse other questions tagged or ask your own question.