Friday, 10 January 2014

Twist Testing Tool with SAHI : Port Numer is already being used

When ever i start running the script i get this error

"--- ERROR: Port 1001 is already being used ---"

Work around :

Change port number to 1002 in sahi.properties file and save it.

Then start running the script after browser opens go to Internet Options-->Connections-->Lan Settings --> change port number  to 1002
Now refresh the page -->Sahi.example page opens and script runs.

Again if we try running another script it  will give same error

"--- ERROR: Port 1002 is already being used ---"

Now change port number in sahi.properties ,browser port number it runs.

Twist testing tool is not opening

While opening Twist testing tool it gives different errors like

1) Cannot create virtual machine
2) work space is locked

work around for these errors to open Twist

Cannot create virtual machine:

    Right click on Twist and select Properties and add " -vmargs -Xmx1310m" " to target
click ok

After adding it looks like

"C:\Program Files\twist\twist.exe" -vmargs -Xmx1310m"

Now double click if getting same error remove added  " -vmargs -Xmx1310m" " and click OK and try to open .It works after we do same process 2 or 3 times

work space is locked :
Some times .lock files get created and it wont allow us to open work space. Goto project folder and check .lock file is there if yes delete it . Now we can open workspace.