Quality Testing

Quality is delighting customers

Ravi kumar's Friends

  • NageshBabu Machara
  • anil kumar y.n
  • John Leary
  • raghavendra.k
  • Abhishek Tyagi
  • Ajay Patel
  • harini priya
  • Syed Abrar uddin
  • karthik
  • mohan
  • Jackseen Jeyaluck
  • Anjali Dangi
  • sravan sarma
  • kalai
  • vaishali Pardhi

ravi kumar's Groups

ravi kumar's Discussions

What are the Keyword and Data driven frameworks?

Started this discussion. Last reply by Rucha A Mar 2, 2012. 6 Replies

What are the Keyword and Data driven frameworks?Continue

Where do you store logs? And how do you handle exceptions when you executed a scenario by using selenium tool.?

Started this discussion. Last reply by SantoshSarma Mar 15, 2012. 5 Replies

Where do you store logs? And how do you handle exceptions when you executed a scenario by using selenium tool.Continue

About Data driven in selenium Rc? How selenium identifies data in excel sheets?

Started this discussion. Last reply by vidhya Shankar Dec 21, 2011. 2 Replies

Can we discuss about Data driven in selenium RcHow does it works?How selenium identifies data in excel sheets?Continue

 

ravi kumar's Page

Latest Activity

Ajay Dhangar and ravi kumar are now friends
Oct 18, 2012
ravi kumar added a discussion to the group Job Openings
Thumbnail

Knowledge Matrix has a opening for selenium testers

Hi Team,Please forward ur resumes to nikhild@knowledgematrixinc.com. hope its a great opportunity.RaviSee More
May 17, 2012
ravi kumar joined Quality Testing's group
Thumbnail

Job Openings

Post your software testing jobs here.Refer Your Friends !!!See More
May 17, 2012
SantoshSarma replied to ravi kumar's discussion Where do you store logs? And how do you handle exceptions when you executed a scenario by using selenium tool.?
"you can store log by using java Logger class. What do u mean by handling exception? use java exception handling mechanism."
Mar 15, 2012
Tejas Shinde replied to ravi kumar's discussion Where do you store logs? And how do you handle exceptions when you executed a scenario by using selenium tool.?
"Are you talking in the context of Automation Framework?"
Mar 15, 2012
Master117 replied to ravi kumar's discussion Where do you store logs? And how do you handle exceptions when you executed a scenario by using selenium tool.?
"Dear Ravi, What logs you are looking for? you application/web serverlogs or jetty or webdriver logs? if you are looking for exception handling you can write code to check if exception is displayed on a page and even take screen shot to analysis it…"
Feb 3, 2012
ravi kumar updated their profile
Jan 31, 2012
ramesh kudumula liked ravi kumar's discussion What are the Keyword and Data driven frameworks?
Jan 30, 2012
ravi kumar replied to ravi kumar's discussion What are the Keyword and Data driven frameworks?
"Hello Shiva, How do you Collect the data into the datatable,"
Jan 30, 2012
ravi kumar replied to ravi kumar's discussion Where do you store logs? And how do you handle exceptions when you executed a scenario by using selenium tool.?
"Question is any kind of exception, Suppose you may get exceptions after debugging the script i.e., while executing the scenario. "
Jan 30, 2012
ksivareddy replied to ravi kumar's discussion What are the Keyword and Data driven frameworks?
"Data driven frameworks is concept provided by qtp or an automation tool in order to implement retesting  steps to be followed  = Collect the data into the datatable  = Generate the basic script = Do required enhancements to the script…"
Jan 27, 2012
Manu GS replied to ravi kumar's discussion What are the Keyword and Data driven frameworks?
Jan 27, 2012
Nitish replied to ravi kumar's discussion Where do you store logs? And how do you handle exceptions when you executed a scenario by using selenium tool.?
"HI  pls explain what kind of exception u r getting while running u'r script "
Jan 27, 2012
ravi kumar replied to ravi kumar's discussion What are the Keyword and Data driven frameworks?
"Yeah,its true Can you elaborate how data driven Framework works. .............. Its a just knowledge sharing"
Jan 27, 2012
Raghavendra N replied to ravi kumar's discussion What are the Keyword and Data driven frameworks?
"Hi Ravi, Data driven framework means  we can execute one functionality with multiple values and keyword means based on keyword we can execute different scenarios i.e End to End . Plz correct me if i am wrong... Regard's Raghavendra N "
Jan 27, 2012
ravi kumar posted discussions
Jan 27, 2012

Profile Information

First Name:
ravi
Last Name:
kumar
I am currently:
Looking for a Job
Experience(Years):
4 - 5
Designation:
SQA
About Me:
1

Comment Wall (5 comments)

You need to be a member of Quality Testing to add comments!

Join Quality Testing

At 10:33am on January 20, 2012, Raghavendra N said…

Thank You Ravi...

At 4:44pm on January 18, 2012, Raghavendra N said…

How to get values from a list box and how to select particular item from tht using WebDriver

import com.thoughtworks.selenium.Selenium;
import org.openqa.selenium.*;
import org.openqa.selenium.htmlunit.*;
import org.openqa.selenium.firefox.*;
import org.openqa.selenium.chrome.*;
import org.openqa.selenium.ie.*;
import org.junit.*;
import static org.junit.Assert.*;

public class ScrmExample {

    WebDriver driver;
    Selenium selenium;
    @Before
    public void startSelenium() {
        driver = new FirefoxDriver();
        //driver = new InternetExplorerDriver();
        
        //selenium = new WebDriverBackedSelenium(driver, "http://127.0.0.1/");
    }

    @Test
    public void testScrmExample() throws InterruptedException {
        try {
            //Invoke sugar C R M application
            driver.get("http://127.0.0.1/sugarcrm/index.php?action=Login&module=Users");
            
            //it will clear the existing value in a text box
            driver.findElement(By.id("user_name")).clear();
            
            //enter user name
            driver.findElement(By.id("user_name")).sendKeys("admin");
            
            //it will clear the existing value in a text box
            driver.findElement(By.id("user_password")).clear();
        
            //enter PassWord
            driver.findElement(By.id("user_password")).sendKeys("admin");
            
            //String s = driver.findElement(By.id("user_password")).getText();
            
            //click on login Button
            driver.findElement(By.id("login_button")).click();
            
            //wait for login
            selenium.waitForPageToLoad("30000");
        
            //click on Home Link
            driver.findElement(By.xpath("//*[@id='header']/table/tbody/tr[3]/td/table/tbody/tr[1]/td/table/tbody/tr/td[2]/table/tbody/tr/td[2]/a")).click();
            selenium.waitForPageToLoad("30000");
            
            //click on create contact link
            driver.findElement(By.xpath("//div/table/tbody/tr/td/div/ul/li/a")).click();
            selenium.waitForPageToLoad("30000");
            
            //driver.findElement(By.name("salutation")).options(i).value;
            //document.formName.listboxname.options[i]
             var selectTitle = new var(driver.findElement(By.name("salutation")));
            selectTitle.selectByValue("Mr.");
            
            
            
            
            //driver.findElement(By.id("name_advanced")).sendKeys("Raghavendra");
            //driver.findElement(By.id("billing_address_city_advanced")).sendKeys("stae");
            //WebElement element = driver.findElement(new ById("chris_id"));
            //var document = new Object();
            //document.getElementById("chris_id");
            //selenium.getEval("document.getElementsByName('assigned_user_id_advanced[]').innerHtml");
            //selenium.waitForPageToLoad("50000");
            //WebElement a = driver.findElement(By.xpath("//x:table/x:tbody/x:tr[1]/x:td/x:table/x:tbody/x:tr[3]/x:td[2]/x:select/x:option[2]"));
            //System.out.println("valus are"+a);
            //System.out.println("Text is" + s);
            
                
        } catch (Exception e) {
            // TODO: handle exception
        }
        
        
    }
    

    @After
    public void stopSelenium() {
    driver.close();
    }
}

In the above code i want to select Mr. frm weblist can u suggest me how to write code for tht

At 12:02pm on January 18, 2012, Raghavendra N said…

Hi Ravi Kumar i need u r help to work on selenium could u plz help me ...

Regard's

Raghavendra N

At 12:54am on December 14, 2011, Quality Testing said…

Dear Ravi,

Welcome to Quality Testing!

-QT Team

At 8:34pm on December 11, 2011, Kapildev Kapoor said…

Hello Ravi,


Welcome to QT .......enjoy Testing !!! TC GOD BLESS U ALLLLLL


Thanks & Regards
Kapil
kapildevkapoor@gmail.com
visit :http://testingking.weebly.com
+919326814689

 
 
 

TTWT Magazine

Welcome to Quality Testing!

Sachin Natu

 Manager QA at IdeaS Revenue Optimization

Advertisement

Submit A Job

Submit A Tool

Advertisement

Videos

  • Add Videos
  • View All

Badge

Loading…

© 2013   Created by Quality Testing.

Badges  |  Report an Issue  |  Terms of Service