Tag Info

Hot answers tagged

4

Webdriver is not only more modern. It is future W3C standard. Being able to click on hidden links seems like a misfeature. I would use old version only if newer version was seriously lacking important features without which I cannot live.


3

Since Selenium RC is deprecated and you touch on future-proofing, you should choose WebDriver. WebDriver expertise is more valuable to you because it's more transferrable. Yours is a future worth proofing. Over time, WebDriver expertise will only become more common than RC expertise. Subsequent hiring managers in your organization will appreciate this ...


3

I don't see why this couldn't be done if you have a code driven Selenium test suite. You would need to implement a method run on test failure that adds a bug to Bugzilla using their HTTP REST API. For the first step, if you are using Java, see this answer on taking a screenshot when selenium fails and the referenced blog post. You need to similarily ...


3

The actual slider is a link-element you should be able to define a css selector based on its classes. <a class="ui-slider-handle ui-state-default ui-corner-all" href="#"></a> The first you find is the left slider, the second the right slider. I have successfully used use the Action Builder and the MoveToOffsetAction to drag a slider X number ...


2

This is how I would debug a Selenium session to find out what is happening: Step-by-step debugging: Most IDE's allow you todo step-by-step debugging, you could set a break point just before the point you want to investigate. This will pause the execution of the test and lets you examine the browser with its own tools. You can step thru each line of code one ...


2

You can try setting implicit wait time. (Documentation) // 5 seconds implicit wait (C# code) IWebDriver driver = new FirefoxDriver(); driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(5));


2

Eugene S, I had a similar problem with testing UI generated by ExtJS library. The solution I found useful was to create separate classes for more complex visual components. For instance, for data grid components I have created ExtJsDataGrid class that let me pick up a specific cell in the grid, abstracting me from obscure details in Selenium (dynamic ...


2

I don't see DOM based tools going away until DOM itself goes away. In general this is getting more and more complex with graphics, animations, tricks to increase speed, etc... but the underlying structure of the browser and html is the same. The tricky parts are really just timing as the DOM is modified based on user interactions to avoid page reloading. ...


2

A lot depends on what you want the front-end automation to do. Given that you've got a lot of web forms with code behind, I'd honestly consider starting with the unit test framework built into Visual Studio, and using that to test the data handling (I'd recommend taking a look at Channel9's TechEd videos for an idea of what you can do with Visual Studio ...


2

I assume your web application is for external customers (so your users can use web app in many browsers and operating systems outside of your control). Which is very interesting challenge - exactly what we are doing :-) You are excellently positioned to use new future W3C standard for browser automation, Selenium Webdriver (Se 2). (In a way, you ...


2

Do two simple steps: First initialise webdriver element then try to find element using xpath, as explained below WebDriver driver=new FirefoxDriver(); driver.find element(By.xpath("enter your xpath")).click();


2

Install Google chrome. Install Blazemeter extension in chrome. Download JMeter and set it up. Lots of tutorials available for that. Record scripts with blazemeter and download them. Run the scripts in JMeter. Tada...


1

I can share my experience. I initially do functional testing to understand the data flows, pre-requisites, dependencies. Based on this I try to come up with reusable data scripts. Example. If data need to be populated for last 2 days, the script would be like (getdate()-2, values). With this every time when you run you would get required data Custom Store ...


1

I don't see how testing in the cloud is different then testing on your local computer system. The only thing the CLOUD delivers is a scalable type of infrastructure. If you need to test the scalability of the infrastructure, then search for "Scalability testing" and read blogs like this. Load testing mobile API's could be done with tools like BlazeMeter. I ...


1

The Internet Explorer Dev Team provide a compatibility scanner that should help flag up incompatibilities with modern versions of Internet Explorer: https://www.modern.ie/en-gb/compat-scan If you need to run the tool from an intranet, here's the open source version: https://github.com/InternetExplorer/modern.IE-static-code-scan There's plenty more info and ...


1

Ask the employees who use other browsers about known issues on non-IE8 browsers, assuming you don't track those issues yet. Have an experienced developer do a cursory check of the code to spot known incompatibilities. Run the existing automated tests with the new standard browser instead of the old one. Define high priority applications, where failure is ...


1

I think Sikuli approach (image/pattern matching with customizable similarity) is the best solution when it comes to visual intensive content as in big data applications, I am currently working with it on both web and desktop application test automation and I find it a great tool, am importing it in my java classes and creating test cases and suites as I ...


1

Sorry to answer own question but in the hope it might help others. Couldn't find a single threaded browser that ran on windows. I read various web based comment on increasing max sessions for browsers on Windows. All involved changing or creating registry entries. [ While I wanted to reduce max sessions, as Sam offered (see answer below), it seemed logical ...


1

To play a devil advocate, if you try Python, you will find that you are substantially more productive because of dynamic typing. Python just works much harder to improve productivity of the programmer, as compared to C# which is focused to create effective code (making programmer to work harder to get it). In testing, it is of little difference if test ...


1

First of all: Welcome to SQA. Apart form the features of C# and Python, your team should also use C#. The web testing team can reuse scripts from the automation team. The teams can support and complement each other. They can talk about problems and challenges and find solutions together. That Python already have a xUnit framework in the standard library is ...


1

WebDriver is quite more reasonable option anyway. Everything you can automate with Selenium RC, you can do with Selenium WebDriver. If you can't perform some action with native methods (like yours "Being able to click on hidden links within sub-menus"), you can achieve the same with executing JavaScript commands from WebDriver. Selenium WebDriver will ...


1

You want to use component query. From Webdriver you can execute arbitrary javascript - that means you can use ComponentQuery to get things from a high level and then drill down with (maybe) xpath to get more specific things. This article helped me figure it out. for example you'd probably use component query to get hold of a control and a button in that ...


1

I guess by object repository you mean external source (a file or DB) of locators for elements in your page objects. I actually see no reason to follow this approach. Keeping locators in a separate repository is said to limit maintenance costs, as locators can be updated without a need of recompiling the code. However, both locators and page object codes ...


1

If you're using Visual Studio Ultimate the best option would be using Web Test project type, it can easily handle dynamic stuff and can be converted to Load Test if necessary. If you need browser-based testing, the best choice would be Selenium Webdriver which has .NET/C# client binding. If options 1 and/or 2 for some reasons are unsuitable you can look ...


1

This is how I approached a similar situation in validating a PDF creation service. Convert the doc -> PDF using an automated method you control. This will be your oracle. Use your conversion process under test Do a file comparison between the two PDFs That method seems to me the easiest to implement, but it may not meet your test needs. Another ...


1

I would hope since this is a financial application there is some sort of auditing you could utilize. If not I would ask to see if it could be injected into the app if you can't control the feed in some manner. You should be able to determine what the selected or triggered price was. You can use the total transaction value against the quantity to see if ...


1

We used AscentialTest from Zeenyx Software to test an SAP windows based POS system. It is also used by other groups to test Fujitsu's Global POS and IBM's new Chrome based POS system.


1

Some tools allow for defining before scenario, after scenario, before step, after step - hooks, which are called as a setup or teardown for a scenario or even for a separate step in it. If you do have such hooks, then add a delay into an "after step" hook and you'll be fine.


1

You could put a sleep after every instruction - or around the instructions you are interested in.


1

you can use waitforpageload option or implicitly wait options to make the page wait and after that you can make a note that it is success or failiure. I hope though wait can be used or it might give some solution to the problem.



Only top voted, non community-wiki answers of a minimum length are eligible