Topics
-
FuncUnit
- All Forums
- FuncUnit
- StealJS
- General JavaScriptMVC
- DocumentJS
- jQueryMX
- CanJS
- jQuery++
- /
All Sub Forums
- All Sub Forums
- Envjs
- Selenium
- Syn
- Uncategorized
-
asked by besupernicoks • 4 years ago
Discount 2016 Latest Cheap Air Jordan 7GS Barcelona Days For Sale Womens Nike Basketball Sneakers.Womens Air Jordan VII Retro Dark Grey/Turquoise Blue-Wolf Grey-Total Orange 304775-016 April 25, 2015.If you were born after 1992, you may be asking why the Cheap Air Jordan 7 Retro For SaleThe answer is as simple as you’d imagine: it was the sneaker Michael Jordan wore (along with the Air Jordan 6) on the Dream Team during its march to gold in Barcelona that year. Barcelona is actually the inspiration behind this particular pair too.The colors are meant to invoke the scene of the Barcelona cityscape during the day, the counter pair to the “Barcelona Nights” pair recently released.The newest Air Jordan 7 Retro takes inspiration from the culturally rich city of Barcelona, blending an array of bright colors on a Wolf Grey and Dark Grey base.
-
asked by web1 • last reply by air_hadoken • 5 years ago
The "Functional testing with a tabs widget” section shows you what a sample test runner file looks like. You’ll need to have an HTML file like that one to run tests in your browser; note how it contains references to jQuery/QUnit/FuncUnit script files, and then runs a testing script (the last script reference).It sounds like you haven’t written unit tests either, so if you need a guideline on where to put tests, make a “test” folder and write all your test scripts in files under that folder. If you’re working on a site that has a build process, you should exclude the test folder when building to deploy to production.Then you just need to add script references to all the files in your test folder in your runner HTML file.If you’re using StealJS (or any other AMD) along with FuncUnit, you can add a script reference to it in your runner and make your tests into a module.The way FuncUnit works is that it launches a new browser window with your full site and automates the interactions with the site from the page running FuncUnit. This is why you need a separate HTML file (for running FuncUnit) and don’t need to add anything to your existing site’s pages.HTH -
asked by Maxisme • 6 years ago
Hi, does funcunit support jasmine 2.1? I really love both of them. -
asked by mike.lujan • last reply by seo1 • 6 years ago
Go through FuncUnit website. you will get complete working of it.
http://funcunit.com/
Hope you get an idea of working with FuncUnit.
For Web applications design and development please visit at -
I tried it both ways. The strange thing is that it does not work straight from the file.
-
asked by kerry • last reply by Justin Meyer • 6 years ago
I think there's a way to arbitrarily set the FuncUnit window. Alexis? -
Yes, the app itself works fine but when the test runs, you visually see the button click but the click handler block of code is not run.
-
asked by thecountofzero • last reply by Justin Meyer • 7 years ago
everyone at bitovi uses funcunit because selenium is terrible .. -
asked by danhamlin • 7 years ago
Hello,I am trying to write a script that exercises the checkout process on one of my employers websites. I have noticed that when navigation to the secure side of the process occurs where a user would enter their credit card number that the script stops running because of security errors in Chrome having to do with script running from a standard http session while the application has now moved to https. This is not entirely surprising, but is there a way around this? Is Selenium a better option for this type of use case and instead reserve pure funcunit for more focused testing of javascript widgets?Thank you. -
started by alexis.abril • 7 years ago
FuncUnit users and newcomers, We've had a few exciting developments in the past few months and I think it is time to clarify what exactly is happening with FuncUnit.js. For those of you that are familiar with FuncUnit, you may have become accustomed to the following features: - Simple, event simulation syntax with jQuery selectors - CLI tools to run tests in PhantomJS - CLI tools to trigger browser running - Test coverage integration for Steal users These were all features we desired when we started the project back in early 2010. At the time, NodeJS had just started development, but wasn't yet released or in the public view, so our main focus was rhino integration(eg: the ./js script). Mainly due to NodeJS's release and popularity, we've had an explosion of innovation in JS tools, such as GruntJS. Rather than try to be an all-in-one testing solution, we decided in favor of modularity. This is akin to when we broke up JMVC last year to be individual pieces. jQueryMX was split into CanJS & jQuery++ and StealJS has upcoming stable releases for node & bower support, respectively. The new direction for FuncUnit is to be the best at one thing: Simple, event simulation with jQuery style selectors. We've reduced using FuncUnit from downloading a larger project, to a single file, ~145k uncompressed. We've added full Jasmine support and are in the process of supporting other testing frameworks. There are a growing number of test runners on the market and we've chosen to favor TesteeJS to run our tests. This is not to say you must use TesteeJS, but you should be free to integrate any parts you may or may not have with FuncUnit going forward. We may provide a Yeoman generator for our scaffold of a testing setup, however that's a talking point on the roadmap currently. Repo direction: Now, with any drastic project redirection, there are some growing pains. In our case, this will reside in the repos. We just released JMVC 3.3 recently and chose not to prohibit 3.3 users from using the older FuncUnit. This is currently: bitovi/funcunit. bitovi/funcunit.js is the new library, focusing only on the testing syntax itself. Overview: bitovi/funcunit - v3.2.3 tagged, follows revolution.major.minor versioning(matches JMVC) - includes runners(rhino, selenium, phantomjs support) - includes test coverage for steal - requires steal - requires jquery bitovi/funcunit.js - v2.0.x tagged, follows semantic versioning(original FuncUnit was 1.x from inception) - requires jquery - bower support There is plans to consolidate the repositories with bitovi/funcunit being the final destination. Roadmap: - Setup a github redirect from bitovi/funcunit.js -> bitovi/funcunit - Setup an orphan branch for v3.2.3 users - We'll be overriding the history in the master branch of bitovi/funcunit due to the size of the repo(~200Mb of older jar references) Feel free to respond to this thread or on GitHub with any questions/issues you may have! Developer Bitovi
-
reported by th3n3rd • 7 years ago
Using the ouput option to generate an xml file with test result sometimes create broken xml files. The command I use to generate the results xml is:- ./js funcunit/open/phantomjs myapp/myapp_test.html -out myapp/docs/funcunit.xml
The problems is related to an invalid tag "testcase" inside the "testsuite"(s) record during the process. All the tests are executed but somtimes the report process just add only a closing "</testcase>" tag, this breaks my build when it runs with our CI server (jenkings + xunit plugin). The test script contents is something like:- steal('funcunit')
- // test modules
- .then('myapp/modules/expression/builder/builder_test.js')
- .then('myapp/modules/expression/factory/factory_test.js')
- .then('myapp/modules/expression/variable_selector/variable_selector_test.js')
- // etc ...
All tests pass, no errors inside them, no java exceptions, nothing wrong except for broken xml files.
My Environment:
- Ubuntu 12.04 64bit (tested even with 13.04 64bit)
- PhantomJS 1.9.1 (for 64bit platform)
- Jenkins 1.505
- XUnit 1.6.1 -
asked by th3n3rd • 7 years ago
Hi everyone,
I'm starting to integrate funcunit in our building process, but I'm little bit confused about "How to output tests result running those tests with nodejs?"
I'm on Ubuntu 13.04 (64bit), latest JavascriptMVC (3.3), with latest phantomjs (1.9.1) installed, latest node installed (v0.10.17) and all npm packages needed as explained in the documentation and then I executed this command:- node funcunit/node/run.js myapp/test.html
Everything is ok with that, every test passed and at the end the result are displayed.
However now i need to export that result as xml to be parsed with Jenkins (xUnit). The problem is that the command above doesn't seems to work adding:
- node funcunit/node/run.js myapp/test.html -out results.xml
If i try to execute instead
- ./js funcunit/open/phantomjs myapp/test.html
It execute all the tests but at the ends it will give me this java exception
- Exception in thread "Thread-89" org.mozilla.javascript.WrappedException: Wrapped java.io.FileNotFoundException: funcunit/coverage/coverage.json ......
and also give me
- kill: invalid argument -- "9"
followed by the usage of kill command.
What i can do to use nodejs + phantomjs + funcunit to export my results? Tnx in advance.
-
asked by kostas.kougios • last reply by kostas.kougios • 7 years ago
Ok, found that there was a change to a recent version and the command now looks like:
./js funcunit/open/phantomjs funcunit/test/autosuggest/funcunit.html
PhantomJS now works for me but not selenium due to file access restrictions:
Caused by: com.thoughtworks.selenium.SeleniumException: ERROR: Command execution failure. Please search the user group at https://groups.google.com/forum/#!forum/selenium-users for error details from the log window. The error message is: Access to 'file:////home/ariskk/programs/javascriptmvc/funcunit/test/autosuggest/funcunit.html?steal[browser]=selenium&steal[startFiles]=funcunit/selenium/client.js' from script denied -
asked by spark85 • 7 years ago
Hello,I've just started JavascriptMVC a few days ago, and I'm stuck on the cookbook example.I'm trying to run js funcunit/run envjs cookbook/qunit.html to run the unit tests on the sample app.I'm getting the following message:"The system cannot find the file specified>".I'm trying to see if there is a problem with permissions on my apache server. I am running the test on WAMP.Any help would be greatly appreciated.Thank you, -
That makes sense -- my seems-to-work solution appears to be using FuncUnit's internal jQuery. I initial tried using Syn directly, but (as you suggest) I couldn't get it to send synthetic events.
It looks like I'm using jQuery 1.9.1 in both the qunit page and the test window. (I can remove jQuery from the test window without any problems, though, as it was only needed for that .trigger()) -
-
asked by tdfairbrother • last reply by CoolEsh • 7 years ago
I faced with the same issue today. No answers for the year? Noone else faced this issue? -
asked by peterbanjo • 7 years ago
I am building an HTML5 app and I have been using FuncUnit for my unit tests. Now I would like to create tests specific to a smartphone layout - about 480px width. How can I create a new window and run FuncUnit tests in it? I tried S.extend( FuncUnit ) for FuncUnit.open and FuncUnit._open so I could modify their internals in steal.then( function() { }) but that hasn't worked.Thanks -
started by sirlcn • last reply by thecountofzero • 7 years ago
Thanks for the reply. I am going to give this some thought and then I'll share my ideas. -
reported by chrisclarke1977 • 8 years ago
To integrate with CI I am using QUnit with funcunit to create xml- steal/js funcunit/open/phantomjs localhost/test.html -out text.xml
When the xml is produced it is often not valid as the testsuites tag has closed when it likes.This results in the stream being closed before the tests have finished this also seems to be the case for modules.- <testsuite time="0.204" tests="1" errors="0" failures="0" assertions="8" name="Example Module">
- </testsuites>
It appears to be the case that the testcase and testsuite and testsuites could all suffer from the same problem. -
reported by Andrei Costescu • last reply by Andrei Costescu • 8 years ago
I start a cmd window. Then I run some tests using envjs.bat.The tests fail and my cmd window gets closed (exit closes the cmd window as well). So then I have to start a new cmd window.Something like- :: report errors to CI/build wrapper(s)
- if errorlevel 1 exit /b 1
at the end would fix the problem. -
started by andrew.cacioppo • last reply by Curtis Cummings • 8 years ago
I would run the app from localhost. This also avoids the numerous AJAX related issues you'll encounter running your app from file:/// -
started by wittraider • 8 years ago
Hi,I am currently trying to test an extjs application using func unit. Works well and i like the api much better than e.g. siesta. However i am wondering if it is possible to show mouse movements and cursors while executing a test. While this is certainly not for everybody i like the idea that you can follow what is being performed. Siesta does that and it makes it easier for someone to follow the testing actions. A feature like this might open the world of training and interactive online help for funcunit.A point to start with might be the ability to hook in callbacks in between the actions, which pause the execution and resume it later e.g. when a cursor animation was performed, or an info box was dismissed. -
asked by lagrenouille • last reply by lagrenouille • 8 years ago
Ok, actually it was me beeing stupid, to fix this:- S.open('myPage');
- S("h2").visible(1000,function(el) {
- equal(el.size(),2,"2 headers");
- });
-
started by PLEASE DELETE MY ACCOUNT • 8 years ago
PLEASE DELETE MY ACCOUNT
- « Newer
- Older »
FuncUnit
Web App Testing Framework
238 Post(s)
4
Sub forum(s)
2 Moderator(s)
Forum actions