Questions tagged [funcunit]

FuncUnit is a free, open-source web-application testing framework that uses a jQuery-like syntax for its API. Tests are run in the browser, with an IDE also in development.

FuncUnit is a free, open-source web-application testing framework that uses a jQuery-like syntax for its API. Tests are run in the browser, with an IDE also in development.

FuncUnit is supported by all modern browsers including IE6 and above, and is part of the full stack JavaScript framework JavaScriptMVC.

FuncUnit's features include:

  • Functional Testing — Test complex behavior like drag-and-drop.
  • High Fidelity — Create identical events that a mouse and keyboard create. Run tests in a real browser.
  • Automated — Test multiple browsers from the command line.
  • Easy to Write — Write, run, and debug tests in the browser, without configuring a server or other tool. Write tests in a familiar jQuery-style API.
  • Free — It's open source.
  • Multi-system — Runs in IE 6+, FF 2+, Safari 4+, Opera 9+, Chrome, on PC, Mac, and Linux.

Links:

15 questions
11
votes
2 answers

How to suppress FuncUnit unit errors in tests?

I have a FuncUnit test case wherein I open a webpage using F.open("http://www.example.com"); There is a known issue in our page that approximately one in around 20 times the webpage would not load for whatever reason. I want to retry when it does…
Sathish
  • 409
  • 8
  • 24
10
votes
3 answers

unit testing JS app with page reloads and iframes

I have an app for which page reloads / navigation and iframes are crucial and those part seem very tricky to cover with unit tests. I want to be able to write smt. like this: it('should fire appropriate callbacks on start and page reload',…
Georgii Ivankin
  • 2,702
  • 2
  • 23
  • 35
2
votes
0 answers

FuncUnit failing to run tests with PhantomJS

I've been trying to create a series of functional unit tests to be run on a Node.js web server using PhantomJS as a browser, testing functionality on another site. I've had success using FuncUnit in the past to run functional tests from the target…
Dan McElroy
  • 426
  • 4
  • 19
2
votes
0 answers

Unable to type into number input with FuncUnit

I'm using FuncUnit with Jasmine to test my web application, and one issue I've run into consistently relates to typing into an input of type number.
Dan McElroy
  • 426
  • 4
  • 19
2
votes
0 answers

Using FuncUnit .click() within frame

I'm trying to simulate a user click on an element within a frame tag using FuncUnit.prototype.click() and am having no success. I've tried chaining the click() call like so, S('#main').contents().find('#Planning').visible('Planning tab…
Lfree
  • 21
  • 1
1
vote
2 answers

How to make funcunit close the new browser window after tests

I'm using funcunit for testing my JavascriptMVC application. It opens a new browser window where it runs my application. I wish it also closed the window after tests. How to do that?
raimohanska
  • 3,265
  • 17
  • 28
1
vote
2 answers

How to set an element's property using Funcunit in qunit window (test window)

I am using FuncUnit with qunit to test an application. I would like to set selected property of an option of