I am attempting to utilize the Robot Framework Test Template function and have been experiencing a little difficulty.
My current Test consist of opening 5 different websites (declared as variables)
Here is my code:
*** Settings ***
Library Selenium2Library
Library OperatingSystem
Library String
Library Collections
Test Template Open URL
*** Variables ***
${URL1} http://montrealgazette.com/
${URL2} https://www.usatoday.com/
${URL3} http://www.foxnews.com/
${URL4} http://www.cnn.com/
${URL5} https://ca.reuters.com/
*** Test Cases ***
Validate Availability
${URL1}
${URL2}
${URL3}
${URL4}
${URL5}
*** Keywords ***
Open URL
[Arguments] ${URL}
Open Browser $[URL] Chrome
When I run this code, 5 separate blank browser windows are opened.If there is a better way to do this, please let me know. Thanks in advance for the help!