Skip to main content

Posts

Showing posts with the label testing

Easiest way to simulate no free disk space situation?

I need to test my web app in a scenario where there’s no disk space remaining, i.e. I cannot write any more files. But I don’t want to fill my hard drive with junk just to make sure there’s really no space left. What I want is to simulate this situation withing a particular process (actually, a PHP app).

Android : testing a service

we are actually developping an audio service (in the android sense of the term) and we have quite of lot of tests to cover many aspects of our APIs. But we are actually wondering for good things to do to test a service efficiently. So this question is quite open: how would you test an android service ? We are currently using JUnit + EasyMock on test both on real devices and Continous Integration server (via an emulator). Any suggestion is welcome, thx in advance. PS : we have been searching SOF for similar threads but we just found a few cues in those depleted threads : Instrumentation Test case how to bind service from activity Android Service Testing Why is an Android Service not singleton when testing?

Robotium side scroll not working for me

I want to scroll left/right on an android application using a Robotium/Junit test. There is a function in Robotium called: solo.scrollToSide(int); But, what do I put for the int? what is the value for RIGHT and what is the value for LEFT? I tried 0,1,2,3, and 4... no luck :( Thanks EDIT: I found the answer. RIGHT is 22 and LEFT is 21.

How do you mitigate risk when introducing multivariate testing into a dynamic web application?

My company is engaging with a multivariate testing vendor (I can't disclose which one just yet), and I am being asked to integrate their system into our flagship B2C commerce site. Usually, the word "integrate" is a heavy-duty term. However, here it means to add a <script> tag on several views, and then be out of the loop from that point forward. The mulitvariate experiments will be set up by our marketing department (and/or the vendor). Our development team will not be involved in that, and may not even be aware when it's happening. Essentially, I am being told to deliberately add a JavaScript-injection attack vector to our flagship application... and hope for the best. My concerns are not so much with malicious code as they are with inadvertent screw-ups. Our CSS and basic page layout is a mess already, and I anticipate catiching the heat when someone else's multivariate experiment blows up the home page look-n-feel, etc. Much more importantly, ther