Confused between Runner and Test

  • 5 Replies
  • 419 Views
Confused between Runner and Test
« on: August 01, 2018, 18:52:45 pm »
I have found three different modules in your git 1) Addons 2) Runner 3) Test
I have read your docs. but I have doubt between Runner and test.
where should I implement my test logic?
what's the purpose of runner?
shoudl I need to create seperate project for runner or seperate package?

Re: Confused between Runner and Test
« Reply #1 on: August 01, 2018, 19:14:13 pm »
Hello,

Your logic should be implemented in Test or Addons modules.
Runner module is required only in order to debug your code locally and should not have any real logic.
It's a good practice to place runner in a separate module/project since it should not be packaged into the JAR that is uploaded to TestProject.

Hope it helps.

Re: Confused between Runner and Test
« Reply #2 on: August 01, 2018, 19:19:56 pm »
ok understand. so that means runner is only for debugging.

next query is that. should I mention development token into runner module or test?

because without developement token it will not be connect to testproject and not logged in testproject right?

Re: Confused between Runner and Test
« Reply #3 on: August 01, 2018, 20:03:39 pm »
Development token is used only for local development using Runner and should be provided there.
Runner project should not be package nor uploaded to TestProject in order to execute your test via the platform.

Re: Confused between Runner and Test
« Reply #4 on: August 01, 2018, 20:13:26 pm »
Ok great! Understand.

Next question:

When I will get log? after upload the complete project on testproject and after run? or when I will debug my runner module?

Re: Confused between Runner and Test
« Reply #5 on: August 01, 2018, 20:46:02 pm »
When you debug your Test using Runner you will see logs in the console of your IDE.
It is the same as running a test with Selenium, just that the runnable method is a class.

 

Sitemap 1 2 3 4 5 6 7 8