I have a project with a lot of classes that use Nhibernate. Now I want to use NUnit to test those classes. Are there specific things I need to consider?
I'm in the process of learning SQL, and I need a way of verifying that my SQL queries are valid (i.e. no syntax errors). I also would like to check what results they yield on a test database of my choosing and structure.
I'm using embedded firebird in my C# .NET application, so I don't really have any tools to work with. Anyone have any tips? Perhaps there are SQL administrators/query IDEs out there that work with Firebird?
I'm trying to use gorm find method on my domain class, inside of an Spock Integration Spec.
My code:
class myDomainClassSpec extends IntegrationSpec{
...
def 'my test'() {
when: ...
then:
MyDomainClass.find { id == 1 }
}
...
}
This fails, throwing:
groovy.lang.MissingPropertyException: No such property: id for class: grails.gorm.DetachedCriteria
If instead I code: MyDomainClass.findAll().find { id == 1 } it works.
Any ideas??
Hi,
I have just ported phoneME to our MIPS platform. I feel it runs not that fast; however, is there any performance test suite I can run against to get some quantitative measurement of the performance? I might need to pick some weak points for optimization. In addition, what are common criterions used to evalute a JVM ?
Android provides various packages for testing like
AndroidTestCase
ApplicationTestCase
InstrumentationTestCase
ActivityInstrumentationTestCase2 ActivityTestCase
I need to know how to decide which package is best suitable for testing my app. Some info is provided in this link
http://developer.android.com/reference/android/test/package-summary.html
But I need more clarity on this...
When developing iPhone apps with Xcode 3.2.1/Objective C, which unit test tools are recommended?
I am new to the iPhone OS platform and I am interested in your best practices.
I am building a GAE site that uses AJAX/JSON for almost all its tasks including building the UI elements, all interactions and client-server requests. What is a good way to test it for highloads so that I could have some statistics about how much resources 1000 average users per some period of time would take. I think I can create some Python functions for this purpose. What can you advise? Thanks.
I have been asked to write manual test scripts that address several batch processes. I am having a difficult time sorting out how to write them. Does anyone know of any? Or have any?
HI, I am trying to build an certification Test engine in my website techification.com
Can any one please help me, what are the things That i need to consider before I start design and implementation.
This application will be for all the users who are willing to take Sun certification or any certifications and they can come to techification.com and take the online exam and get evaluated before they take the actual Exam.
I have an x64 managed C++ class that needs to be tested using Visual Studio 2008. This class links to a x64 unmanaged lib
I'm not able to run my my tests because vstesthost.exe (the exe Visual Studio hosts my test) is x86 and not x64.
Ideas? the error generated is
rror: System.BadImageFormatException: Could not load file or assembly ... or one of its dependencies. An attempt was made to load
In SQL Server, it is possible to test the result of a stored procedure to know if the result return rows or nothing ?
Example :
EXEC _sp_MySp 1, 2, 3
IF @@ROWCOUNT = 0
BEGIN
PRINT('Empty')
END
ELSE
BEGIN
PRINT(@@ROWCOUNT)
END
But @@ROWCOUNT always return 0 so maybe is there another way of doing this ?
hi,
I have some problem when i test In-App purchase,there is problem of iTunes connection,so
i want to know that can we use sandbox Environment without itunes connection.Please help
me out for this problem.
Thnx
I'm testing some Java code that uses an android Bundle, and am getting a runtime exception whenever I create a Bundle in the unit test. The error I'm getting is java.lang.runtimeException at android.os.Bundle when I create the Bundle. It is running with the android SDK in the run configuration.
Has anyone run into this problem before?
Thanks!
I'm looking for test vectors for AES-256 in CBC mode with essiv:sha256 for the IV-generation,
and for testvectors for AFMerge. Both are used in cryptsetup (a Linux program for disk encryption.)
I am looking to skip a certain statement in my unit tests eg:
if (MessageBox.Show("Are you sure you want to remove " + contact.CompanyName + " from the contacts?", "Confirm Delete", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.Yes) == MessageBoxResult.Yes)
is there an attribute i can place above the statement to avoid the unit test executing it?
Hallo all,
My director told me that there is a Unit Test framework for Visual Studio from Microsoft, but didn't know what is the name of this tool. Could anyone of you give a hint on it?
Thanks in advance,
John
How do you unit test your T-SQL? Which libraries/tools do you use?
What percentage of your code is covered by unit tests and how do you measure it?
Do you think the time and effort which you invested in your unit testing harness has paid off or not?
If you do not use unit testing, can you explain why not?
In Microsoft SQLServer, it is possible to test the result of a stored procedure to know if the result return rows or nothing ?
Example :
EXEC _sp_MySp 1, 2, 3
IF @@ROWCOUNT = 0
BEGIN
PRINT('Empty')
END
ELSE
BEGIN
PRINT(@@ROWCOUNT)
END
But @@ROWCOUNT always return 0 so maybe is there another way of doing this ?
I have to test a web app and its API for UTF-8 strings.
Webapp has a text field and its API has corresponding getter method, I have to make sure UTF-8 will work, how do I do that?
Isn't it true that every assert statement can be translated to an Assert.IsTrue, since by definition, you are asserting whether something is true or false?
Why is it that test frameworks introduce options like AreEquals, IsNotNull, and especially IsFalse? I feel I spend too much time thinking about which Assert to use when I write unit tests.
I got this event handle and how can I do unit test for this
public class MyLearningEvent
{
private event EventHandler _Closed;
public event EventHandler Closed
{
add
{
_Closed -= value;
_Closed += value;
}
remove
{
_Closed -= value;
}
}
public void OnClosed()
{
if (_Closed != null) _Closed(this, EventArgs.Empty);
}
}
Just modified code so that much clear
Thanks
I have a method call that generates following output depending on the resultset returned from database...
The data is (pointsdate, points)
9/1/09 , 190
11/1/09 , 77
12/3/09 ,88
2/13/10 , 97
So how do I create NUNIT test for this? What kind of things I could check for? What could be all the possible combination of tests?