Skip to content

How to write UI Test using codeless

saickorpu edited this page Jan 3, 2019 · 22 revisions

1.Creating UI Test Suite

  • Setup a root folder named suites in codeless skeleton
  • This is the root folder to contain any codeless skeleton framework .xlsx test suite files (API, UI or a hybrid), including new ones you would write yourself. ExampleTestSuiteFilePath: project_directory/codeless_skeleton/suites/demo_ui.xlsx.
  • Create a new .xlsx file in codeless skeleton
    ExampleFileName: "demo_ui.xlsx".

1.1 Setting up UI config sheet

  • Create a config sheet in the .xlsx file that was created in the step 1 and sheet name should start with "c-" . Example UI config sheet name : **"c-demo"**.
key value comments
platform-type chrome Web driver platform type. Valid values are chrome, firefox, ie or emulator. Please note that ie is ONLY a valid option if running from a Windows OS.
webdriver.runlocal TRUE Runs the webdriver on the local machine if TRUE, if FALSE runs on the remotw webdriver.
webdriver.path.chrome web_drivers/windows/chromedriver.exe Path to the chrome webdriver to use for this machine. Installed under codeless skeleton <INSTALL_DIR>/lib/webdrivers// by default. For Windows: lib/web_drivers/windows/chromedriver.exe For Mac: lib/web_drivers/mac/chromedriver.exe
webdriver.platform.chrome Windows Platform type for remote web driver intializing.
webdriver.version.chrome 61.0 Version for platform type selected.
webdriver.path.firefox web_drivers/windows/geckodriver.exe Path to the gecko webdriver to use for this machine. Installed under codeless skeleton <INSTALL_DIR>/lib/webdrivers// by default. For Windows: lib/web_drivers/windows/geckodriver.exe For Mac: lib/web_drivers/mac/geckodriver.exe
webdriver.platform.chrome Windows Platform type for remote web driver intializing.
webdriver.version.chrome 60 Version for platform type selected.
webdriver.path.ie web_drivers/windows/IEDriverServer.exe Path to the IE webdriver to use for this machine. Installed under codeless skeleton <INSTALL_DIR>/lib/webdrivers// by default. For Windows only: lib/web_drivers/windows/IEDriverServer.exe no other valid settings.
webdriver.platform.ie Windows Platform type for remote web driver intializing.
webdriver.version.ie 11 Version for platform type selected.
webdriver.hub remote webdriver url Ex: Sauce url to run it on Sauce labs

1.2 Writing a sample UI TestCase:

  • Create a new sheet in the same suite file that was created in step 1