Follow these steps:

1. Download TestCafe’s Installation package (gzip format) from DevExpress. They are offering a free 30 day trial period which includes full access to their dedicated support desk.

– Extract gzip and recompress it as zip file

– Because some server extracts gzip as a whole document which is a wrong output and not as a folder with files inside it.

2. Upload the zip format of the Installation package and extract it.

See Illustration 1

Uploading Error

3. Install TestCafe via Terminal command. For Windows user, use Putty.

– Open Terminal or Putty then connect to your server.

$ ssh root@yourdomain.com

– Check if you have installed Node.js first by executing this command.

$ node -v

A version will appear somewhat like this, depending on the version installed:

v0.10.28

If node.js is not installed, you might want to look at this tutorial on how to install it.

Once nodejs npm has been installed, execute these commands:

$ cd ~/(path to the folder extracted)
$ bash install.sh

Once Installation has been done, execute this command to run TestCafe:

$ testcafe

Once running, the URL of the Control Panel appears on the console, and you can now navigate using a browser.

See Illustration 2 and 3

TestCafe Installed

TestCafe Browser

 

– To exit TestCafe, just close the console application and the web broswer of the Control Panel.

 

Important note:

– If you got an error about cannot execute binary file for ./node folder .

See Illustration 4

Error note

– Check if you have downloaded the correct Installation package for Linux (32-bit) and (64-bit) for your server’s computer architecture.

– Make sure you have not downloaded the MacOS installation package.

 

For Our Linux Server  2.6.32-431.20.3.el6.x86_64, we have installed the 64-bit ARM cpu package.

How to check your Linux server’s version? Type this command:

$ uname -a

TestCafe is now installed on your Linux Server! Now start writing your first test with TestCafe