Hot answers tagged

5

Yes, you can use NUnit for functional testing. But still it is a unit-testing framework. No, you are not creating unit-tests by using a unit-testing framework to write functional tests. A unit-test is testing just a single methods input and output, by writing end-2-end tests it by definition cannot be a unit-test. :) Unit testing frameworks are often ...


3

I got the same issue when I use Firefox 39 with Selenium 2.45. After that I upgraded to Selenium 2.46 and the issue got resolved. I think that the problem is the Firefox and Selenium version agreement. Note: the default setting will make the Firefox update automatically.


3

When is a good time to develop new automated test, and who should be responsible for this? Developing the structure of the automation can begin very early on in the process. Once the requirements are set the objects can start getting built out, be put into classes and a lot of the assertions can be built that way all that remains is ToDos that hook ...


3

All-in-one: SeeTest Mobile web: Windows Phone Web Driver BridgIt Native apps: CodedUI Winium.StoreApps windows-phone-8-bootstrap Hybrid apps: CodedUI Winium.StoreApps.CodedUi Silverlight apps: Windows Phone Driver P.S. If you know other solutions, please share. Thank you.


3

Short answer: Yes it is a bad practise, unless you have a very very very good reason, do not use implicit wait. This Stack Overflow answers really puts the difference in great detail. I once had someone on my team who thought it was a good idea, until I started researching why all our tests had such a long starting time. Somewhere in our setup the implicit ...


2

The answer was buried in some MSDN documentation that was challenging to google-reach: http://blogs.msdn.com/b/visualstudioalm/archive/2013/09/16/using-internet-explorer-11-and-not-able-to-record-a-web-performance-test-successfully.aspx Also ... don't forget to enable the test tool. Might have to check a couple places.


2

data-href is an attribute of a HTML tag, try to use get_attribute method, something like: url = browser.find_element_by_xpath("//a").get_attribute("data-href") For more information see: http://selenium-python.readthedocs.org/en/latest/api.html#selenium.webdriver.remote.webelement.WebElement.get_attribute Or this for examples: ...


2

Your question is a little bit general, that's why I'll also give you a general answer. Concurrency can be measured in different ways. Let's assume you have a web-site where the users can execute some actions by interacting with some elements on the web-pages. Here if we're talking about concurrency, we are meaning concurrent (simultaneous) users interacting ...


2

One possibility: Run each thread against its own instance of the application. Depending on the cost of instances, this may be too expensive. But it does eliminate crosstalk among tests.


2

This often happens when there are multiple elements that match your search and one of them is hidden and the other is not. If it finds the element that is hidden, you will get this error. I would search through the DOM for any other element with the name "title". You may need to provide additional information to ensure the identifier is unique and finds ...


2

I really like the answer from the link Philip Beadle posted in a comment: It's a bad idea to test the core browser's behaviour as it's not your logic, i.e. you should not need to test that arrow keys work with options since that's something your browser implements. And some Protractor (JavaScript) examples how to handle the drop from the same ...


2

I believe you are getting this error because : You are immediately (before the page load could finish) searching for an element and finding it. there are 3 options in a dropdown and on selecting each option, rows in a table gets populated. When dealing with asynchronous pages use proper waits after every anticipated page-load. Insert an explicit ...


2

Webdriver is faster, as compared to RC Webdriver mimics much more closer to real-life interaction; as compared to RC WebDriver supports more languages WebDriver is more actively followed/supported now; RC is past details: http://www.guru99.com/introduction-webdriver-comparison-selenium-rc.html


2

Using a similar logic to what you already have I would simple loop through based on your xdoc. using System.Xml.Linq; XDocument xdoc = XDocument.Load("uielements.XML"); string name = "'ele_child123'"; string find = "//element[@name=" + name + "]"; foreach (var childElem in xdoc.XPathSelectElements(find)) { string childName = ...


2

Ask your developers to add a name (which does not need to be unique) to relevant elements. find_elements (Java may have different spelling) returns a LIST of elements. If you cannot have name, you can find by CSS class. Xpath is locator of last hope, too brittle and too slow.


2

Try using //li[@class='moreGenres']/span as an xpath For css, what you have - .moreGenres>span does work - so see if maybe you have that li in more than one place perhaps? or maybe make it a bit more specific such as li.moreGenres>span or ul>li.moreGenres>span or (better) ul.this_list>li.moreGenres>span It might also be ...


2

I've been using Ranorex for web automation testing purposes for 3+ years now, and I can say it's the best UI automation tool I've used so far. The application under test is a fairly huge site, where the end users can create individual accounts, but also enterprise ones that, depending on the account type, have a LOT of options that can be tweaked, ...


1

The chart looks like an SVG chart. So you would need to go to the particular bar and then get the tool tip using the .text attribute - if you're using Python or using the getText( ) -in case you're using Java. Here is an example of such a chart (it's a pie chart) SVG Pie Chart Here is how I got the tool tip text for the Violet portion of the pie chart : ...


1

when I select the popup link it opens in a new frame on the same page. For webdriver, you have to explicitly move the driver to a new frame. If you can identify the frame, you can use driver.switchTo().frame() to find elements inside it. Does that help?


1

Take a more precise look at the error message. It says "Element must be user-editable in order to clear it". Seems like your issue relates not to "Input Text" keyword but to earlier one which you probably have in your test (like "Clear Element Text" one). Make sure that this keyword has also a valid locator set. If it doesn't work you have also to make ...


1

Haven't tried it myself, but it appears this firefox addon SelBlocks has functions called loadXmlVars and loadJsonVars. Found reference to this in a similar question. GL with that client.


1

Only you can really answer that. A good testing framework that can run functional test automation is software, like any other; you'd have to write it and maintain it, but you might find it easier to add tests when you don't have to worry about flakey record-and-playback, and once you have a decent framework, other developers can pitch in and write tests ...


1

As always, it depends. If the application developers have been building unit and integration automation that runs with each build, you aren't as far behind as you would be if no low-level automated checks existed. QA is usually in charge of automated GUI checks and may also be in charge of some of the high-level headless automated checks (such as API ...


1

Usually developers write unit tests (because unit tests are close to the code developers know well). Automated GUI test use different instrumentation (Selenium?) so need a bit different skillset. Sometimes might be even developed in different language: because GUI tests are inherently slower, it might make sense to use language like Python which allows you ...


1

Microsoft Test Manager (MTM) supports attachments and it is integrated with Team Foundation Server (TFS). While you executing the test cases you can add screenshots or files to the failed steps.


1

Your code logic seems okay but there are some parts which need to be changed. First when you want to search a non static value in dynamic id, searched value should match correct pattern so your pattern can not find expected span , this code line should be changed to "By.CssSelector("span[id^='-chosen-']"));" //comment : I hope there is not any span which ...


1

Whenever I am writing automation around "New" logins, you really have to ask yourself: "Is this new user necessary?" a lot of times in my earlier years I would create a new user each time I did a test, and realized I only needed to create a few to handle all of my testing steps. This may not be the prettiest answer, but following best practices will minimize ...


1

Its very hard to answers questions like this, without being able to debug and run the test code it self, but here is a try going over your code top to bottom: Why are you using a sleep? Thread.sleep(1000*4); Here you want to wait for the element to be visible as describe in the post: ...


1

From your question I'm assuming that you want to run your automation tests built using java one after the other using a batch file. Yes, you can run the tests using a batch file. Open a notepad and add your tests (binaries) like below and save is as YourTestFilename.bat echo off % java C:/Test/Test1 % java C:/Test/Test2 % java C:/Test/Test3 Or % java ...


1

I'm not sure what testing library (if any) you are using to execute the tests; I'm going to assume jUnit here, because that's what most people use for testing in Java. Similarly, I'm not sure if you're using ant or maven with this project. Using JUnit You can invoke the JUnit test runner from the command line using the following: java -cp ...



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