Re: Unit tests in TLF

2015-01-08 Thread Harbs
On a second look, it looks like GeneralFunctionsTest is causing the error. It changes the resourceStringFunction, but does not set it back to the default one. (although I’m not sure why not — it should be changed back in the finally block). On Jan 8, 2015, at 10:56 AM, Harbs wrote: > Try chan

Re: Unit tests in TLF

2015-01-08 Thread Harbs
Try changing: GlobalSettings.resourceStringFunction("invalidReplaceTextPositions”) to: GlobalSettings.defaultResourceStringFunction("invalidReplaceTextPositions”) The resourceStringFunction can be overridden, and true overridden function might not be returning the correct text. My “solution” is p

Re: Unit tests in TLF

2015-01-07 Thread piotrz
Hi, I have removed "Ignore" tag from the test "spanElementReplaceTextInvalidPos" -> ElementOperationTest. There is something interesting happening there which might not be exactly related to the TLF. We have this part of code. https://paste.apache.org/44I4 It's failing because it do not find t

RE: Unit tests in TLF

2014-10-06 Thread piotrz
Thanks Michael. Your help was crucial. :) I hope to push next part of TLF tests soon to develop branch. :) Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/Unit-tests-in-TLF-tp36199p41123.html Sent from

RE: Unit tests in TLF

2014-10-06 Thread Michael A. Labriola
>I have merged my code to develop branch. I saw that TLF build correctly so I >can assume that everything is working fine. :) Nice work. Congratulations and good job

Re: Unit tests in TLF

2014-10-05 Thread Harbs
Cool! I just committed my table work to a “tables” branch. Any suggestions on how to handle testing for that would be very welcome. On Oct 6, 2014, at 8:53 AM, piotrz wrote: > I have merged my code to develop branch. I saw that TLF build correctly so I > can assume that everything is working f

Re: Unit tests in TLF

2014-10-05 Thread piotrz
I have merged my code to develop branch. I saw that TLF build correctly so I can assume that everything is working fine. :) In this location bin\apps\automation_apps\bin\ we should see xmls file with reports for results of unit tests - If someone could take a look whether they did create on the ma

Re: Unit tests in TLF

2014-10-01 Thread piotrz
Ok Thanks Erik. I will try to merge today my branch into develop. Will see what will blow up ;) Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/Unit-tests-in-TLF-tp36199p40978.html Sent from the Apache

Re: Unit tests in TLF

2014-09-30 Thread Erik de Bruin
> Next general question. Do you think guys that I should merge my code to TLF > develope branch ? > I'm not sure how this build script will be working on the machine where we > are building our Flex SDK - while tests it is launching flash player > projector. > This should be OK. If your setup work

Re: Unit tests in TLF

2014-09-30 Thread piotrz
Ok Thanks to Michael I'm done and TLF script building whole project and launching all tests (13 classes) witch I rewritten to Flex Unit 4. Will be working on the next. Harbs I would like give a try to launch these tests on your code - you have changed probably a lot in current TLF. I know that yo

RE: Unit tests in TLF

2014-09-29 Thread Michael A. Labriola
>I have missed something from your previous response and didn't try CIListener. >- I am really sorry about it. Now it is working, I can move forward. No problems at all. I just wanted to know if you had tried so I could help you debug it.

RE: Unit tests in TLF

2014-09-28 Thread piotrz
Hi Michael, I have missed something from your previous response and didn't try CIListener. - I am really sorry about it. Now it is working, I can move forward. Thank you Michael! Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-develo

RE: Unit tests in TLF

2014-09-28 Thread Michael A. Labriola
Hi, Asking again, are you using the CIListener or the AIRCIListener? Those are the components that do this work for you. Mike -Original Message- From: piotrz [mailto:piotrzarzyck...@gmail.com] Sent: Sunday, September 28, 2014 2:45 PM To: dev@flex.apache.org Subject: RE: Unit tests in

RE: Unit tests in TLF

2014-09-28 Thread piotrz
Hi Guys, I have created small project with FU and ant script. It's building this project and launching FU tests unfortunately situation is exactly the same. I'm waiting for the response -> http://images.devs-on.net/Image/IbrK3QRfZHwy8PDh-Obszar.png Flash Player is opening and launching tests. My

RE: Unit tests in TLF

2014-09-23 Thread piotrz
Are you saying that app should automatically respond to my script - ok I will try to build small project with Unit Tests and Ant to see whether it will work. Maybe I have to in somehow reorganize current TLF unit test project. Thanks Michael will back with the results. Piotr - Apache Flex

RE: Unit tests in TLF

2014-09-23 Thread Michael A. Labriola
Piotr- > Should I dispatch some event through the -> flexunituirunner:TestRunnerBase ? If you are using any of the flexunit CI pieces they take care of that communication back to the launching process for you. I don't know if you are or are not. Dispatching an event is not ideal as the TestRunn

Re: Unit tests in TLF

2014-09-23 Thread piotrz
Hi Harbs, If someone help me beat this problem couple of tests will be ready for you for sure. :) Piotr - Apache Flex PMC piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/Unit-tests-in-TLF-tp36199p40883.html Sent from the Apac

Re: Unit tests in TLF

2014-09-23 Thread Harbs
That’s great! I’d love to run the tests on my work of TLF before I try to merge it back into the main code base. If you have some time to help me with that, it would be awesome. Harbs On May 8, 2014, at 9:58 AM, piotrz wrote: > Hi Guys! > > I have committed my changes related to Flex Unit T

Re: Unit tests in TLF

2014-09-22 Thread piotrz
Hi Guys, I would like to build tlf unit tests and running from ant build.xml file these tests. I did it without a problem: It's running a tests without a problem, but what should a I do to say to my script "Hey I have finished my tests here you go my results!" ? Currently script is wa

Re: Unit tests in TLF

2014-05-18 Thread piotrz
Hi Alex, Sorry for the delay. I did try to put folder witch contains simple.xml file and other files require for Test cases. Piotr - Apache Flex Committer piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/Unit-tests-in-TLF-tp36

Re: Unit tests in TLF

2014-05-13 Thread Alex Harui
Excellent! Thanks for woking on it. What did you try putting into the FP trust file? On 5/7/14 11:58 PM, "piotrz" wrote: >Hi Guys! > >I have committed my changes related to Flex Unit TLF tests to >FlexUnit4TestsTLF branch. >TLF tests are consists with > >testApps - this is TLF editor -> >http:

Re: Unit tests in TLF

2014-05-11 Thread piotrz
Hi Guys! I have committed my changes related to Flex Unit TLF tests to FlexUnit4TestsTLF branch. TLF tests are consists with testApps - this is TLF editor -> http://www.adobe.com/devnet-apps/tlf/demo/ automation_apps - it contains logic for launch tests, read some data from xml files witch have

Re: Unit tests in TLF

2014-05-03 Thread Justin Mclean
Hi, > If you can launch the test automatically, that would be best, IMO. But having test to run is certainly better than the current situation were we can't run the tests. Check in it if it's an improvement over before (which sounds like it is) and if it doesn't break anything else. Thanks, Ju

Re: Unit tests in TLF

2014-05-03 Thread Alex Harui
If you can launch the test automatically, that would be best, IMO. -Alex On 5/3/14 5:20 AM, "piotrz" wrote: >I have managed to build unit tests applications for TLF using ant. >The result of this build is Flex application witch we could manually >launch >in the browser and start unit tests. >

Re: Unit tests in TLF

2014-05-03 Thread piotrz
I have managed to build unit tests applications for TLF using ant. The result of this build is Flex application witch we could manually launch in the browser and start unit tests. I think this is not what we are looking for yes ? How should it work? Similar to mustella tests ? 1) built of TLF s

RE: Unit tests in TLF

2014-04-06 Thread piotrz
I know I didn't express my thoughts enough clear. > Request.classes( classes.. ); Request.methods( class, methods...) Wow Mike this is Awesome! :) Thanks Mike and Alex! Piotr - Apache Flex Committer piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-develop

RE: Unit tests in TLF

2014-04-06 Thread Michael A. Labriola
>In flex unit 4 most of those information about test we have got into >TestRunnerBase. When I add FU 4 to project I've simple removed all of those >methods and UI for display information and I replaced it one line of code >. In FlexUnit4, the information doesn't do into TestRunnerBase really.

Re: Unit tests in TLF

2014-04-06 Thread Alex Harui
Thanks for working on it. If it is easier to hook most tests to cilistener that is probably a good achievement. A custom runner for performance and memory could probably wait. Sent via the PANTECH Discover, an AT&T 4G LTE smartphone. piotrz wrote: After a lot of modifications I've managed to

Re: Unit tests in TLF

2014-04-06 Thread piotrz
After a lot of modifications I've managed to run first test's class with Flex Unit 4.2 RC3 -> AccessibilityMethodsTest. But I need some confirmation about my direction. In TLF "automation_apps" project we have "TestDescriptorRunner" which implements this interface -> http://bit.ly/1jQwerN -> Thank

Re: Unit tests in TLF

2014-03-26 Thread Alex Harui
Excellent. Thanks for working on it. On 3/26/14 1:58 PM, "piotrz" wrote: >I did small progress with running TLF tests. >Successfully build all apps which have been used for tests purposes - It >wasn't so easy. > >Next steps are: >1) Clean up code a bit. >2) Try to run at least one test. >3) Run

Re: Unit tests in TLF

2014-03-26 Thread piotrz
I did small progress with running TLF tests. Successfully build all apps which have been used for tests purposes - It wasn't so easy. Next steps are: 1) Clean up code a bit. 2) Try to run at least one test. 3) Run ant script Piotr :) - Apache Flex Committer piotrzarzyck...@gmail.com -- V

RE: Unit tests in TLF

2014-03-24 Thread Michael A. Labriola
>FlexJS will keep metadata on the JS side, probably as simple properties on the >classes and/or functions. I imagine we'll write a library that abstracts the >fetching of metadata and returns it as an array of strings or maybe as JSON. >If we could easily retrofit the metadata fetching in Flex

Re: Unit tests in TLF

2014-03-24 Thread Alex Harui
On 3/24/14 9:26 AM, "Michael A. Labriola" wrote: >>OK, I didn't see any non-Flex apps around the runners. The deal is the >>mx and Spark apps can't wrap the runners and load in FlexJS classes at >>the same time. I think I'll just have to replace the Spark app with a >>FlexJS app. > >No proble

RE: Unit tests in TLF

2014-03-24 Thread Michael A. Labriola
>OK, I didn't see any non-Flex apps around the runners. The deal is the mx and >Spark apps can't wrap the runners and load in FlexJS classes at the same time. > I think I'll just have to replace the Spark app with a FlexJS app. No problem. We even got FlexUnit working in Flash pro at one point.

Re: Unit tests in TLF

2014-03-23 Thread Alex Harui
On 3/23/14 9:51 AM, "Michael A. Labriola" wrote: >>I found when trying to get FlexUnit to work with FlexJS that there is >>some work needed there as well since the FlexUnit demos use mx or Spark >>applications around the runners. > >Alex, this isn't completely true and I can help you with it. T

RE: Unit tests in TLF

2014-03-23 Thread piotrz
Thanks Michael if so I will study carefully everything and will try. :) Piotr - Apache Flex Committer piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/Unit-tests-in-TLF-tp36199p36214.html Sent from the Apache Flex Development m

RE: Unit tests in TLF

2014-03-23 Thread Michael A. Labriola
Piotr, >For ex: http://bit.ly/1jjjhJ8 >They do not have any tags [Test] above the methods and so on. These should still be able to be run through FlexUnit 4.x FlexUnit 4 understands how to run FlexUnit 4.x, FlexUnit 1.x and Fluint 1.x tests. However, it may still be worthwhile to update them s

Re: Unit tests in TLF

2014-03-23 Thread piotrz
Thanks Alex I will try to do that. Piotr - Apache Flex Committer piotrzarzyck...@gmail.com -- View this message in context: http://apache-flex-development.247.n4.nabble.com/Unit-tests-in-TLF-tp36199p36211.html Sent from the Apache Flex Development mailing list archive at Nabble.com.

RE: Unit tests in TLF

2014-03-23 Thread piotrz
Hi Michael. Thank you for your response. I'm going to remove all of references to this library and replace it to current version of FlexUnit. Michael tests which I see in TLF doesn't looks like tests which could be run through FlexUnit 4. I will probably have to modify all of them to run with F

RE: Unit tests in TLF

2014-03-23 Thread Michael A. Labriola
>I found when trying to get FlexUnit to work with FlexJS that there is some >work needed there as well since the FlexUnit demos use mx or Spark >applications around the runners. Alex, this isn't completely true and I can help you with it. The runner itself is entirely AS only, no Flex depende

RE: Unit tests in TLF

2014-03-23 Thread Michael A. Labriola
>Question is what should we do with this ? Should we change it to FlexUnit ? That is more commonly known as FlexUnit 1. FlexUnit 4 should already run those tests internally. >More over I think library was modified in some way for TLF tests purposes. for >ex: Couple of properties from TestCase

Re: Unit tests in TLF

2014-03-23 Thread Alex Harui
If you've got the time, go for it! It would be better if TLF was tested by other Apache Flex technology. I found when trying to get FlexUnit to work with FlexJS that there is some work needed there as well since the FlexUnit demos use mx or Spark applications around the runners. I think we'll ha