tag:blogger.com,1999:blog-2532302763215844416.comments2024-03-02T05:11:39.480+00:00Test Automation from insideMykola Kolisnykhttp://www.blogger.com/profile/08484354844163560278noreply@blogger.comBlogger471125tag:blogger.com,1999:blog-2532302763215844416.post-21421307474419007902020-04-21T20:53:27.814+01:002020-04-21T20:53:27.814+01:00This problem isn't relevant to the article. Bu...This problem isn't relevant to the article. But the problem is related to Chrome security policies. I'd look at test driver settings to make sure it runs on local host, not the 0.0.0.0 IP, for instanceMykola Kolisnykhttps://www.blogger.com/profile/08484354844163560278noreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-86342717587809276732020-04-21T19:12:08.684+01:002020-04-21T19:12:08.684+01:00I must say, it *does* work; does the retries--as a...I must say, it *does* work; does the retries--as advertised.<br />But why does Chrome now wait forever between announcing:<br /> Starting ChromeDriver 81.0.4044.69 (xxxxxx-refs/branch-heads/4044@{#776}) on port 34119<br /> Only local connections are allowed.<br /> Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.<br /><br />It is in some invisible wait mode for a minute before Chrome became visible.<br />Tihamerhttps://www.blogger.com/profile/10455538338951299249noreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-78589180600719694712018-05-23T11:10:55.051+01:002018-05-23T11:10:55.051+01:00At first, make sure that it works at least for ori...At first, make sure that it works at least for original Cucumber runner (@BeforeSuite annotation will not work for it). If it works, it would be good starting point. If not, the ExtendedCucumberRunner wouldn't work neither. Mykola Kolisnykhttps://www.blogger.com/profile/08484354844163560278noreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-31368083684760256552018-05-23T10:59:18.777+01:002018-05-23T10:59:18.777+01:00Thanks for the feedback.
This code works with @Be...Thanks for the feedback.<br /><br />This code works with @BeforeSuite annotation.<br /><br />But as mentioned cucumber did not takes updated feature files sequence.<br /><br />Will you please suggest best way to set order for feature files before execution starts.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-30749598766886155812018-05-23T10:54:54.819+01:002018-05-23T10:54:54.819+01:00I'm not sure if this code ever supposed to wor...I'm not sure if this code ever supposed to work. The ExtendedCucumberRunner itself instantiates standard Cucumber runner. So, even if there is possibility to define Cucumber-JVM tests order this code wouldn't have any impact.Mykola Kolisnykhttps://www.blogger.com/profile/08484354844163560278noreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-51559660882643777272018-05-23T08:12:17.390+01:002018-05-23T08:12:17.390+01:00Hello All,
We have problem statement as "To ...Hello All,<br /><br />We have problem statement as "To set priority for feature files before execution"<br /><br />We can able to update priority of feature files in BeforeSuite<br /><br />@RunWith(ExtendedCucumberRunner.class)<br />public class TestRunner {<br /> @Before<br /> public static void setUp() throws Exception {<br /> DAAutomationLog.info("In Before Suite");<br /> TestCaseMaster tm = new TestCaseMaster();<br /> tm.getAllActiveRecordsFromtestcasemaster();<br /> DAAutomationLog.info("Priority setting is done for all feature files");<br /> <br /> }<br /><br />But the issue is test execution is not taking updated priority immediately<br /><br />it get execute as per old priority<br /><br />Please suggest if any solution for this.<br /><br />thanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-6802803426328724142018-02-19T10:39:51.005+00:002018-02-19T10:39:51.005+00:00In this case @Before hook should be a part of the ...In this case @Before hook should be a part of the test class where ExtendedCucumberOptions annotation is applied to. This way you can get annotation from class and get outputFolder field. It's just one of the examples. <br /><br />Another option is to generate timestamped folder outside of the test and pass the path via system property. Then in the ExtendedeCucumberOption annotation you can pass those system properties as parameters. For more information you can see <a href="http://mkolisnyk.github.io/cucumber-reports/extended-cucumber-runner#parameterizing-values" rel="nofollow">Parameterizing Values</a> section of the documentation page.Mykola Kolisnykhttps://www.blogger.com/profile/08484354844163560278noreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-74162228350719151942018-02-19T04:56:40.663+00:002018-02-19T04:56:40.663+00:00Problem is that i need to put logs and report subf...Problem is that i need to put logs and report subfolder under the same parent folder - which is timestamped. If i create the timestamp in outputFolder under ExtendedCucumber Annotation, how do i pass that to the @Before Hook which handles the log file generation per feature?Anonymoushttps://www.blogger.com/profile/04486700929788536895noreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-54913835034859656812018-02-14T11:35:09.270+00:002018-02-14T11:35:09.270+00:00ExtendedCucumberOption annotation has outputFolder...ExtendedCucumberOption annotation has <b>outputFolder</b> field. It defines the actual output folder where reports are supposed to be generated at. Point it to different location and you'll get what you ask for.Mykola Kolisnykhttps://www.blogger.com/profile/08484354844163560278noreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-70105865970012618142018-02-14T08:09:03.390+00:002018-02-14T08:09:03.390+00:00Hi Nickolay,
I want to move my reports to a diffe...Hi Nickolay,<br /><br />I want to move my reports to a different directory after the Cucumber run is complete. Any ideas on how to do that? @AfterSuite doesn't work because your RunPredefinedMethods function runs before the reports are generated. So it doesn't find any HTML report files in my outputFolder directory.<br /><br />ThanksAnonymoushttps://www.blogger.com/profile/04486700929788536895noreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-20721027219779947502017-12-07T12:39:39.295+00:002017-12-07T12:39:39.295+00:00That can be anything which allows you representing...That can be anything which allows you representing your test as some form of specification. It's general approach rather than something tool-specific. Just google "executable requirement specifications" to get the list of examplesMykola Kolisnykhttps://www.blogger.com/profile/08484354844163560278noreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-28037501048461369682017-12-07T12:13:47.001+00:002017-12-07T12:13:47.001+00:00Can u suggest any tools available for automation t...Can u suggest any tools available for automation testing based on executable requirement?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-70834236931144079882017-11-27T10:11:24.277+00:002017-11-27T10:11:24.277+00:00The pie charts aren't properly rendered on MS ...The pie charts aren't properly rendered on MS Outlook. This is known restriction when such mail clients don't render SVG. Mainly, pie charts are shown on Mac. Mykola Kolisnykhttps://www.blogger.com/profile/08484354844163560278noreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-35319171961156706292017-11-27T09:01:25.074+00:002017-11-27T09:01:25.074+00:00Hi,
pie chart representing the scenario and featur...Hi,<br />pie chart representing the scenario and feature status is coming blank in the email notification. Is there a way we can avoid the pie chart in the report ? Please help<br /><br />Thanks.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-6068897189293848652017-11-20T08:32:19.994+00:002017-11-20T08:32:19.994+00:00Can you please give an example to get the known er...Can you please give an example to get the known errors in the overview report bases on the tags?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-36360364381729684642017-10-27T11:37:09.237+01:002017-10-27T11:37:09.237+01:00I'm afraid there's no way of doing it as E...I'm afraid there's no way of doing it as Extended cucumber runner is another software though it is extension. The cucumber task is targeted to standard Cucumber-JVM, not to the runner provided by cucumber-reports library.Mykola Kolisnykhttps://www.blogger.com/profile/08484354844163560278noreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-67112240046898264112017-10-27T10:07:44.935+01:002017-10-27T10:07:44.935+01:00Can you please tell me how to include extendedcucu...Can you please tell me how to include extendedcucumber options in cucumber() task in build.gradle file as I am running the cucumber scripts through command line (gradle cucumber)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-77583965690443714632017-10-27T10:06:11.793+01:002017-10-27T10:06:11.793+01:00I am running the cucumber tests from command line ...I am running the cucumber tests from command line using the cucumber() task defined in build.gradle file. How do I mention the extendedcucumberoptions in the build.gradle file so that the overview report is generated when I run the tests from command line?<br /><br />Thank you.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-59236942002201451572017-10-24T13:03:14.064+01:002017-10-24T13:03:14.064+01:00This solution is more complicated and covers many ...This solution is more complicated and covers many different technologies. For regular development StyleCop is quite enough.Mykola Kolisnykhttps://www.blogger.com/profile/08484354844163560278noreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-54796157129144078262017-10-20T16:52:52.634+01:002017-10-20T16:52:52.634+01:00Yes, the difference is that AfterSuite marks metho...Yes, the difference is that AfterSuite marks method which will be performed at the end of the entire test suite while AfterSubSuite marks method to run after sub-suite is finished (in case of parallel runner, it's feature)Mykola Kolisnykhttps://www.blogger.com/profile/08484354844163560278noreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-11015442489979752862017-10-20T16:43:13.320+01:002017-10-20T16:43:13.320+01:00So will this runner ExtendedParallelCucumber work ...So will this runner ExtendedParallelCucumber work correctly with @AfterSuite method?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-27592028408377598922017-10-20T16:28:13.828+01:002017-10-20T16:28:13.828+01:00Mainly it is needed for parallel cucumber runner. ...Mainly it is needed for parallel cucumber runner. This runner splits entire test suite by features and runs features in separate streams. So, from time to time there may be a need to run some pre- or post- conditions for each specific stream.Mykola Kolisnykhttps://www.blogger.com/profile/08484354844163560278noreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-84379062325434543822017-10-20T16:07:08.231+01:002017-10-20T16:07:08.231+01:00And what is the difference between @AfterSuite and...And what is the difference between @AfterSuite and @AfterSubSuite?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-19927099950706408452017-10-20T15:52:58.921+01:002017-10-20T15:52:58.921+01:00Nice! Works fine for me now.Nice! Works fine for me now.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2532302763215844416.post-33808401911230956962017-10-20T15:04:02.843+01:002017-10-20T15:04:02.843+01:00Methods annotated with @BeforeSuite and @AfterSuit...Methods annotated with @BeforeSuite and @AfterSuite must be static and accept no parameters. Otherwise, runner simply doesn't find it. That's why you see NPEMykola Kolisnykhttps://www.blogger.com/profile/08484354844163560278noreply@blogger.com