BehatMink

CentOS7: 04-PhantomJS Service Wrapper

 

 


create phantomjs service script

/etc/init.d/phantomjs

[setup@c7 ~]$ cd /etc
[setup@c7 etc]$ cd init.d
[setup@c7 init.d]$ ls
functions  netconsole  network  README
[setup@c7 init.d]$ touch phantomjs
touch: cannot touch ‘phantomjs’: Permission denied
[setup@c7 init.d]$ sudo touch phantomjs

sudo chmod +x phantomjs

 

 


create phantomjs config script

/etc/default/phantomjs

CentOS7: 03-PhantomJS WebDriver

get phantomjs

 

wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2

tar xjf phantomjs-2.1.1-linux-x86_64.tar.bz2

chown setup phantomjs-2.1.1-linux-x86_64

chmod 777 phantomjs-2.1.1-linux-x86_64

chmod +x /bin/phantomns

 


 

Run phantomjs

/.phantomjs

 

[setup@c7 bin]$ ./phantomjs --webdriver 8643
[INFO  - 2018-11-02T01:52:22.711Z] GhostDriver - Main - running on port 8643

 

 

CentOS7: 02-VM Behat Mink

create /var/www/behatmink

mkdir /var/www/behatmink

 

chown behatmink to setup user

[setup@c7 www]$ sudo chown setup behatmink
[setup@c7 www]$ ls -la
total 0
drwxr-xr-x.  5 root  root  50 Nov  1 19:41 .
drwxr-xr-x. 20 root  root 278 Nov  1 19:27 ..
drwxrwxrwx.  2 setup root   6 Nov  1 19:41 behatmink
drwxr-xr-x.  2 root  root   6 Jun 27 08:49 cgi-bin
drwxr-xr-x.  2 root  root   6 Jun 27 08:49 html

 

 

git behatmink project

[setup@c7 www]$ git clone https://unityconstruct@bitbucket.org/unityconstruct/behatmink.git
Cloning into 'behatmink'...
Password for 'https://unityconstruct@bitbucket.org':
remote: Counting objects: 350, done.
remote: Compressing objects: 100% (322/322), done.
remote: Total 350 (delta 150), reused 0 (delta 0)
Receiving objects: 100% (350/350), 17.98 MiB | 6.17 MiB/s, done.
Resolving deltas: 100% (150/150), done.

 

Subscribe to BehatMink