Hi,
I have a program, let's name it a.out, that reads input from a file and writes some output to stdout. For example a file contains the line
2,2
and my program "./a.out file" writes 4 at the screen.
Now in order to be sure that a.out works well after the patch, I am looking for a good regression suite for Linux. I want for every fil...
I want to update a custom user field in QC using the Label of field instead of the name
At the moment we are doing it this way
Set currentRun = QCUtil.CurrentRun
currentRun.Field("RN_USER_03") = 1
currentRun.Post
But I would like to do it this way
Set currentRun = QCUtil.CurrentRun
currentRun.Field("Data Rows Passed") = 4
currentRun...
Hey everyone,
I've been modifying/editing parts of the Android platform, but have run into a problem when trying to test my edits. After making my changes to the platform source, I was able to successfully compile the source - thus creating system.img, ramdisk.img, and userdata.img.
When I go to test this in the emulator, the emulat...
Hi,
In my Python development, doctest has really helped both to
make writing unit tests less annoying, and
integrate usage examples with documentation.
I was wondering, is there anything like this available in the Matlab world? It doesn't have to literally use code comments as a test, but if it had those two desirable qualities, t...
All,
This xpath locator works fine in Firefox:
ctl00_ctl00_mainPage_rightColumn_wholeControl_grid_cell2_3_roleX_DDD_L_LBI2T0
This does not work in IE. I have been trying to convert to CSS locator
without success. The item I am trying to select is Seller. Here's the
whole blob:
<div style="width: 168px; overflow: auto; height: ...
Hey all,
I would like to measure the time it takes for an image to appear on-screen in Java.
I can override the paint() method and see how long that method takes to execute, but I am not sure if the image is on the screen at the end of that method. Basically, I want to fill these requirements:
Time to show an image on-screen is cons...
Hi,
I have this CacheManager class which keeps a static dictionary with all sorts of cached data. However, with this dictionary being static it gets filled up with data from the other unit tests. This keeps me from unit testing whether or not the CacheManager is empty on init, and breaks with the principles of unit testing.
Any ideas ...
Hi All,
I have a database process written in PL/SQL that i would like to test using DBUNIT. The pl/sql program processes data from one table and generates new data into a new table. In some cases it also updates fields on the original table.
I am a bit confused in how i can use dbunit to test this. Reading up on it, it looks like i h...
Hello everybody,
I use Zend_Test for unit testing in Zend Framework. I have configured the bootstrap and testing environment properly then I got this error output from test unit
Failed asserting last controller used <"error"> was "index"
This error happens when I call my DbTable class inside action method such as
public function in...
hey,
i have a simple associations:
class Account < ActiveRecord::Base
has_many :users
accepts_nested_attributes_for :users
validates_presence_of :users
end
and
class User < ActiveRecord::Base
belongs_to :account
end
i just want to run a simple test:
describe 'a new', Account do
it 'should be valid' do
Factory.buil...
Hi,
I know UDP header incorrect lenght is usually part of security testing as this one could crash the target machine. However, how to do that on your own?
...
I have a cglib proxied class because the impl uses both the @Repository @Transactional annotations.
I would like to use spring's reflection utils to set the field value for mocking out one of the fields.
But when reflection utils can not find the field in my class.
How can i get this to work? So then i can mock out the field (collab...
I am nearly finished a web application. I need to test it and find the security issues before it release. Is there any methods / guideline to do this kind of testing? Or is there any tools to help me check my application is ready to go online? Thank you.
...
Hi,
I do not know the difference between penetration testing and other forms of security testing. Could anyone experienced in that area tell me the differnces? I would really appreciate it.
On the side note, is there any testing that simulates DoS? I do not know how to defend against it.
...
I need to make a test lamp server that runs php files on localhost for anyone with direct access to the computer but isn't accessible from any networks. How does one do this?
...
I want to test that the "Create" method on the _eventManager in my controller gets called. When I run my test, I get the following exception:
Test method Baigent.TheDoNation.Application.Tests.EventControllerTest.Create_Post_IfModelIsValidRedirectToSuccessfullyCreatedViewOccurs threw exception: System.ArgumentException: Invalid setup on...
Is it possible to stop an Android app from the console? Something like:
adb stop com.my.app.package
It would speed up our testing process so much. Right now we uninstall/install the app each time to make sure the manual test cases start with a clean state.
...
Hi Friends,
Can you anybody please about inhouse distribution of iphone development
Regards,
sathish
...
Ive been learning MVC2 and MVVM lately and I think it works like this.
ASP.NET MVC2 - Can test the whole web site using unit tests
ASP.NET MVC2 + jquery web service calls - Can no longer just use MSTest unit test. What is the MS product to test the javascript side?
ASP.NET Webforms - Unit Tests are near impossible when the coder does...
RSPec is a great ruby test framework (for test driven development),
anyone knows something like rspec but, for PHP?
...