473,734 Members | 2,764 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

JTF: Javascript Unit Testing Farm

Hello,

I would like to show you a new collaborative website for javascript
programmer.

It's quite hard to know if some specific code you wrote will work on
all browsers, and if not, why it doesn't work. You often have to
install lot of browsers on your computer, buy a mac or a pc, and make
unit tests.

On JTF (Javascript Unit Testing Farm), you can write javascript unit
tests that will be executed on all browsers, automatically. You'll be
able to post comment, rate scripts and, of course, you'll be able to
reuse, modify and increase the compatibility of current scripts.

I hope you'll like and you'll find this site useful.

http://jtf.ploki.info

Mar 30 '06 #1
25 2598

ac****@gmail.co m wrote:
Hello,

I would like to show you a new collaborative website for javascript
programmer.

It's quite hard to know if some specific code you wrote will work on
all browsers, and if not, why it doesn't work. You often have to
install lot of browsers on your computer, buy a mac or a pc, and make
unit tests.

On JTF (Javascript Unit Testing Farm), you can write javascript unit
tests that will be executed on all browsers, automatically. You'll be
able to post comment, rate scripts and, of course, you'll be able to
reuse, modify and increase the compatibility of current scripts.

I hope you'll like and you'll find this site useful.

http://jtf.ploki.info


This is an interesting project.

I have one suggestion - run one test everytime a visitor enters your
site. This way there will not be discrimination from scripts receving
more attention.

This could be also deployed in the background of busy site. Maybe you
could consider making it a package. Developers would just insert it on
their website either into onload event or into interval timer to get
their scripts tested by their visitors.

I just wonder if there is a legal implication of this, because the
provider would be using the visitor's browser for purposes not related
to the site without their explicit agreement.

Mar 30 '06 #2
Thanks for the offer, but I only write for IE 5+. My logic is simple.
I sell continuing education products online. If a person does not have
the money to buy a decent browser and OS then they probably don't have
the money to buy my products. Additionally, the Windows software that
is compatible with IE5+ includes PowerPoint and Frontpage. I use both
these products extensively to develop high volume pages for training
purposes. They are fast and efficient. The W3C standard used by
Netscape, Opera, and FireFox are basic. Adhering to the W3C standards
has kept these browsers from advancing to the level of Microsoft
Products. W3C is behind the times and actually works a little like
communism by trying to keep everyone at the same obsolete level.
Adding the price to produce pages compatible with Netscape, Opera, and
Firefox and the W3C standard to my production budget is not a good
marketing decision and therefore should be avoided.

Mar 30 '06 #3
wrote on 30 mrt 2006 in comp.lang.javas cript:
Thanks for the offer ....


Please quote what you are replying to.

If you want to post a followup via groups.google.c om, don't use the
"Reply" link at the bottom of the article. Click on "show options" at the
top of the article, then click on the "Reply" at the bottom of the article
headers. <http://www.safalra.com/special/googlegroupsrep ly/>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Mar 30 '06 #4
<Hello,

I would like to show you a new collaborative website for javascript
programmer.
It's quite hard to know if some specific code you wrote will work on
all browsers, and if not, why it doesn't work. You often have to
install lot of browsers on your computer, buy a mac or a pc, and make
unit tests.
On JTF (Javascript Unit Testing Farm), you can write javascript unit
tests that will be executed on all browsers, automatically. You'll be
able to post comment, rate scripts and, of course, you'll be able to
reuse, modify and increase the compatibility of current scripts.
I hope you'll like and you'll find this site useful.
http://jtf.ploki.info >
The offer, as quoted from the original post.

My reply:
Thanks for the offer, but I only write for IE 5+. My logic is simple.
I sell continuing education products online. If a person does not have

the money to buy a decent browser and OS then they probably don't have
the money to buy my products. Additionally, the Windows software that
is compatible with IE5+ includes PowerPoint and Frontpage. I use both
these products extensively to develop high volume pages for training
purposes. They are fast and efficient. The W3C standard used by
Netscape, Opera, and FireFox are basic. Adhering to the W3C standards
has kept these browsers from advancing to the level of Microsoft
Products. W3C is behind the times and actually works a little like
communism by trying to keep everyone at the same obsolete level.
Adding the price to produce pages compatible with Netscape, Opera, and
Firefox and the W3C standard to my production budget is not a good
marketing decision and therefore should be avoided.

Mar 30 '06 #5
Zif
el*********@ele ctrician.com said on 31/03/2006:
[...]
My reply:
Is this a serious statement or just a troll?

Thanks for the offer, but I only write for IE 5+.
Worse, you write only for IE 5+ on Windows.

My logic is simple.
I sell continuing education products online. If a person does not have

the money to buy a decent browser and OS then they probably don't have
the money to buy my products.
What an arrogant attitude.

If you can't be bothered to invest in your own continuing education and
learn to write decent web pages, why should anyone think your products
are worth paying for?

You are clearly ignorant of web standards, what does that say of your
ability to learn, understand and teach about other matters?

Additionally, the Windows software that
is compatible with IE5+ includes PowerPoint and Frontpage. I use both
these products extensively to develop high volume pages for training
purposes.
PowerPoint runs on other platforms, including ones that aren't even PCs.
FrontPage can make web pages that run on any browser, it is your
choice to make them run only in IE on Windows.

They are fast and efficient.
FrontPage is one of the most criticised pieces of software that
Microsoft has ever produced. It is slow, buggy and creates genuinely
bad pages. That you consider it 'fast and efficient' is a hint as to
your ability to determine what is good software. And a reflection of
the quality of the products you sell.

I have never heard anyone characterise PowerPoint as 'fast and
efficient'. Ever.

The W3C standard used by
Netscape, Opera, and FireFox are basic.
The same standards Microsoft (mostly) adheres to? The ones that
Microsoft even helps to define?

Adhering to the W3C standards
has kept these browsers from advancing to the level of Microsoft
Products.
That is truly laughable. Microsoft has not updated the functionality of
IE in nearly 6 years and it will be another 12 months before they do.
You clearly haven't investigated the extensions available in other browsers.

W3C is behind the times and actually works a little like
communism by trying to keep everyone at the same obsolete level.
Yeah, I think you're a troll. So capitalism eschews standards, right?
I suppose absolutely nothing in a capitalist society is controlled by
any sort of standard, after all, they are such a communist concept.

Those pinko bastards a the W3C - who the heck are they? Here they are;

<URL:http://www.w3.org/Consortium/Member/List>

A few of turncoats: Microsoft, IBM, Apple, AT&T, Yahoo, Google, Sun...

Adding the price to produce pages compatible with Netscape, Opera, and
Firefox and the W3C standard to my production budget is not a good
marketing decision and therefore should be avoided.


Oh, somebody stop me! You want others to spend money to buy a PC and
software so they can use your products when you are too lousy to invest
a small amount of time and effort to make your products standards compliant?

I guess you don't see the hypocrisy.

--
Zif
Mar 31 '06 #6

Roman Ziak wrote:
ac****@gmail.co m wrote:
Hello,

I would like to show you a new collaborative website for javascript
programmer.

http://jtf.ploki.info
This is an interesting project.


Thank you.
I have one suggestion - run one test everytime a visitor enters your
site. This way there will not be discrimination from scripts receving
more attention.
That's what it's happen already. test cases are running in background
task using timers and iframes.
This could be also deployed in the background of busy site. Maybe you
could consider making it a package. Developers would just insert it on
their website either into onload event or into interval timer to get
their scripts tested by their visitors.
I thought about that but I don't really think that anyone will add
background tests to his website.
I just wonder if there is a legal implication of this, because the
provider would be using the visitor's browser for purposes not related
to the site without their explicit agreement.


That's a good question and I don't have the answer. But just take a
look at google analytics that get all information about visitors
(screen resolution, java, domain, geo location, languages...).

Mar 31 '06 #7
ac****@gmail.co m wrote:
On JTF (Javascript Unit Testing Farm), you can write javascript unit
tests that will be executed on all browsers, automatically. You'll be
able to post comment, rate scripts and, of course, you'll be able to
reuse, modify and increase the compatibility of current scripts.

I hope you'll like and you'll find this site useful.

http://jtf.ploki.info


An excellent idea. I've been trying to think about a good solution to
something like this before. It also has the capability of becoming a
resource for high quality tested library code.

I have a number of suggestions for improvements :

1. It would be nice if there were an easy way to separate the tests
from the code being tested, and allow multiple versions (ie History) of
the tested code. Doing this would make it easier to test newer
versions of the tested code, and tie into the existing unit tests.
Ideally each version of the tested code would be run against the tests.
**

2. Could there be an RSS or mail feed to notify users of failures?

3. A bit more documentation on the mechanics of it all. For example :

a. what happens if my script throws an exception and its not caught?

b. does my script continue after a failed assertion?

i.e.

assertTrue(0);
log("message"); // will this get logged?

c. what environment does the html fragment 'sit' in? it looks like an
iframe, but it would be nice if it were possible to access the source
for it, and have that documented somewhere?

d. when is my script run? After the document has loaded? Or should my
script include attachEvent (or whatever) code if I want to rely on the
html being fully loaded?

4. It would be nice if the "Test Script" button actually ran the script
rather than just doing some sanity checking on it.

5. Could the launcher search for all functions called test???? and run
them? That would match JSUnit better I think. The following code does
that (someone correct me _when_ I'm wrong :-) )

for (var name in window)
{
if (typeof(window[name]) == "function" && name.indexOf('t est') ==
0)
{
window[name]();
}
}
Sorry if this seems overly critical, its not meant to be, as I think
its a fantastic idea :-)

Sam
** I can see this is quite a big feature request! But I think its an
important one.

Mar 31 '06 #8
http://jtf.ploki.info


regarding test_stringToDa te, and the comment :

"""
* Posted by acemtp the 2006-03-31 13:10:14 Rated 1 stars. Marked as not
working script
I disable the script for now because your log is too big (15kb). I
have to find a way to send bigger log and please find a way to send
less log :)
"""

I understand now what the submit page meant by the log is limited to
200 characters. I didn't realise that testing an assertion added to
the log.

I don't really see how I can send less log, except by removing the
tests :-) There are only 64 assertions made, which I don't think is
unusual for testing boundary cases on a function like that, (To be
honest its not really enough, there are a whole slew of test cases that
should be added)

I guess the simplest thing would be to only log on a failure, at the
moment pass or fail the log is sent to the server. Which is I think
fairly normal for many unit testing frameworks. You don't really need
confirmation of every test that passed, just a count of how many tests
passed and which ones failed.

I think the 200 character limit will have to be solved at some point,
the other alternative is to use POST the data rather than use a GET
request.

Sam

Mar 31 '06 #9

ac****@gmail.co m wrote:
Roman Ziak wrote:
ac****@gmail.co m wrote:
Hello,

I would like to show you a new collaborative website for javascript
programmer.

http://jtf.ploki.info


I have one suggestion - run one test everytime a visitor enters your
site. This way there will not be discrimination from scripts receving
more attention.


That's what it's happen already. test cases are running in background
task using timers and iframes.


Ok then. I thought the particular script is being tested only when user
goes to check on its details.
This could be also deployed in the background of busy site. Maybe you
could consider making it a package. Developers would just insert it on
their website either into onload event or into interval timer to get
their scripts tested by their visitors.


I thought about that but I don't really think that anyone will add
background tests to his website.


Here is another idea:

Deploy a server side servise, where users will be able to stuff small
JS codes into the database. Then participating websites will be able to
add to their HTML:

<script
src="http://jtf.ploki.info/getScriptForTes ting.php?uid=12 36"></script>

When I setup an account on your farm, I would like to be able to upload
my scripts for testing and review results. The site moderator and
appointed users could review the submitted scripts before they would be
sent for their first test (untrusted script on trusted site issue).

I have a small site with some ~200 unique visitors a day and growing
and I would sign-up if project was executed properly and there was some
guarantee that those scripts will execute invisibly for my visitors.

Roman

Mar 31 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3740
by: Hugh Cowan | last post by:
Hello, I don't program full-time (anymore), but I do try and stay on-top of the latest technologies and like most are always trying to upgrade my skills and remain current (as much as is possible). Most of my programming these days involves using PHP for creating script files for automating tasks and procedures (locally), and also for anything that might be needed by our divisional Intranet (not a huge site by any stretch of the...
14
2750
by: | last post by:
Hi! I'm looking for unit-testing tools for .NET. Somthing like Java has --> http://www.junit.org regards, gicio
4
2163
by: Peter Rilling | last post by:
Does VS.NET 2005 Professional support integrated unit testing, or is that only with the team system?
72
5264
by: Jacob | last post by:
I have compiled a set og unit testing recommendations based on my own experience on the concept. Feedback and suggestions for improvements are appreciated: http://geosoft.no/development/unittesting.html Thanks.
4
18967
by: Dat AU DUONG | last post by:
Hi, I am new to Unit testing, could you tell me where I could find information (hopefully step by step) and what is the benefit of unit testing. I am a sole developer in a company, therefore I don't get expose to much of this technology. Thanks in advance. Regards Dat.
18
2397
by: Andrew Wan | last post by:
I have been developing web applications with ASP & Javascript for a long time. I have been using Visual Studio 2003.NET. While VS2003 is okay for intellisense of ASP & Javascript, it's still not that great. One of the cons of ASP & Javascript is that they're both interpreted, which means one has twice the amount of work to do interms of syntax checking & semantic/runtime checking. Another bad thing is that ASP & Javascript doesn't have...
176
8397
by: nw | last post by:
Hi, I previously asked for suggestions on teaching testing in C++. Based on some of the replies I received I decided that best way to proceed would be to teach the students how they might write their own unit test framework, and then in a lab session see if I can get them to write their own. To give them an example I've created the following UTF class (with a simple test program following). I would welcome and suggestions on how anybody...
16
3397
by: drwyness | last post by:
Hello, Please help with the following problem it is causing me some headaches. The following javascript code is designed to fill in text boxes with numbers on an online game (tribalwars). It works fine for everyone else and even the link to the script that I am personally using has been used on other people computers successfully. I have tried this on both IE7 and the latest Firefox. My options show javascript is enabled and even other...
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8776
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9236
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9182
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4809
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3261
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2724
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.