Questions tagged [test-framework]

61 questions
73
votes
3 answers

What's the difference between assertion library, testing framework and testing environment in javascript?

Chai is an assertion library. Mocha and Jasmine are testing frameworks. and Karma is a testing environment. I've already read Difference between available testing frameworks: mocha, chai, karma, jasmine, should.js etc.
Nader
  • 933
  • 1
  • 7
  • 8
13
votes
5 answers

QTP vs Selenium - Compare

I have an application/product which is created using .net technologies. This product has a GUI, which connects to a DB using a Web API (SOAP on an application server). Majority of the tests are executed for the values in the DB, while the others may…
gagneet
  • 35,729
  • 29
  • 78
  • 113
10
votes
3 answers

Can I create a custom TestContext timer for UnitTest/LoadTest in Visual Studio?

A few of my UnitTests have a Sleep that is defined in a loop. I want to profile not only each iteration of the test, but the overall time for all iterations, in order to show any non linear scaling. For example, if I profile the "Overall", it…
esac
  • 24,099
  • 38
  • 122
  • 179
7
votes
1 answer

How does TopCoder evaluates code?

If you are familiar with TopCoder you know that your source-code gets a final "grade/points" this depends on time, how many compiles, etc, one of the highest weighted being performance. But how can they test that, is there some sort of simple code…
Carlos
  • 5,405
  • 21
  • 68
  • 114
6
votes
5 answers

Use rspec to test C/C++ program

Is Rspec ruby/rails specific? Is it possible to use it as a test framework for C/C++ program?
pierrotlefou
  • 39,805
  • 37
  • 135
  • 175
5
votes
1 answer

How to pass data from a UnitTest to a LoadTest?

During my UnitTest, I am creating data that needs to be referenced in future UnitTests. For example: [TestMethod] public void CreateOrder() { Order order = new Order(); int orderNumber = order.Create(); // return…
esac
  • 24,099
  • 38
  • 122
  • 179
4
votes
2 answers

TestNG vs Spock for Automation

We are looking at implementing a test framework and curious as to which framework to use. We are choosing between TestNG and Spock. This is going to be a UI Automation framework so it should handle as little mock data as possible. Our codebase…
TIMBERings
  • 361
  • 1
  • 4
  • 17
3
votes
1 answer

Testing Event driven behavior

There seems to be a ton of advice for this sorta thing in the context of a GUI application. I think my particular scenario is different enough to warrent me asking. To sum up my question how do you test events? Now for the long winded explanation.…
Robert Snyder
  • 2,399
  • 4
  • 33
  • 65
3
votes
2 answers

How to make Test-Framework to report about the reason of QuickCheck's fail?

For example I have a testing code like this: import Data.Decimal import Data.Ratio import Data.Word import Test.HUnit import Control.Applicative import Debug.Trace import Test.QuickCheck import qualified Test.QuickCheck.Property as P import…
s9gf4ult
  • 862
  • 6
  • 20
2
votes
3 answers

What is a pure in-browser JavaScript test framework?

I want a unit-test framework for JavaScript which runs in the browser. Not with an external browser-automation system as in Selenium, or a non-browser JS environment, but just one .html which loads the test framework and test suite and displays the…
Kevin Reid
  • 37,492
  • 13
  • 80
  • 108
2
votes
0 answers

Low level JSON manipulation library for Java

I am looking for a 3rd party library which can manipulate entities stored as JSONs. This is intended to be used in the (cucumber) test framework to specifically tailor predefined JSON requests to a specific situation. For example let`s consider the…
2
votes
1 answer

testcafe works properly for individual test but all tests

I'm new in testcafe. Here is the issue I confronted recently. Please shine some light: Say I got four testcafe tests, say A, B, C and D It works smoothly if I run them one by one, testcafe chrome A.js, testcafe chrome B.js and so on Now I grab all…
2
votes
1 answer

How to run C++ tests based on GoogleTest with TFS 2015

We have a Visual Studio 2015 solution containing some C++ projects and some tests based on Google Test Framework. Now I would like to run those tests with the quite new TFS 2015 build features. I know that there is the "Visual Studio Test" build…
Sebastian
  • 173
  • 10
2
votes
5 answers

JUnit Testing for Automated Testing Scripts?

I recently joined this organisation that I am currently working at that has asked me to manage a project to re factor, extend and maintain an existing Automated Testing Framework written in java, which uses a keyword driven framework and RFT. I have…
sjt
  • 1,607
  • 11
  • 14
2
votes
1 answer

Haskell Test.Framework specify number of tests to run from command line

This documentation implies that Test.Framework can be run with command line arguments. There is a function defaultMain :: [Test] -> IO () but also the function defaultMainWithOpts :: [Test] -> RunnerOptions -> IO () which is A version of…
Justin Raymond
  • 3,413
  • 2
  • 19
  • 28
1
2 3 4 5