[wtr-general] Re: Watir + test unit + windows strange behavior
Hello, I reply to myself to mention I've solved my issue due to a massive lack of sleep. I did the require test/unit into the test/XXX.rb and not into the files that actually included the test files. The result was ruby to open 1 window for every test file I required. I apologize for the trouble I caused. Regards Fred / neuro` on #watir IRC channel Le 22 oct. 2009 à 11:42, de Villamil Frédéric a écrit : Hello, Thank you for teling me. I've been developping with Ruby for more than 6 years now and know how to make test suits. My issue is more like as soon as a test attaches the browser, it starts the next one, opens a new browser windows and tries to run it as a parallel process. I'm digging for a Ruby issue (and patchlevel was 110) Regards, Frédéric Le 22 oct. 2009 à 08:26, yuping zhong a écrit : The unit test is running according to the name of the def. So you should make the definition for the name as following: def test_a .. end def test_b end def test_c . end and so on. It will running on order,hope that help. -Zhong On Oct 22, 7:25 am, Tiffany Fodor tcfo...@comcast.net wrote: Hi Frédéric ! I'm not seeing this issue on Watir 1.6.2, ruby 1.8.6 patchlevel 0. Can you give us the code that is establishing your browser and running your tests? I've posted an example Test::Unit framework here if you'd like to compare it to what you're doing: http://wiki.openqa.org/display/WTR/Excel+Data+Driven+Harness+with +Dat... Hope this helps! -Tiffany On Oct 21, 9:59 am, de Villamil Frédéric fdevilla...@gmail.com wrote: Hi list, I'm running Watir 1.6.2 under ruby 1.8.6 patchlevel 111 It seems that when I'm running my test suit, it starts all tests in parallel, launching as many Internet Explorer windows as test, which gets a bit messy. I have the same issue using Firewatir under Windows. Things are running smoothly with both Safari and Firefox on OS X. Have anyone ever met such a behavior or may have any useful resource to point me to? Regards, Frédéric -- Frédéric de Villamil What's mine is mine. What's yours is still unsetteled – Go player proverb frede...@de-villamil.comtel: +33 (0)6 62 19 1337http://t37.net Typo :http://typosphere.org -- Frédéric de Villamil What's mine is mine. What's yours is still unsetteled – Go player proverb frede...@de-villamil.comtel: +33 (0)6 62 19 1337 http://t37.netTypo : http://typosphere.org -- Frédéric de Villamil What's mine is mine. What's yours is still unsetteled – Go player proverb frede...@de-villamil.comtel: +33 (0)6 62 19 1337 http://t37.net Typo : http://typosphere.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Watir + test unit + windows strange behavior
The unit test is running according to the name of the def. So you should make the definition for the name as following: def test_a .. end def test_b end def test_c . end and so on. It will running on order,hope that help. -Zhong On Oct 22, 7:25 am, Tiffany Fodor tcfo...@comcast.net wrote: Hi Frédéric ! I'm not seeing this issue on Watir 1.6.2, ruby 1.8.6 patchlevel 0. Can you give us the code that is establishing your browser and running your tests? I've posted an example Test::Unit framework here if you'd like to compare it to what you're doing: http://wiki.openqa.org/display/WTR/Excel+Data+Driven+Harness+with+Dat... Hope this helps! -Tiffany On Oct 21, 9:59 am, de Villamil Frédéric fdevilla...@gmail.com wrote: Hi list, I'm running Watir 1.6.2 under ruby 1.8.6 patchlevel 111 It seems that when I'm running my test suit, it starts all tests in parallel, launching as many Internet Explorer windows as test, which gets a bit messy. I have the same issue using Firewatir under Windows. Things are running smoothly with both Safari and Firefox on OS X. Have anyone ever met such a behavior or may have any useful resource to point me to? Regards, Frédéric -- Frédéric de Villamil What's mine is mine. What's yours is still unsetteled – Go player proverb frede...@de-villamil.com tel: +33 (0)6 62 19 1337http://t37.net Typo :http://typosphere.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---
[wtr-general] Re: Watir + test unit + windows strange behavior
Hello, Thank you for teling me. I've been developping with Ruby for more than 6 years now and know how to make test suits. My issue is more like as soon as a test attaches the browser, it starts the next one, opens a new browser windows and tries to run it as a parallel process. I'm digging for a Ruby issue (and patchlevel was 110) Regards, Frédéric Le 22 oct. 2009 à 08:26, yuping zhong a écrit : The unit test is running according to the name of the def. So you should make the definition for the name as following: def test_a .. end def test_b end def test_c . end and so on. It will running on order,hope that help. -Zhong On Oct 22, 7:25 am, Tiffany Fodor tcfo...@comcast.net wrote: Hi Frédéric ! I'm not seeing this issue on Watir 1.6.2, ruby 1.8.6 patchlevel 0. Can you give us the code that is establishing your browser and running your tests? I've posted an example Test::Unit framework here if you'd like to compare it to what you're doing: http://wiki.openqa.org/display/WTR/Excel+Data+Driven+Harness+with +Dat... Hope this helps! -Tiffany On Oct 21, 9:59 am, de Villamil Frédéric fdevilla...@gmail.com wrote: Hi list, I'm running Watir 1.6.2 under ruby 1.8.6 patchlevel 111 It seems that when I'm running my test suit, it starts all tests in parallel, launching as many Internet Explorer windows as test, which gets a bit messy. I have the same issue using Firewatir under Windows. Things are running smoothly with both Safari and Firefox on OS X. Have anyone ever met such a behavior or may have any useful resource to point me to? Regards, Frédéric -- Frédéric de Villamil What's mine is mine. What's yours is still unsetteled – Go player proverb frede...@de-villamil.comtel: +33 (0)6 62 19 1337http://t37.net Typo :http://typosphere.org -- Frédéric de Villamil What's mine is mine. What's yours is still unsetteled – Go player proverb frede...@de-villamil.comtel: +33 (0)6 62 19 1337 http://t37.net Typo : http://typosphere.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general -~--~~~~--~~--~--~---