Tag Info

Hot answers tagged

4

If I understand correctly, the only thing that makes this scenario a challenge is the use of the "live feed". Thus, stub out the live feed. Replace it with your own "non-live feed" and you end up with predictable states where your expected calculation results are truly predictable. Your "non-live feed" can be generated by hand, or if you are automating ...


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

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 ...


3

Browsermob-proxy could be used to blacklist the GA hosts, so the code isn't even loaded. https://github.com/lightbody/browsermob-proxy It integrates well with Selenium. Here is a general purpose talk describing using BMP to blacklist cruft that can slow down automation (Facebook & Twitter widgets are specifically mentioned, but I'm sure GA can also ...


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 ...


2

CSS selectors can also match strings that start with, end with, or contain a certain substring. For example input[id^="E_DOS_TITEL"] will match an input element whose id attribute starts with the text E_DOS_TITEL. The ends with comparison operator is $=, and contains is *=. The example provided above should work as long as it's the only input element ...


2

If you are using Selenium Builder, then all you need to do is run a Jenkins instance (with the Selenium Builder plugin installed) and then you can have Jenkins send you the necessary messages.


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

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

I would add to an answer from Joe that you may randomize data that you send to an app from the live feed stub. With this technique you may be able to find bugs that would not be found if you only used the same data all over again.


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

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

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 found a pretty simple way to do it for Chrome and Firefox using the Google Analytics Opt out Add ons, which are maintained for basically all browser. Refering to this SO question about browser plugin testing with selenium, I was able to open a GA/free selenium session with the following code for C# var options = new ChromeOptions(); options.Proxy = ...


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.


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

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

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 have small sleeps (say 100ms) between each keystrokes. This far more human like then the speed in which Selenium can enter text. Quite often the auto suggest mechanism may be triggered by delays between keystrokes, and entering quickly via selenium may not trigger.


1

A little hacky, but might work: You do the SendKeys(), and then wait with a WebDriverWait. I don't really know the C# syntax, but should be similar: (new WebDriverWait(yourdriver, 10)).until(visibilityOf(theDropdownWebelement)); This would throw a TimeoutException after 10 seconds of not finding the dropdown. Having wrapped all the process in a method, you ...


1

Such Intermittent faults are the hardest ones to debug. What I would like to suggest is to look around: Run tests under Fiddler. This tool may help you to find http requests with errors. Also, it would be helpful to find the request which gets the suggestion list and reissue it several times (there is an option in context menu – reissue request.) When ...


1

I would guess that the app uses log files ( if not ask for them) or records the exchange rate somewhere for auditing



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