Skip to content

Gpap84/seletestUtils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SeletestUtils

RESTFul web services for selenium node management

Run mvn package and use created jar as standalone server on the remote machine (selenium node).

Endpoints for Node Configuration:

  • http:/nodeIP:8000/downloads/{version}/{type}/{name} : Downloads webdriver executables
    version: the parameter that defines the version of executable
    type: the parameter that defines the name of executable
    name: the name of executable
  • http:/nodeIP:8000/registerNode/{selenium}/{nodeConfig}/{hubHost}/{hubPort} : Register node to Selenium Grid using nodeConfig.json
    selenium: the selenium standalone version to use for registration nodeConfig: parameter that determines the json file to use for registration
    hubHost: parameter that determines the IP address of the hub
    hubPort: parameter that determines the port of the hub
  • http:/nodeIP:8000/registerNode/output/{selenium} : Returns as String the node output (output of java -jar selenium-standalone.jar)
    selenium: the selenium standalone version
  • http:/nodeIP:8000/screen/record/start/{dir} : Starting screen recording on remote node (on .avi format)
    dir: parameter that determines the directory in which the avi file is saved
  • http:/nodeIP:8000/screen/record/stop : stops screen recording on remote node
  • http:/nodeIP:8000//registerNode/stop : unregister node from hub

Endpoints for Appium Configuration:

  • http:/nodeIP:8000/appium/Appium/download/{version} : downloads version of appium from https://bitbucket.org/appium/appium.app/downloads/
    version: parameter that defines the version of appium server to download e.g AppiumForWindows-1.2.4.1

  • http://nodeIP:8000/appium/start/{appiumHost}/{appiumPort}/{platform}/{nodeConfig} : starts appium instance from command line using nodeJS.
    appiumHost: parameter that determines host of Appium server
    appiumPort: parameter that determines port of Appium server
    platform: parameter that determines the platform in which Appium server runs (WINDOWS or MAC)
    nodeConfig: parameter that determines the nodeConfig.json file that used to register to Grid server

  • http:/nodeIP:8000/appium/stop/{platform} :Stops all appium instances
    platform: parameter that determines the platform in which Appium server runs (WINDOWS or MAC)

About

RESTFul web services for selenium node management

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published