Getting Test Cannot be empty issue while running robot tests

437 views
Skip to first unread message

Albert A

unread,
Dec 19, 2023, 10:45:24 PM12/19/23
to robotframework-users
Hi Team, 
I am trying to run a robot test and getting Test cannot be empty error.
Any help here!!

DataSheet.csv contains basic variables and values like - >browser and platform

Below is the code:
*** Settings ***
Library         SeleniumLibrary
Resource        ../Resources/xxx.robot
Resource        ../Resources/xxx.robot
Library         DataDriver   ../Testdata/DataSheet_xxx.csv
Library         DataDriver    optimize_pabot=Binary

Test Template    Create Data Automation flow
Test Teardown    Close Browser
#Test Teardown    Stop Execution Recording
#Test Teardown    Terminate All Processes

*** Variables ***
${webSync}      15

*** Test Cases ***
# Datadriven test for with different data combo,
 Create Data Automation flow  using ${browser}



*** Keywords ***
Create Data Automation flow
   [Arguments]   ${browser}  ${PlatformName}  ${remoteHUBURL}  ${Pageurl}
   Open Application Browser    ${browser}   ${PlatformName}  ${remoteHUBURL} ${Pageurl}   

Hélio Guilherme

unread,
Dec 20, 2023, 5:08:09 AM12/20/23
to robotframework-users
Your test does not have a step!

Your test is named:

Create Data Automation flow  using ${browser}

Which is very similar to the keyword you defined.
I would also remove the # comment and move it to below the test name, but to fix your test you must add a step.

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/robotframework-users/eb70e8e8-bc9e-409c-b182-176538152e34n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages