Monday, January 2, 2012

Selenium

Yesterday i thought to find a test tool. My requirement was to find a tool for test web pages. Also it should be a simple one. (Yes... i don't like to jump at once..) How ever i found "Canoo web test", "Selenium", "Watin" and "Watir" as popular test tools. But Selenium is familiar for me. Cause there was a simulator called as selenium which i was used 3 years ago. (http://www.seleniumsoftware.com/downloads.html

SeleniumHQ (Web application testing tool) http://seleniumhq.org/
It has lot of tools. Selenium 1, Selenium 2, Selenium IDE, Selenium Grid like wise. As per the introduction this Selenium IDE is the easiest tool to learn. (Woww.. it can plug in to firefox. )
It has a feature called record. As a beginner i feel it was very attractive feature. We can record what we do on a particular web page and rerun it. (Yes... it generates all the commands automatically when we running the trail)

to be cont....

Friday, December 23, 2011

Eject.

Hi

Last week my friend log into my laptop through the network and opens
my CD ROM. Fortunately i catch him by his face expressions.
However i try to find out the command for it. mmmm.. got it.
(Thanks for google.)

I just need to type "eject".  [I'm working in Fedora ver 13 ;)] 
Even no need to be the root.

OK.. Then i thought more things to give the RETURN. 
ah.. Previously i red (November 8 in 2009 blog entry) 
about cron jobs in Linux. But i never used it.

i wrote 

#!/bin/sh
eject

in a file and save it as "eject.sh".
Make it executable.
> chmod +x eject.sh

Then wrote 

* * * * * /home/kumudu/eject.sh

in another file and save it as "execute.cron". 

(Note : This says the eject.sh will trigger in every minute.)

Finally i need to set this cron job 

> crontab /execute.cron

:D You know what would be the result...

Unfortunately he has blocked port 22. :(
port 22: No route to host

Need to think more.....

> crontab -l      : Gives current crons
> crontab -e      : Can edit the current cron.
> crontab -r      : Remove the current cron.

Use man crontab for more details.
 
Cron expression.
[min] [hour] [day of month] [month] [day of week] [program to be run]

Friday, November 5, 2010

How to increase Maven memory.

Enter this line just after the copyright and comments in the mvn.sh file in Maven_home.

export MAVEN_OPTS=”-Xmx512m”

For Maven 2.0.6 onwards you have to set the parameter without double quotes.

export MAVEN_OPTS=-Xmx512m

Sunday, August 1, 2010

MySQL connecting issue.

Mysql issue

Hi friends...
I just install the mysql becuse of db crashe. After that when i try to connect to the mysql server through the client i got this exception.

Con't connect to local MySQL server through socket.

Finally i found that i need to give the socket path with 'mysql' command.

like this...

mysql --socket=/var/lib/mysql/mysql.sock ...

For the mysql client, the default location of this socket file is /tmp/mysql.sock. However, for a variety of reasons, many MySQL installations place this socket file somewhere else like /var/lib/mysql/mysql.sock.

It is painful to type this in every time.
So i update the /etc/my.cnf file. Add these at the bottom.

[client]
socket=/var/lib/mysql/mysql.sock


Note : If there is already a [client] section in the my.cnf file, add or edit the socket line as appropriate. You won’t need to restart your server or any other processes. Subsequent uses of the mysql client will use the proper socket file.

Friday, July 16, 2010

Start Tomcat in dubug mode and connect with idea.

Tomcat : 6.0.14
idea : Ultimate 9

Tomcat configurations.

copy these to catalina.sh
JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=52385,suspend=n,server=y $JAVA_OPTS"
JPDA_TRANSPORT=dt_socket
JPDA_ADDRESS=8000

Start tomcat : sh catalina.sh run

Idea configurations.

Go to Tools -> debug... (In server tab)
1. Select application server as tomcat 6.
2. Uncheck start browser.
3. Set host as localhost.
4. Set port as 8000

(In startup/connection tab)
1. Select debug.
2. Transport : socket
3. port : 52385

uncheck all in "berfore launch".                                                                              

Click debug.