how to write a Templated/Normal test in a single file using datadriver in robot framework

446 Views Asked by At

I am trying to write a data-driver test case using datadriver[xls] library in robot framework. I have 2 tests wherein 1 is templated and the other is the plain normal test. Bu when I execute the tests, only 1 tests executes, while the other test gets skipped,

*** Settings ***
Library  DataDriver  ../<path>/data.xlsx  sheet_name=sheet1
    
*** Test Cases ***
Verify default data
    [Template]  NONE
    
Verify Data from the sheet
    [Template]  Get data
    
      
*** Keywords ***
Get data

When i execute the test only 1 test gets execute and throws error 'Test contains no keyword' for the templated test case.

0

There are 0 best solutions below