Tag Info

Hot answers tagged

5

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.


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


4

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

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


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

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

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

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

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

TestNG provide a lot of annotations for thinks like that: @BeforeTest, @BeforeSuite, BeforeGroups and more: http://testng.org/doc/documentation-main.html#annotations It may be look like that: @BeforeTest public void setup() { // open your popup and click on the link } @Test public void test() { // test case } @AfterTest public void tearDown() { ...


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

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

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

I vouch for dstat. Simply start it before running the test, it can save results in csv file so you can later xanalyze it with jmeter results.



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