# Testing

**URL:** https://forums.bitovi.com/c/testing/9.md

[Latest](https://forums.bitovi.com/latest.md) · [Categories](https://forums.bitovi.com/categories.md) · [Tags](https://forums.bitovi.com/tags.md)

---

## [About the Testing category](https://forums.bitovi.com/t/about-the-testing-category/38)

<div class="topic-metadata">

**Author:** [@justinbmeyer](https://forums.bitovi.com/u/justinbmeyer)\
**Replies:** 0

</div>

This is the place for questions specific to DoneJS’s testing libraries: FuncUnit, Syn, and Testee. Want to chat? Join our Slack! Please file bugs and feature requests in the corresponding GitHub repo: FuncUnit Syn Tes…

---

## [What is the best way to clear a a textbox value using FuncUnit](https://forums.bitovi.com/t/what-is-the-best-way-to-clear-a-a-textbox-value-using-funcunit/1081)

<div class="topic-metadata">

**Author:** [@manisha](https://forums.bitovi.com/u/manisha)\
**Replies:** 2\
**Last updated:** [September 13, 2019, 6:11am UTC](https://forums.bitovi.com/t/what-is-the-best-way-to-clear-a-a-textbox-value-using-funcunit/1081 "2019-09-13T06:11:04Z")

</div>

I am trying to clear the text box using following ways: F(’#someID’).type(’’); F(’#someID’).type(’\[ctrl\]\[a\]\[ctrl-up\]\[delete\]’); But using either of these ways the result is sporadic. Sometime it clears the textbox and…

---

## [To compare two arrays in a QUnit, funcUnit test should we use deepEqual()](https://forums.bitovi.com/t/to-compare-two-arrays-in-a-qunit-funcunit-test-should-we-use-deepequal/1076)

<div class="topic-metadata">

**Author:** [@manisha](https://forums.bitovi.com/u/manisha)\
**Replies:** 3\
**Last updated:** [July 2, 2019, 2:13am UTC](https://forums.bitovi.com/t/to-compare-two-arrays-in-a-qunit-funcunit-test-should-we-use-deepequal/1076 "2019-07-02T02:13:43Z")

</div>

To compare two arrays I am using deepEqual, but the issue is that the result of deepEqual is sporadic in nature. Even if the actual and expected results are equal it still fails sporadically. I tried using equal to comp…

---

## [How to change the radio button selection using funcUnit](https://forums.bitovi.com/t/how-to-change-the-radio-button-selection-using-funcunit/1068)

<div class="topic-metadata">

**Author:** [@manisha](https://forums.bitovi.com/u/manisha)\
**Replies:** 5\
**Last updated:** [July 1, 2019, 10:56am UTC](https://forums.bitovi.com/t/how-to-change-the-radio-button-selection-using-funcunit/1068 "2019-07-01T10:56:26Z")

</div>

I am trying to change the radio button selection using funcUnit. To change the radio button selection I try to select the radio button element (which is not selected) and then generate a click event on the radio button …

---

## [Typing something in a \<input type='text'\> using FuncUnit "type" but it is not working](https://forums.bitovi.com/t/typing-something-in-a-input-type-text-using-funcunit-type-but-it-is-not-working/1065)

<div class="topic-metadata">

**Author:** [@manisha](https://forums.bitovi.com/u/manisha)\
**Replies:** 2\
**Last updated:** [April 29, 2019, 4:51am UTC](https://forums.bitovi.com/t/typing-something-in-a-input-type-text-using-funcunit-type-but-it-is-not-working/1065 "2019-04-29T04:51:44Z")

</div>

I am trying to type something in a input textbox using type function but its not working. In my page under test there is textbox: In my FuncUnit test I am trying to type something in this textbox using “type” but its…

---

## [Example for wait() with success function in FuncUnit](https://forums.bitovi.com/t/example-for-wait-with-success-function-in-funcunit/1052)

<div class="topic-metadata">

**Author:** [@manisha](https://forums.bitovi.com/u/manisha)\
**Replies:** 1\
**Last updated:** [March 7, 2019, 6:12pm UTC](https://forums.bitovi.com/t/example-for-wait-with-success-function-in-funcunit/1052 "2019-03-07T18:12:03Z")

</div>

Can anybody please give me an example of how to use “wait” in funcUnit tests. I am trying to add some wait conditions with a checker but its not waiting. Please help me how can I resolve this issue. Thanks in advance…

---

## [Is there any way to to define test execution sequence in FuncUnit](https://forums.bitovi.com/t/is-there-any-way-to-to-define-test-execution-sequence-in-funcunit/1051)

<div class="topic-metadata">

**Author:** [@manisha](https://forums.bitovi.com/u/manisha)\
**Replies:** 1\
**Last updated:** [March 7, 2019, 3:34pm UTC](https://forums.bitovi.com/t/is-there-any-way-to-to-define-test-execution-sequence-in-funcunit/1051 "2019-03-07T15:34:39Z")

</div>

I need to write automated UI test, for this I am using FuncUnit and QUnit. I want to know is there any way where I can define the sequence in which I want to run the tests in my test file.

---

## [Testing strategies](https://forums.bitovi.com/t/testing-strategies/894)

<div class="topic-metadata">

**Author:** [@jeroencornelissen](https://forums.bitovi.com/u/jeroencornelissen)\
**Replies:** 4\
**Last updated:** [June 7, 2018, 3:02pm UTC](https://forums.bitovi.com/t/testing-strategies/894 "2018-06-07T15:02:17Z")

</div>

Currently we don’t write any tests but we want to. So now we are investigating how we can get started with it. Are there any guides on testing? How do you guys test? Do you use QUnit / FuncUnit? Or are you moving to …

---

## [Puppeteer or this?](https://forums.bitovi.com/t/puppeteer-or-this/903)

<div class="topic-metadata">

**Author:** [@janat08](https://forums.bitovi.com/u/janat08)\
**Replies:** 4\
**Last updated:** [June 5, 2018, 9:22pm UTC](https://forums.bitovi.com/t/puppeteer-or-this/903 "2018-06-05T21:22:38Z")

</div>

I don’t know how to test and therefore can’t be bothered to begin to judge.

---

## [\[Testee\] Stop on fail](https://forums.bitovi.com/t/testee-stop-on-fail/884)

<div class="topic-metadata">

**Author:** [@MarceloFonseca](https://forums.bitovi.com/u/MarceloFonseca)\
**Replies:** 0\
**Last updated:** [May 4, 2018, 9:24am UTC](https://forums.bitovi.com/t/testee-stop-on-fail/884 "2018-05-04T09:24:06Z")

</div>

Hello! We currently have a testee setup (using Qunit) like: const testPromise = testee.test(\[ ‘test1.html’, ‘test2.html’, ‘test3.html’ \] And I would like to know if there’s any way to stop the testee execution if …

---

## [When i want load google.com inside iframe i have problem : CORS protection](https://forums.bitovi.com/t/when-i-want-load-google-com-inside-iframe-i-have-problem-cors-protection/873)

<div class="topic-metadata">

**Author:** [@rmros](https://forums.bitovi.com/u/rmros)\
**Replies:** 4\
**Last updated:** [April 28, 2018, 6:28am UTC](https://forums.bitovi.com/t/when-i-want-load-google-com-inside-iframe-i-have-problem-cors-protection/873 "2018-04-28T06:28:46Z")

</div>

i want load google.com in iframe , and start funcunit test on that but i have errors ! we have CORS protection , so i created reverse proxy with docker and nginx , and i set some header proxy but also i have problem 1…

---

## [Code coverage for a CanJS app using Testee](https://forums.bitovi.com/t/code-coverage-for-a-canjs-app-using-testee/688)

<div class="topic-metadata">

**Author:** [@Nithanaroy](https://forums.bitovi.com/u/Nithanaroy)\
**Replies:** 7\
**Last updated:** [July 26, 2017, 2:57pm UTC](https://forums.bitovi.com/t/code-coverage-for-a-canjs-app-using-testee/688 "2017-07-26T14:57:31Z")

</div>

project\_root$ testee test/index\_cli.test.html --coverage --config=testee.json Failed to parse file: /test/index\_cli.js Contents of testee.json: { "coverage": { "dir": "coverage/", "reporters": \["text", "html…

---

## [How do I get Testee to work with Jenkins?](https://forums.bitovi.com/t/how-do-i-get-testee-to-work-with-jenkins/457)

<div class="topic-metadata">

**Author:** [@dbleier](https://forums.bitovi.com/u/dbleier)\
**Replies:** 1\
**Last updated:** [November 3, 2016, 8:10pm UTC](https://forums.bitovi.com/t/how-do-i-get-testee-to-work-with-jenkins/457 "2016-11-03T20:10:08Z")

</div>

How do I get Testee to work with Jenkins? I tried installing the Xvfb plugin and then run export DISPLAY=:99 xvfb-run testee path/to/test/test.html --root root/of/donejs/app -reporter Spec --browsers firefox But …

---

## [The coverage isn't working on testee plugin](https://forums.bitovi.com/t/the-coverage-isnt-working-on-testee-plugin/348)

<div class="topic-metadata">

**Author:** [@sergiomcunh](https://forums.bitovi.com/u/sergiomcunh)\
**Replies:** 6\
**Last updated:** [July 28, 2016, 1:41pm UTC](https://forums.bitovi.com/t/the-coverage-isnt-working-on-testee-plugin/348 "2016-07-28T13:41:30Z")

</div>

I've been working with the testee plugin with grunt to test the code developed with canJs. The test are done in QUnit and the imports are made with Steal. The Grunt task: testee: { options: { root: './', b…

---

## [Testee --root option](https://forums.bitovi.com/t/testee-root-option/221)

<div class="topic-metadata">

**Author:** [@jeroencornelissen](https://forums.bitovi.com/u/jeroencornelissen)\
**Replies:** 1\
**Last updated:** [April 19, 2016, 7:36pm UTC](https://forums.bitovi.com/t/testee-root-option/221 "2016-04-19T19:36:25Z")

</div>

As I understand from the docs the --root option lets you define the path the files are relative to. I've tried setting it up like this: testee test/test.html --root https://trunk.domain.com/labs/qunit --browsers chrome …

---

## [Where can I find the Syn keycodes?](https://forums.bitovi.com/t/where-can-i-find-the-syn-keycodes/229)

<div class="topic-metadata">

**Author:** [@marshallswain](https://forums.bitovi.com/u/marshallswain)\
**Replies:** 1\
**Last updated:** [April 12, 2016, 7:53pm UTC](https://forums.bitovi.com/t/where-can-i-find-the-syn-keycodes/229 "2016-04-12T19:53:56Z")

</div>

Some FuncUnit docs pages refer to syn pages that are missing. This page is an example: https://funcunit.com/docs/FuncUnit.prototype.type.html. Where are the syn docs, specifically the keycodes?
