Can somebody give me a link to PKCS#11 test suite? This may be a simple utility or part of big project no matter.
I now only this one: Netscape PKCS #11 Test Suites
hello.
What is the pythonic way to test if there is a tuple starting with another tuple in collection? actually, I am really after the index of match, but I can probably figure out from test example
for example:
c = ((0,1),(2,3))
# (0,) should match first element, (3,)should match no element
I should add my python is 2.4 and/or 2.5
thanks
I use apache common lang to unescape a block of html text which contains ,
I want to filter out blocks that contains only whitespaces.
But I can't test the as a whitespace. It's not in the normal whitespace list(http://en.wikipedia.org/wiki/Whitespace_character), and I try to print its Hex form by calling Character.getNumericValue which return -1.
  should be a whitespace,isn't? But How can I test it?
I recently start playing with Openshift and I am wondering if there is a way to deploy ( test) your application on local host before you upload it on openshift.
Thing is that every time I make change on the code, it takes some time to push it to openshift and check if it works.
Google app engine SDK ( for Eclipse), for example, includes a web server application (app engine simulator) that allows you to test your app locally before you deploy on google.
thnx
Fotis
Hi,
Is it possible to JUnit test if wiring by Spring is succesfully?
I would like to do this by reflection. Like: get all beans with id *Controller and test if the fields *services are not null?
Thank you!
Why does
<xsl:if test="<XPATH to boolean value here>">
...
</xsl:if>
ALWAYS return true?
Since boolean can be 0,1,"false" and "true" by definition, the ONLY way to test for a boolean value is to do string comparison against these. This can't be right.
Is there a way to know when code is being called from running a test method?
bool MyMethod()
{
if ( /* are we running a test? */ )
{
return true; // otherwise this will fail from the automated build script
}
else
{
// run the proper code
}
}
and please spare me the "this is a really bad idea" comments :)
When I try to use assertNotLesser or assertNotGreater I get compile error .. and eclipse suggest me to create a new method called like this .. http://junit-addons.sourceforge.net/junitx/framework/ComparableAssert.html I found it here I never used these options before but I need to write this test, I can do it jmock as well but I don't know how .. I need to compare my expected results let say 0, if the real result is greater that the test should fail.
Is there an easy way to detect if you're running in the context of a Visual Studio Test as opposed to debug or release?
Here's the scenario - we have a factory class that we use heavily throughout our existing codebase, and I figured instead of refactoring it out in each class so we can substitute the default factory with one that would return mock/fake objects, I could add something in the factory class itself to return those mock objects if it detects it's running in "test" mode.
With PHPUnit it's quite easy to test raw PHP code, but what about code that heavily relies on cookies? Sessions could be a good example.
Is there a method that doesn't require me to setup $_COOKIE with data during my test? It feels like a hacky way of doing things.
Why does
<xsl:if test="<XPATH to boolean value here>">
...
</xsl:if>
ALWAYS return true?
Since boolean can be 0,1,"false" and "true" by definition, the ONLY way to test for a boolean value is to do string comparison against these. This can't be right.
I'm coming from a Ruby/Rails world. I'm getting testing set up on a Sinatra project (with Rack::Test). I usually use Fixtures in testing. Is there an equivalent for Sinatra?
How do people set up their Sinatra test suites (outside of the basic helloworld example that is the only example I can find for Sinatra tests).
Thanks!
Hello There,
I am building an Android application(Hello world) In netbeans IDE. Its building properly and I can able to run in the emulator also.
But while creating the Junit test and running the test I am getting the
Java.lang.NoclassdeFound error.
How can I fix this problem.
Thanks in advance
Chandru K
I'd like to create rule to be able to do something like this
@Test
public void testValidationDefault(int i) throws Throwable {..}
Where i is parameter passed to the test by @Rule.
However I do get
java.lang.Exception: Method testValidationDefault should have no parameters
is there any way to bypass it and set the i parameter in the @Rule?
Hi,
The connection string in my app.config for my C# project looks like
Data Source=.\SQLEXPRESS;AttachDbFilename='|DataDirectory|\EIC.mdf';Integrated Security=True;User Instance=True"
I am writing unit tests for the project and have the set the test run configuration to copy the EIC.mdf, but I do am not able to reference the Deployed copy of EIC.mdf to be referenced by the app.config I created for the test project. If I set it to
Data Source=.\SQLEXPRESS;AttachDbFilename='EIC.mdf';Integrated Security=True;User Instance=True"
It still does not find the mdf file.
Hi recently I finished my WM6 Pro.6.1 application and happily learned that to put it into marketplace, it has to pass some tests.
-Application Verifier
-Microsoft Hopper Test Tool for Windows Mobile 6.0, 6.1, and 6.5
I use VS 2008 and windows mobile 6.1 and I couldnt run none of these tests, Hopeer tool has a FocusApp c++ application which I must build and run before testing, but its a VS 2005 project and I couldnt run it on VS 200..and without it I can't test anything.
any ideas how can I build that for VS2008?
I currently have a script that scrapes proxies off websites, but I'm just wondering what the best way to test them would be, I want to test and sort into different categories like
All
ALL HTTP
ALL SOCKS
Socks 4
Socks 5
HTTPS
HTTP Connect
I have two classes:
public abstract class AbstractFoobar { ... }
and
public class ConcreteFoobar extends AbstractFoobar { ... }
I have corresponding test classes for these two classes:
public class AbstractFoobarTest { ... }
and
public class ConcreteFoobarTest extends AbstractFoobarTest { ... }
When I run ConcreteFoobarTest (in JUnit), the annotated @Test methods in AbstractFoobarTest get run along with those declared directly on ConcreteFoobarTest because they are inherited.
Is there anyway to skip them?
How do I test to see if links are external or internal? Please note:
I cannot hard code the local domain.
I cannot test for "http". I could just as easily be linking to my own site with an http absolute link.
I want to use jQuery / javascript, not css.
I suspect the answer lies somewhere in location.href, but the solution evades me.
Thanks!
While testing a Sinatra app with Cucumber, Rack::Test was not able to find the cookie that my app created, even though I could clearly see that it was in the Rack::Test::CookieJar object by dumping it with "p".
Is there a good way to do this? I'm writing an extension that interacts with a website as a content script and saves data using localstorage. Are there any tools, frameworks, etc. that I can use to test this behavior? I realize there are some generic tools for testing javascript, but are those sufficiently power to test an extension? Unit testing is most important, but I'm also interested in other types of testing (such as integration testing).
I'm going to use Selenium RC to replay some tests for a website. I want to kickoff those tests from a Java test framework so that I get nice reports how many tests failed, etc.
Which java test framework should I use? Is JUnit the preferred framework for this purpose?
when i use rspec with capybara to test my rails js page , I got the following error:
"Selenium::WebDriver::Error::WebDriverError: Could not find Firefox binary (os=linux). "
Actually my rails script are all written on the linux server, where there is on brower installed, and any desktop software is not supported on the server (since no X11 is installed).
How can I test js in this situation. Or is there and brower that works without X11 installed like wget? Thanks.
[root@jiaoyou ~]# test 1 = 1 -a 0 = 1
[root@jiaoyou ~]# if [1 = 1 -a 0 = 1]then echo 1;else echo 2;fi
-bash: syntax error near unexpected token `else'
Why test doesn't give any output and the if statement fails?
Can someone point out what's wrong here?