Friday, November 23, 2012

Problem with Vodafone internet access solved due to social media twitter

I was using Vodafone Rs 98 internet card from past 10 months. It was working good. But suddenly 10 days before I was unable to use internet in my mobile. I gave complaint using twitter. The response after publishing the issue on twitter was very good. Vodafone technical executive Satish came to my residence and took readings related to network and satellite readings. After taking the reading, he said that the problem will solved by today evening. Exactly the problem was solved by evening and I was able to access internet. Thanks to social media like twitter for giving an opportunity to raise the issue using their platform. Even I thank Vodafone for solving the issue  promptly.

Saturday, November 3, 2012

The karate kid, courage, concentration and fight back.

video
One of the finest movies which I have seen. The last fight of the kid was excellent. The way he gets back is excellent. Amazing concentration and fight back when ever we have fallen. Some people will never try to get back their life on track after falling. But this movie sets an example to fight back with more energy whenever you have fallen. Even the same example applies for me also. Even I was in a discouraged mode. But after watching this movie, I have again decided to fight back. The courage which was shown by the kid was excellent.

Tuesday, August 7, 2012

Scan app for Qr Code reading using Android Mobile


Scan app for Qr Code reading using Android mobile. I have downloaded QR Code reading app of Scan.me in my android mobile from Google play store. When we scan the QR code using android Scan app, it will give a beep sound and will redirect us to the website of that particular QR Code. It has also the feature of saving history of scanned QR codes. Even it has also the feature of vibrating when a particular QR Code is scanned using that particular app. Link from where you can download the Scan.me app

Friday, May 25, 2012

Selenium RC, Junit4 for logging into linkedin.com website

Selenium RC and Junit4 for logging into linkedin.com website package tests; import com.thoughtworks.selenium.*; import org.junit.After; import org.junit.Before; import org.junit.Test; import java.util.regex.Pattern; public class ExcelData extends SeleneseTestCase { @Before public void setUp() throws Exception { selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.linkedin.com/"); } @Test public void testUntitled() throws Exception { selenium.start(); selenium.open("/"); selenium.type("id=session_key-login", "shinde.of.santosh@gmail.com"); selenium.type("id=session_password-login", "02d91a0433"); selenium.click("id=btn-login"); //selenium.click("id=btn-login"); selenium.isElementPresent("Home"); selenium.waitForPageToLoad("30000"); } @After public void tearDown() throws Exception { selenium.stop(); } }

Thursday, May 17, 2012

clicking on different tabs of google page using xpath

Code for clicking on different tabs of Google page using Xpath package google; import com.thoughtworks.selenium.*; import java.util.regex.Pattern; public class Xpath { public static Selenium selenium = null; public static void testUntitled() throws Exception { Selenium selenium = new DefaultSelenium("localhost", 4444, "*chrome","http://www.google.co.in/"); selenium.start(); selenium.open("/"); selenium.click("xpath=.//*[@id='gb_119']/span[2]"); selenium.waitForPageToLoad("30000"); verifyTrue(selenium.isTextPresent("Sign In")); selenium.goBack(); selenium.click("xpath=.//*[@id='gb_1']/span[2]"); selenium.waitForPageToLoad("60000"); assertTrue(selenium.isTextPresent("Google Search")); selenium.goBack(); selenium.click("xpath=.//*[@id='gb_2']/span[2]"); selenium.waitForPageToLoad("60000"); assertTrue(selenium.isTextPresent("")); selenium.goBack(); selenium.click("xpath=.//*[@id='gb_8']/span[2]"); selenium.waitForPageToLoad("60000"); selenium.goBack(); selenium.click("xpath=.//*[@id='gb_78']/span[2]"); selenium.waitForPageToLoad("60000"); selenium.goBack(); selenium.click("xpath=.//*[@id='gb_36']/span[2]"); selenium.waitForPageToLoad("60000"); selenium.goBack(); selenium.click("xpath=.//*[@id='gb_5']/span[2]"); selenium.waitForPageToLoad("60000"); selenium.goBack(); selenium.click("xpath=.//*[@id='gb_23']/span[2]"); selenium.waitForPageToLoad("60000"); selenium.goBack(); selenium.click("xpath=.//*[@id='gb_25']/span[2]"); selenium.waitForPageToLoad("60000"); selenium.goBack(); selenium.click("xpath=.//*[@id='gb_24']/span[2]"); selenium.waitForPageToLoad("60000"); selenium.goBack(); } private static void assertTrue(boolean textPresent) { // TODO Auto-generated method stub } private static void verifyTrue(boolean textPresent) { // TODO Auto-generated method stub } public static void main(String args[]){ try { Xpath.testUntitled(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } }

Friday, May 4, 2012

Linkedin form filling using Selenium RC

package tests; import com.thoughtworks.selenium.*; import java.util.regex.Pattern; class Linkedin{ public static Selenium selenium = null; public static void testUntitled() throws Exception { selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.linkedin.com//"); selenium.start(); selenium.open("//"); selenium.type("id=firstName-coldRegistrationForm", "santhosh"); selenium.type("id=lastName-coldRegistrationForm", "shinde"); selenium.type("id=email-coldRegistrationForm","santosh_s666@yahoo.com"); selenium.type("id=password-coldRegistrationForm", "santhosh"); selenium.click("id=btn-submit"); selenium.waitForPageToLoad("30000"); } public static void main(String args[]){ try { Linkedin.testUntitled(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } }

code for searching images from google using Selenium Rc

code for searching images from Google using Selenium RC and Eclipse package tests; import com.thoughtworks.selenium.*; import java.util.regex.Pattern; class SearchImages{ public static Selenium selenium = null; public static void testUntitled() throws Exception { selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.google.co.in//"); selenium.start(); selenium.open("//"); selenium.click("css=#gb_2 > span.gbts"); selenium.waitForPageToLoad("30000"); selenium.type("id=lst-ib", "ram"); selenium.click("name=btnG"); selenium.waitForPageToLoad("50000"); selenium.click("css=i.close_btn"); selenium.waitForPageToLoad("50000"); } public static void main(String args[]){ try { SearchImages.testUntitled(); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } }