The blog gives you idea of testing and automation testing example of selenium webdriver,SQl and Jmeter, you see the basic example of selenium web driver and get idea how to do automation testing,

How to Restart services of MYSQL Database in Linux through Terminal


Some time Mysql is not Working and we try to login into it and it gave us error or it do not responded in that case you have to Restart the services of mysql.

Below is the following error ?
  1. How do I get mysql prompt in linux terminal?
  2. How I start the mysql server from linux terminal?
  3. How do I get mysql prompt in linux terminal?
  4. How do I login to mysql server from linux terminal?
  5. How do I solve following error?

If you want to Prompt in linux terminal then you have to open terminal in linux and have enter below command

>> mysql -u root - p 
After this you have to enter password, after entered corrected password you are able to login.

-----------------------------------------------------------------------------------------------------------------
  1. How I stop the mysql server from linux terminal ?
If you want to start the mysql server then you have to fire below query 

>> Sudo /etc/init.d/mysql start

If you want to restart the mysql  services then you have to fire below query 

>> Sudo /etc/init.d/mysql restart

If you want to stop the mysql  services then you have to fire below query 

>> Sudo /etc/init.d/mysql stop

mysql is free or it is open source, so many industries used it, some time testing website on mysql and site is not open on your browser then there is mysql connection is problem, for that you have to restart services of my sql. 


How to run Selenium WebDriver test cases in Chrome?

Selenium Webdriver is an automation testing tools, now a days it is very user full for testing, it is an open source tool
In market we have Selenium Webdriver and Selenium RC, Different between them is for webdriver we do not have to start the server but in RC we have to start the server before running our code, and selenium RC support old version of browser

Steps :
1) You need to download the executable driver file from here  : Chrome Driver
2) After download file take path of file and paste in code which I wrote below.
3) Open your Eclipse and create any project
              how to create project In eclipse is describe here Eclipse

public class Chrome {

  public static void main(String[] args) {

        System.setProperty("webdriver.chrome.driver", "E://chromedriver.exe");
        WebDriver driver = new ChromeDriver();              
        driver.get("http://www.google.com");

    }
}
with the help of this code you can open the FF browser and google website in new tab.
Role of set property is very important it set property of browser so that code can executed
In above code we create a object of Webdriver and with the help of object we open the browser and URL in the browse.












Powered by Blogger.