Unable to run template test and normal test in the same test suite

*** Settings ***

Library SeleniumLibrary
Library DataDriver …/Resources/Testdata.xlsx sheet_name=${SheetName}

*** Test cases***

Normal test case 1

Template test case 2

[Template]  Login

Keywords

Login

When I run this, it always skip either the template test case or normal test case based on the order. Cannot execute both in the same robot file. Can someone please help?

I suspect that this is because you are using DataDriver, which is used to generate test cases.
You probably would get better results if you separate tests by suites, using DataDriver and not.

1 Like

Hi,
I’m totally new to Robot framework. I have similar situation, where a test suite has both templated(Data driver) test and normal test.

For ex.: I have the following scenarios
Test Suite #1

  1. Test #1 with template(Data Driver)
  2. Test #2 without template
  3. Test #3 without template

Test Suite #2

  1. Test #1 without template
  2. Test #2 without template
  3. Test #3 with template(Data Driver)

Can you provide any suggestions on how to approach this scenario. Thanks