473,406 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Addendum: How to test a big JS application

Hello out there,
Joost's answer to my original post showed me that I omitted a central
point: My requirements are completely functional, there is no browser
in sight and no visual output whatsoever.
Ok, before you think I am nuts, here is the background: We have a
fairly big application for the PC desktop and the idea came up to port
it to Flash (you know Adobe / Macromedia).
This would mean 2 things:
1) The GUI will have to be re-done. This is a fact, no discussion
about it.
2) However, if we could port the functional part to JS it seems
possible to use it as 'actions scripts' inside Flash (some dialect of
JS being Flash's internal scripting language) - and thus a complete
re-write could be avoided.

Hence I am in the - completely unusual, I am sure - situation, that I
have to create JS code, which produces no visual effects directly but
instead will - later - initiate such effects inside Flash.

Any hints or ideas on how to test such a beast will be most welcome.
Best regards
Helmut Giese
Apr 1 '08 #1
2 1101
Helmut Giese <hg****@ratiosoft.comwrites:
Hello out there,
Joost's answer to my original post showed me that I omitted a central
point: My requirements are completely functional, there is no browser
in sight and no visual output whatsoever.
Ok, before you think I am nuts, here is the background: We have a
fairly big application for the PC desktop and the idea came up to port
it to Flash (you know Adobe / Macromedia).
This would mean 2 things:
1) The GUI will have to be re-done. This is a fact, no discussion
about it.
2) However, if we could port the functional part to JS it seems
possible to use it as 'actions scripts' inside Flash (some dialect of
JS being Flash's internal scripting language) - and thus a complete
re-write could be avoided.
Ah right. I think you may want Tamarin. This is the engine that does
ActionScript 3 in flash 9 and can be build standalone with a shell, and
presumably does IO etc. That leaves you with the requirement for a
javascript test framework. There are probably a few of those, but
they're not all that hard to write if none of them meet your
requirements.

See: http://www.mozilla.org/projects/tamarin/

--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/
Apr 1 '08 #2
On Tue, 01 Apr 2008 21:01:59 +0200, Joost Diepenmaat <jo***@zeekat.nl>
wrote:
>Helmut Giese <hg****@ratiosoft.comwrites:
>Hello out there,
Joost's answer to my original post showed me that I omitted a central
point: My requirements are completely functional, there is no browser
in sight and no visual output whatsoever.
Ok, before you think I am nuts, here is the background: We have a
fairly big application for the PC desktop and the idea came up to port
it to Flash (you know Adobe / Macromedia).
This would mean 2 things:
1) The GUI will have to be re-done. This is a fact, no discussion
about it.
2) However, if we could port the functional part to JS it seems
possible to use it as 'actions scripts' inside Flash (some dialect of
JS being Flash's internal scripting language) - and thus a complete
re-write could be avoided.
Hi Joost,
>Ah right. I think you may want Tamarin. This is the engine that does
ActionScript 3 in flash 9 and can be build standalone with a shell, and
presumably does IO etc.
sounds good - even raises the probability that the code will actually
run inside Flash.
That leaves you with the requirement for a
javascript test framework. There are probably a few of those, but
they're not all that hard to write if none of them meet your
requirements.
If I can write (test) results to file(s) I can use the framework I am
used to - and all is well.
Thanks a lot and best regards
Helmut Giese
>
See: http://www.mozilla.org/projects/tamarin/
Apr 1 '08 #3

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

Similar topics

2
by: Anthony Abbot | last post by:
Hi I have a requirement to use the Application Center Test (part of Visual Studio.Net Enterprise architect) program, to simulate loading on my Web servers. Does anyone know if it is any good? I...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
0
by: cpavon | last post by:
Hello everyone, I am fairly new to MACT, I am currently trying to parse the oResponse.Body to retrive a dynamic values...store in an array and then randomly post those values. Does anyone...
0
by: Tim Haughton | last post by:
I've just released an article on using Test Driven Development with C# and Windows Forms. GUI's are often difficult to test, so I thought it might be of interest. The article along with the...
0
by: Casey Watson | last post by:
BTW, I just wanted to mention that both the server class and client class are currently running multi-threaded on the same process. That is to say that the program that I wrote was a test program...
1
by: Brad | last post by:
Okay, I am learning about Drag/Drop operations so I am green when it comes to this. I have a form that draws several optional labels that are single-bordered. I also have a dozen colored labels...
27
by: Josh | last post by:
We have a program written in VB6 (over 100,000 lines of code and 230 UI screens) that we want to get out of VB and into a better language. The program is over 10 years old and has already been...
35
by: Logos | last post by:
I asked about this a while ago, and got a great answer and a reference to http://www.javascripttoolbox.com/bestpractices/new.php. I just need to override onclick and return false. No biggie! ...
36
by: bmyers | last post by:
Good afternoon, I am attempting to count only those records within a report, which is based on a query, where Status is equal to Closed. I have tried multiple variations of DCOUNT but am...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.