All Questions

383
votes
41answers
117904 views

javascript test for existence of nested object key

If I have a reference to an object - var test = {}; that will potentially (but not immediately) have nested objects, something like - { level1:{level2:{level3:'level3'}} }; what is the best wa...
85
votes
30answers
47668 views

How can test I regular expressions using multiple RE engines?

How can I test the same regex against different regular expression engines?
377
votes
31answers
325170 views

How to emulate GPS location in the Android Emulator?

I want to get longitude and latitude in Android emulator for testing. Can any one guide me how to achieve this? How do I set the location of the emulator to a test position?
64
votes
19answers
119058 views

How can one check to see if a remote file exists using PHP?

The best I could find, an if fclose fopen type thing, makes the page load really slowly. Basically what I'm trying to do is the following: I have a list of websites, and I want to display their favi...
242
votes
26answers
72286 views

Should I test private methods or only public ones?

I have read this post about how to test private methods. I usually do not test them, because I always thought it's faster to test only public methods that will be called from outside the object. Do yo...
657
votes
31answers
281236 views

Unit Testing C Code

I worked on an embedded system this summer written in straight C. It was an existing project that the company I work for had taken over. I have become quite accustomed to writing unit tests in Java ...
41
votes
15answers
147134 views

Switch tabs using Selenium WebDriver with Java

Using Selenium WebDriver with JAVA , I am trying to automate a functionality where I have to open a new tab do some operations there and come back to previous tab (Parent). I used switch handle but it...
166
votes
14answers
142370 views

Best way to compare 2 XML documents in Java

I'm trying to write an automated test of an application that basically translates a custom message format into an XML message and sends it out the other end. I've got a good set of input/output messa...
84
votes
10answers
57370 views

How can I measure the speed of code written in PHP?

How can I say which class of many (which all do the same job) execute faster? is there a software to measure that?
58
votes
4answers
22736 views

How to Re-run failed JUnit tests immediately?

Is there a way to have an JUnit Rule or something similar that gives every failing test a second chance, just by trying to run it once again. Background: I have a large Set of Selenium2-WebDriver tes...

Previous Next