Hot answers tagged

4

I don't have 50 rep to ask you in comments, but... Did you try changing the line endings? Maybe Sonarqube is expecting either linux or windows line endings and the file was saved with the opposite.


3

The Java Webdriver API has two methods for locating elements: findElement and findElements. findElement returns a single element matching the specified criteria (and otherwise throws an exception). findElements returns a list of matching elements, or otherwise an empty list. With the Java API, you would solve the problem by calling findElements and then ...


3

Phil is right with how customizable it is. After a quick search, I found a couple of export/import plugins. A more important question may be however, why are the testers using a separate instance from the developers? Doing a constant export/import is just going to create additional overhead. It's all fine and well if you update once, but, wouldn't the ...


2

Take a look at SonarQube. It has some good code complexity metrics. Since code complexity generally translates to test-ability, it will give you a good idea which areas of the code need refactoring. It also gives you some metrics on unit-test coverage. I find the historical aspect of this metric to be helpful. As code is added and/or refactored, I like ...


2

How about the PHP Mess Detector, it generates all kinds of metrics about the code. Although its focus is not test-ability I think cleaning up the "mess" will lead to much better testable code. Since its a rules based system and open-source you could add more rules that are test-ability specific, maybe its possible to borrow rules from other products.


2

This is my first try to setup Behat Magetest for Magento on my MacOS - my tests run quite well and I want to share my experience. First of all you should download MAMP Pro and Magento, if you did not do it already. It works without MAMP too - but that is how I did it - so feel free to work without MAMP. My final tests are based on the sample data provided ...


1

You can check presence of /td or /tr tag in certain table with XPath. Do remember, that thead can have /td as well. If the table XPath is //table/tbody then XPath of each row is //table/tbody/tr and Xpath of any field could be //table/tbody/descendant::td Additionally, you should not test it for visibility, but for presence in DOM. Visibility ...


1

Important: several problems occur because you copy and paste behat.yml from website to your behat.yml - there are sometimes whitespaces, that you can't see but will effect your behat system!!! You should re-write the behat.yml, the context mentioned in behat.yml is wrong. It should be as follow. default:
 suites:
 default:
 ...


1

For the manual tests, I would suggest a cradle to grave approach witrh as large a business scenario as you can find. No idea about your business terms, but e.g.: Create a user. Log in with the user. Do something with user profile as user like change password. Create a customer/subscriber/item. Add account to cust/item. Add billing details. Add address. Add ...


1

@James From my experience, I can suggest you test plan / strategy. Go in Pragmatic but structure is essential. Use Risk application test matrix. Create Test scenario matrix. Use MoSCoW principle. If needed involve the end user / stakeholder for review application. Later you can review again the test plan and strategy and make improvement from past ...


1

Do you have access to the original requirements? If so, I would suggest you go back to these and build yourself a test plan. Because testing has come at the end of the process, my guess is they also haven't given you enough time to test everything (been there!). I would therefor focus on the high risk and areas of ambiguity. By which I mean, if you read ...


1

Maybe the test playback does not wait long enough for the element to appear, but as you do not give a lot of info about what your are testing and how its a bit of guessing work. I would read up on how to wait for elements with Ranorex: http://www.ranorex.com/support/user-guide-20/test-automation-code-examples.html#c3197


1

This doesn't sound like code you'd want to unit test, since the purpose of it seems only to be interacting with a database. What you want here is integration testing which will verify that parts of your system work together correctly. CRUD tests like this are pretty common integration tests in my experience. It is possible that there is something worth unit ...


1

I've handled this before by killing the process with driver.quit(); and then re-initializing the driver and getting the URL. That will definitely kill the session, because it's running in a new JVM. Since it's the same test, you can still pass strings and integers to the new driver. Simplified Example: driver.quit(); driver = new firefoxdriver(); ...


1

Yes, it definetely makes sense to use it in a language you are comfortable with. PHPUnit has Selenium integration out of the box, did you look at the introduction in the PHPUnit manual? Selenium has its quirks, but is widely used, so there is a lot of information about it available. There are other projects, though, like http://phantomjs.org/. If you are ...


1

If you haven't already, I would suggest investigating the Symfony2 docs, specifically this link as a starting point. http://symfony.com/doc/current/book/testing.html


1

Mantis is totally customisable so you could probably get someone to code a solution up - the database is open and the code is there for you to do whatever you want. It does mean coding in php though...



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