Drupal

Drupal Testing: PHP: 08 - PHP Selenium

MOVE ON FROM SELENIUM 2... DO IT NOW & YOU WON'T HAVE TO LATER ( IT HAS MORE HOOKS & BUGFIXES )

facebook/WebDriver says it supports Selenium 2 & 3.. so will need to determine which classes/objects are pertinent to Selenium 3

  • Since Selenium-Server.jar is required....
  • JDK8 is required
  • does jenkins have the dependencies
  • is JDK8/jre in a place accessible by the Jenkins {WORKSPACE}.{PROJECT}.{BUILD} folder
  • MUST USE CORRECT VERSION OF SELENIUM 3
    • the facebook/webdriver package will mandate which version can be used
    • any conflicts with SUT source code & these packages?

 

https://github.com/facebook/php-webdriver

Tags

Drupal Testing: PHP: 05: Moving Env to VM Notes

  • Moved the framework over to the Win7 VM and is working.
  • Still not sure how the classpath is managed as I added a src/Texting.php class & test/TextingTest.php threw a 'class not found' at PHPUnit runime
  • Seems that running 'php composer.phar install' updates config files used by PHPUnit.
  • Need to look into this as its a PITA.
  • Note: Run composer.phar install often.
Tags

Drupal Testing: PHP: 03: Eclipse PHP Project Creation/Setup

Note: Run composer.phar install often. In PHPUnit newly added classes weren't visible in the classpath until the install was run.

Starting off with XAMPP installed - assuming localhost:80 is working on XAMPP

File Structure

/composer.json

/composer.lock

/composer.phar

/src/<php source code/classes>

/tests/<phpunit tests>

/vendors

 

Create New PHP Project in Eclipse

PHP Source Folders

 

Tags

Drupal Testing: PHP: 01: cmder & composer setup ( for composer.json )

phpunit7

cmder

  • CMDER is a linux/windows console hybrid that simplifies environment setup
  • also makes environment portable by encapsulating the shell & environment variables

install to:

c:\cmder

cmder/bin

Curl

  • curl is a http get ( and post? ) library ( tool ) to request files/pages/text/anything from internet resources.
  • place the windows executable in cmder's 'bin' directory to be in the PATH's scope
  • can really put these anywhere, they will just require explicit PATH entries
C:\cmder\bin\curl.exe

C:\cmder\bin\libcurl-x64.dll

C:\cmder\bin\curl-ca-bundle.crt

 

Tags
Subscribe to Drupal