Skip to content
Vandeputte Brice edited this page Oct 30, 2018 · 8 revisions

Welcome to the geokrety-website-qa wiki!

Good Practices

  • put HTML components locator into functions/ComponentsLocator.robot
  • put each page related functions into functions/PageMYPAGE.robot
  • put common functions into functions/FunctionsGlobal.robot

Tips

Components locator > determine XPath

In order to get an HTML component XPath in a second, do the following:

  • open the page in google chrome browser
  • right click the element > Inspect
  • right clic on the element code > Copy > Copy XPath

If XPath is just an id, locator could be defined as id=myidentifier, else locator start with xpath=.

Example:

  ${TXT_RUCHY_TIME_MINUTE}     id=minuta
  ${BTN_RUCHY_TIME_NOW}        xpath=//*[@id="prawo"]/form/div[6]/div[3]/div/button

IntelliJ Community Edition

Add following plugins (File Settings/Plugins):

  • IntelliBot
  • Robot Plugin (sometime buggy..)
  • Python Community Edition

Define Python SDK :

  • right click on project / Module settings / Platform Settings / SDK's / + Python SDK

Limitations:

  • seems without ultimate edition, robot framework plugin is unable to detect Selenium based primitive. But able to detect user function.

Run tests

If you have git bash installed:

  • create a `Bash configuration' with following attributes:
  Name: test win
  Script: scripts/runTests.sh
  Interpreter path: C:\Programmes\Git\bin\bash.exe
  Working directory: C:\MyWORK\geokrety-website-qa
Clone this wiki locally