Tag Info

Hot answers tagged

11

The right time depends on the development process you are following. Using a simplified interpretation of an agile process would probably work best - pretty much anything that preaches interative development with fast & often builds + test execution after every build will do just fine. One thing to have in mind is Test-driven development which mandates ...


9

It's certainly possible - that's the way I and many others here became testers. As Som Ghosh says, you will need to mention in your applications for test positions that you have worked in testing as well as development. I'd suggest you include details of the kind of testing you've done and the scale of the projects that you tested. I would recommend that ...


8

I have had some luck using Grinder. It is Java based but you can also write your scripts in Jython or Clojure. You said that you would like to take advantage of your team's current Selenium scripts and expertise performance testing. You did not describe your regression test scripts, but you may want to reconsider whether they are appropriate. In ...


7

TestNG is appropriated for functional testing (and unit test, by the way). For performance test, Grinder is probably a good choice: http://grinder.sourceforge.net/ The Eclipse plugin: http://code.google.com/p/grinderstone/


7

Look at the Wait commands rather than sleep - a search on this site or Google will give you lots of examples


6

I assume that you are not using stand-alone jar of selenium. Can you download Selenium Server Standalone jar and use it in eclipse. This is the only jar you need from selenium-java as it encompasses all required class files. You can remove other Selenium related jars from your eclipse.


6

Try Jmeter to test performance of your app.


6

Link to my blog where I discuss this in more detail. Inconsistencies here, are you using Selenium IDE or WebDriver with Java? Assuming you are using WebDriver with Java and not Selenium IDE(as you state in your post) You can try using: /* * Copyright (c) 2010-2012 Lazery Attack - http://www.lazeryattack.com * * Licensed under the Apache License, ...


6

Java My experience is, that the basics of Java suffice to start developing test cases with Selenium 2 / WebDriver. Myself started developing of Selenium test cases with a basic knowledge about Java. The more test cases I wrote and solutions I had to find, the more I leaned about the programming language. Unit Testing Framework (JUnit, TestNG) Write some ...


5

SoapUI is a nice tool to test (not only SOAP!) webservices, define several types of assertions on the responses, build functional tests and also derive load tests from functional tests. As a (super nice) plus, mostly everything in SoapUI can be scripted with Groovy, which allows for even more flexible testing, and finally, there is also a Maven-Plugin ...


5

JUnit is also an option if you want to test functionality.


5

If you are looking for automated UI testing using java then Selenium is worth having a look at....


5

In your comment you mentioned that the element is within a <frameset> \ <frame>. To work with any element within a frame, you need to first switch the context of the driver from the main page to that frame: driver.switchTo().frame("foo"); In this example "foo" would be the name of the iframe. You can also do it by index if the frame has no name ...


5

There's a good thread here on Stack Overflow. Their answer is to use java sockets: Socket socket = null; boolean reachable = false; try { socket = new Socket(hostnameOrIP, 80); reachable = true; } finally { if (socket != null) try { socket.close(); } catch(IOException e) {} }


4

This sounds similar to a problem I dealt with recently using watir-webdriver (which, if you're using webdriver will be similar). In my case I was able to resolve/ workaround by sending a click at the element (to select it) before using sendKeys. So I suggest you could try sending a click to the element before using sendKeys. :)


4

I have this code running always when I instance IE8 on my tests. Works fine for me. #region SSL workaround for IE if (driver.GetType() == typeof(InternetExplorerDriver) && driver.Title.Contains("Certificate")) driver.Navigate().GoToUrl("javascript:document.getElementById('overridelink').click()"); #endregion


4

If your using Java, here is the JavaDoc If your using Ruby, here is the Ruby Docs If your using Python, here is the Python Docs If your using .Net, here is the .Net docs This will contain all of the functions that Selenium uses.


3

This question comes up a lot. Here is a possible solution, but it will require some additional development. You could use a customized HTTP proxy that acts as a pass-through filter except when it sees an HTTP 401 response. In the latter case, the proxy would respond with authentication credentials of your choosing. Here is how you might do it, in steps: ...


3

The combo of JUnit and Selenium would handle most if not all of your needs, especially if your app is browser based.


3

For the SOAP endpoints, you might be able to use what this person did along with SoapUI. It does SOAP/REST/JMS, and may also work for the other kind of endpoints (like the 'talking to each other' reference). Hm. Re-re-reading the question, you also ask about config/launch/monitoring. I didn't really answer that, did I? Given that you can get Jenkins to ...


3

org.testng.Assert.fail("you wandered onto the wrong path");


3

Mockito's documentation is actually pretty awesome, you should it give a try. There's also the mockito blog that covers some ideas and features behind mockito


3

You didn't say how much precision you need -- do you just want to know which is faster, or do you want to know how much faster? Here are some factors that interfere with benchmarks like that: Clock granularity. I assume you will use something (System.currentTimeMillis, System.nanotime(), or a stop watch or whatever) to measure the time interval. The ...


3

Some people may prefer to use a new Driver instance for every test in order to avoid one test's side-effects from impacting another test. I have never run into that problem. For efficiency reasons, I try to re-use a single Driver for all tests in a suite.


3

I generally use keyboard shortcuts with Robot class in Java in order to emulate what I would do manually. In IE 8, saving a file would be three steps: 1) Click link or Press Enter key on the link. 2) type S. 3) Hit Enter. I start with doing the same action manually for the first test case ie. save in a certain folder, cleanup the folder and click the ...


3

Our company runs Linux on our production machines. Rather than using the default distribution, we install only those packages necessary to run our software, because each additional, superfluous packages increases the risk that something will go wrong, e.g. a security hole or a resource problem. Similarly, you could argue that running tests in your ...


3

Defect isolation The stacktrace Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2 at jxl.read.biff.SheetImpl.getCell(SheetImpl.java:288) at seleniumscripts.Excelreaddata.main(Excelreaddata.java:38) suggests that you are trying to access a cell that does not exist in the given sheet. I cannot match line numbers in stacktrace wuth ...


3

It's in git so you could do a sparse checkout to get the JavaDoc part of the repo only. This blog post about sparse checkouts goes through it in a reasonable amount of detail: http://blog.quilitz.de/2010/03/checkout-sub-directories-in-git-sparse-checkouts/comment-page-1/#comment-3146 Or you could download them from maven central: ...


3

Actually, I can see two questions in your post. Is it better to test SOAP Web services backed by EJB using Java or C#? Actually, Web service stack of technologies was designed to support interaction between application written in different technologies, so it does not matter how the Web service was implemented. I.e., Web service implemented in Java can by ...


3

You can press F12 key in chrome and right click on the element you want to get and click on inspect element. Now you shall see the console with corresponding attributes,Now right click at the console will give you required xpath. Also Firebug an adddon of mozilla is helpful



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