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
we have do some investigation with QTP,silkTest and Selenium for our application automation test.
finally we decide to use selenium.
- QTP supports html elments not good. it could recognize very few controls (because we use extjs).
- selenium coud use xpath to locate html element. we could encapsulate selenium and define own controls for specific UI .
- Selnium is free
- QTP very expensive
Thanks for reply.
How confident you are in this tool have you done any of regression testing on web application.
I need to test a web page which contains table data in gird. I am trying my level best to sort this but i am not. And also spead sheet.
I am new to this tool can you pls give me some openion on his tool. How good it is? we are running short time for automation.
We need any client-server to work with this tool?
So far we have done some stuffs on WR? canit will help?
Is their any do's and do-not for to start quick
Thanks in advance
i think ,you should firstly get some ideas about the selenium from it's site.
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
Thanks for your support.
Nice to here that you are using the Selenium.
I am too working on the same but i have some query's like
1. IDE supports only firefox and can install only on firefox. So it mean that we can execute all my test in firefox ?
2. If our web application is developed only for IE6/7 then how can i prepare testcase and how can we run the test ?
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 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.
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.
If any example then it would be aooreatiable.
Thanks in advance.
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.
Thanks for reply.
I am working on spread to add integer value into spread and calling Submit button. But when i recorded the script then i got the 'click' event but when i am runnning my script, ide does not click on the spread and also not inserting the value. Have a look at my code
===========================================================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>SKTC</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">SKTC</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>http://192.168.50.11/testing</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>Chirayu - User Login</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>ctl00_mainCopy_txtUser</td>
<td>admin</td>
</tr>
<tr>
<td>type</td>
<td>ctl00_mainCopy_txtPassword</td>
<td>admin</td>
</tr>
<tr>
<td>click</td>
<td>ctl00_mainCopy_btnLogin</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>Chirayu - Welcome</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>ctl00_mainCopy_Button2</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>Chirayu - HomePage</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=New Request</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>Chirayu - New Request</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>ctl00_mainCopy_ddlItemName</td>
<td>label=A1</td>
</tr>
<tr>
<td>click</td>
<td>//option[@value='A1']</td>
<td></td>
</tr>
/* This portion of code will click on spread cell twise to actiwate edit. */
<tr>
<td>click</td>
<td>//table[@id='ctl00_mainCopy_sprdMaterialRequest_viewport']/tbody/tr/td[4]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//table[@id='ctl00_mainCopy_sprdMaterialRequest_viewport']/tbody/tr/td[4]</td>
<td></td>
</tr>
/* I am trying to type my input to the request grid. */
<tr>
<td>type</td>
<td>ctl00_mainCopy_sprdMaterialRequest_ctl08</td>
<td>123</td>
</tr>
<tr>
<td>click</td>
<td>ctl00_mainCopy_btnSubmit</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>Request NO - 138 has been successfully added.Do You want to add another one?</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Logout</td>
<td></td>
</tr>
<tr>
<td>assertTitle</td>
<td>Chirayu - User Login</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>
=============================================================================================================
Abhishek can you tell me is their any problem in the code or i need to use x-path? i am not sure about how to use x path in my case.
It would be nice if you have any spread sample with you.
FYI: Our major area of task os on Grid and spread.
Thanks in advance
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
Thanks allot,
I am able to use doubleclick () on grid and its working fine. But this works fine for FF, when i am running same scripts with IE 6.0 its not working. What could be the problem.
I am facing problems with IE. How you are woking?
As i told you development team effort is on IE 6 & 7. I think we need to bemch mark our IE and FF.
Thank you
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?
Thanks for reply. Thanks Abhishek.
For IE i am running my scripts HTA mode. I am not able to launch IE6.0 from win 2000 matchine, due to this i am trying on HTA mode.
When i will run my code after doubleclick at () it focus on cell then i am type command to type. Type command also exicutes without any error, but i am not finding typed value in the spread. After this all commands works fine w/o typing values.
Also if you don't mind i am have some more things to ask if you give me your mail id then it would be greate help.
Some of my quires:
1 How to create js file? How to add js file to IDE? How to use this js file in my code? user extention js file.
2 While i am runnning my test suite in IE, when we hit on pop-up window on my page then its prompting me error as ' Permission denaied error' ? But the same code it worked before days. Also my observations:- in some IE its working fine . What could be the problem?
3. I am not able to select date from calender? i.e java script.
4. in FF Pop-up works fine, but in IE pop-up name is not identifying and error as unknown window.
Are you using selenium for regression testing ? how you feel about this? can you able to test all contrllers on your site.?
Thank you
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.
