Tag Info

Hot answers tagged

4

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


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

A few tips: It sounds like you have the credentials of all your 20'648 customers available in plain text. If you do I'd like to know the name of the company so I never ever do business with them. If you have a sensible login system the password is hashed and salted, so you cannot test an arbitrary user login without an absolutely giant amount of computing ...


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

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

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

Given that there is disagreement, the answers this question attracts will probably gravitate toward sometimes rather than yes/no. My opinion is that page objects should have assertions in their constructors, so that my code doesn't offer page methods for a page I never reached. In a made up example, I don't want to return an account page object when I've ...


2

Although not a 100% similar alternative, but you could look into running real browsers headless. Some articles to get you started: http://www.chrisle.me/2013/08/running-headless-selenium-with-chrome/ http://www.installationpage.com/selenium/how-to-run-selenium-headless-firefox-in-ubuntu/


2

Docker Selenium is an official Docker image that starts a headless selenium grid on your local machine: Selenium Grid Hub $ docker run -d -p 4444:4444 --name selenium-hub selenium/hub:2.44.0 Chrome and Firefox Nodes $ docker run -d --link selenium-hub:hub selenium/node-chrome:2.44.0 $ docker run -d --link selenium-hub:hub selenium/node-firefox:2.44.0 ...


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

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

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


1

I hope your team understands that you cannot "assure" quality by testing - quality must be designed and coded in, and "A" in QA stands for "Assistance" - you can provide information what is current status of quality, if it improves or not, and suggestions how to improve your internal procedures to improve quality in the most effective way. Also, for a ...


1

First of all in agile environment there should not be any question related to responsibility of QA work. You all guys are more or less equally responsible for testing. Where developers should take care of writing unit tests along with Automated UI tests. For my organization we are using Node.Js based UI testing tool (Protractor) so the developers are quite ...


1

Not sure what language is being used in opkey, JMeter's WebDriver Sampler currently supports only JavaScript via JSR223 / Mozilla Rhino See The WebDriver Sampler: Your Top 10 Questions Answered to learn how to implement the most common activities in JavaScript. I believe that some refactoring will be still required, however using regex replacements if may ...


1

For the moment it is not possible to record these scripts. There is Selenium IDE project which can record browser actions and export the recording into several programming languages, however supported languages list doesn't include JavaScript. Besides Selenium IDE produces quite "dirty" code. So I would suggest developing scripts from scratch. A lot of code ...


1

What you are overlooking is one simple fact: if solution what you half-proposed was feasible, Google engineers would be working to make it available for last few years. And in my experience they are VERY smart, it is futile to try to outsmart them (at least for me - maybe you are much smarter). Browsers ARE genuinely different, and packing all the ...


1

It is not a typical load testing project when you need to create 100 thousand virtual users. More than half of all web load tests are conducted with just a thousand virtual users or less, because higher load is not actually anticipated on the target web site in production. Note that we are not talking about the number of users per day or hour. Those are ...


1

To perform a 'mouse hover' action, you need to concatenate all of the actions that you want to achieve in one go. With the actions object you should first move the menu title, and then move to the sub menu item and click it. Below is my attempt at sample code to perform Mouse hover action using your paths; Actions actions = new Actions(driver); ...


1

How can I find that the input is constant when its a complex piece of code like UI of web-page (like a hash?) Depending on how you use Jenkins, there may be a build number associated with the test. You can look for code changes associated with that build. How can I Get that input data from Jenkins or other place? For UI automation of web-sites ...


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

Ok, this isn't a bug. The XPath, when searching in the context of an element, must start with a dot. So this works: htmlControl = htmlDiv.FindElement(By.XPath(".//label[text()='Naam']/following-sibling::div[1]//select"));



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