Skip to content
Vandeputte Brice edited this page Sep 27, 2018 · 8 revisions

Welcome to the geokrety-website-qa wiki!

Good Practices

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

Tips

Components locator > determine XPath

In order to find an HTML element 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
  • for robot framework, if XPath is complex, it must start with "xpath=", else if this is just an id, it could be defined as id=myidentifier

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: tests.win.sh

Interpreter path: C:\Programmes\Git\bin\bash.exe

Working directory: C:\MyWORK\geokrety-website-qa

Clone this wiki locally