12 Replies Last post: Jul 9, 2008 3:26 PM by abhishek  
ucase Beginner 13 posts since
Jun 5, 2008
Currently Being Moderated

Jun 6, 2008 1:02 AM

**** QTP Vs Selenium ****

Hello Experts,

 

 

Most of testing effort is covered by QTP for functional and regression. So why should we go for this tool why not other.

 

Experts please suggest on this topic. Is their any diff b/n QTP Vs Selenium.

 

 

Thank you

bruce Expert 182 posts since
Jul 8, 2007
Currently Being Moderated
1. Jun 6, 2008 3:45 AM in response to: ucase
Re: **** QTP Vs Selenium ****

we  have do some investigation with QTP,silkTest and Selenium for our application automation test.

finally we decide to use selenium.

  1. QTP supports html elments not good. it could recognize very few controls (because we use extjs).  
  2. selenium coud use xpath to locate html element. we could encapsulate selenium and define own controls for specific UI .
  3. Selnium is free
  4. QTP very expensive
bruce Expert 182 posts since
Jul 8, 2007
Currently Being Moderated
3. Jun 9, 2008 8:40 PM in response to: ucase
Re: **** QTP Vs Selenium ****

i think ,you should firstly get some ideas about the selenium from it's site. 

abhishek Beginner 33 posts since
Nov 6, 2007
Currently Being Moderated
4. Jun 18, 2008 3:10 PM in response to: bruce
Re: **** QTP Vs Selenium ****

We are using Selenium IDE to code the tests and then run them using Selenium Core. We are currentlya t close to 75 scripts for build tests everyday. Our application is web based and we havent faced any show stoppers. Of course you will need to know how best you can get IDE to work for you - using javascript,xpath etc.

 

Read up and ask questions, that would be the way to go.

 

Thanks

abhishek Beginner 33 posts since
Nov 6, 2007
Currently Being Moderated
6. Jun 20, 2008 2:40 PM in response to: ucase
Re: **** QTP Vs Selenium ****

1. IDE supports only firefox and can install only on firefox. So it mean that we can execute all my test in firefox ?

 

Yes, IDE tests can only be run in FF. You need to use Selenium RC for multiple browser support.

 

2. If our web application is developed only for IE6/7 then how can i prepare testcase and how can we run the test ?

 

You can develop your test cases using Selenium IDE and run them using Selenium RC

 

Hi Abhishek if you are using this then are you working on IE or mozilla ? if i am not wrong we can't test any web application without IDE. IDE is must .

 

I am running my tests primarily on IDE  and run them using Core Test Runner and hence run them on FF only.

 

I am planning to setup my test with IE 6 & 7, later we may focus on firefox. Can please tell me how can we do it. I am planning to install IDE+RC for my web testing. Also i have some issues with grid data. Let me brief you in detail.

 

In my web application we are using GRID for displaying active data from database. In that each page will have 10 data / page. So i need to search my data out of all navigators. I am not able to write java script for this. Can you tell me how can we do this.

 

Are you looking for specific text or values on the page in the grid. What data is displayed? You can use xpath element locators to identify the text/values.

 

Also if we are using spread in our web page where our data's are keep's updating i.e trasaction data's. Can i know how can we achive this.

 

You can store the data and them utilise the same later on in the script to check on it. I am not really clear on what kind of data you are referring to.

 

If any example then it would be aooreatiable.

abhishek Beginner 33 posts since
Nov 6, 2007
Currently Being Moderated
8. Jul 2, 2008 3:48 PM in response to: ucase
Re: **** QTP Vs Selenium ****

Why are you clicking twice on the same cell? Are you trying to simulate a double-click? If that is the case, your command should be -

doubleClick(locator) - where the locator is the same as the xapth expression you have used for the click.

 

If you need to single click on the cell twice may be you can try with some delay after the second click when the cell gets activated.

 

Also the cell you are clicking on is not the same you are typing into?

You also might want to check those numbers ctl08 etc are they static or do they change with every activation?

If you are getting an error can you post the error.

 

Let me know,

Thanks

abhishek Beginner 33 posts since
Nov 6, 2007
Currently Being Moderated
10. Jul 7, 2008 10:50 AM in response to: ucase
Re: **** QTP Vs Selenium ****

I run my scripts primarily on Firefox. however if I need to run on IE I use RC. I guess you are also using RC to run your scripts on IE? Can you detail what is happening when that command is executed?

abhishek Beginner 33 posts since
Nov 6, 2007
Currently Being Moderated
12. Jul 9, 2008 3:26 PM in response to: ucase
Re: **** QTP Vs Selenium ****

1. I am not sure about creating JS files. There are a few examples which  have been posted under selenium IDE > Wiki > Extensions. You need to open IDE Options>Options and specify the path to the file as a Selenium Core extension. Then close IDE and reopen again for it to pick up the extension

 

2. I dont know about the permission denied error. Generally I faced a problem with pop ups having dynamic ids, I used a JS expression to work around this

storeEval <js expression> var

selectWindow $

 

3. Yes. It does not recognise JS. You will probably identify the internal name of the entry field and manually enter a statement like

type <entryField> 01/01/2001

 

4. Similar to #2. I think you need to identify pop ups with a general expression.

 

Currently we use it for Build Verification Tests . It has its limitation and  can get very long and complicated when it comes to long drawn functional tests. For us one major issue is trying to maintain data on the QA environment on which the test scripts depend like drop down values etc.

More Like This

  • Retrieving data ...