How to write a custom Feature Parser and Use in Cucumber Framework - selenium-webdriver

Due to some requirements, I wanted to write a custom feature parser for the cucumber and wanted to keep some functionalities like invoke (run multiple times) and csv support to the examples. But its requiring me to write a custom cucumber main class with cucumber run time.
Is there any way, we can include CustomFeatureParser directly into the cucumber's Main?
Thanks in Advance

Related

Test dependency for Selenium tests

I need to execute tests in specific order (Login, Go to menu, Open form, do several tests). Back in 2014 we used TestNg method dependency. This is very important feature for end-to-end testing. JUnit 5 has only #FixMethodOrder which is less powerful. I like JUnit more and on the other hand I'm missing some JUnit features in TestNg, for instance #Rule. I there some workaround for method dependency in JUnit or should I use TestNg again?
As you have already said you could use #FixMethodOrder annotation or call one test from another (which really shouldn't be an option).
Anyways, I'd stick with TestNG, because as far as I know its idea is to make JUnit tests easier and to improve some functionalities (NG stands for New Generation).

qooxdoo: How to handle non build time plugins?

Given the case that you have a basic GUI that must be extensible by plugins not known when the generate run of the main GUI is done. Contributable plugins may consist of some manifest, resources, localization, some code that is executable in the GUI environment and can provide custom widgets.
From what I see in the moment, it could be done by
Let a plugin developer build against the ordinary source, generating a part for the plugin. Then manually register a qx.io.part.Part with the generated parts to the GUI running on the non developer side.
Just load a combined source JS for that plugin, containing the resources and load them manually via eval.
I'd personally prefere the first one, as it already includes everything that might be used by a plugin. But it uses a method that is marked as internal.
Are there any experiences with that? Are there other, more elegant ways to achieve that?

selenium Automation of MVC application that is uploading, downloading and sharing a files how can i start it

my application is nothing but a storing files securely and share those to whom i need share i.e to whom use files which i already upload
driver.get("htt://jhfirw");
driver.findElement(By.id("txtusername")).clear();
driver.findElement(By.id("txtusername")).sendKeys("----------#gmail.com");
driver.findElement(By.id("txtpassword")).sendKeys("selenium");
driver.findElement(By.name("commit")).click();
Thread.sleep(2000);
but i am not geting how we can simple write a code in TestNG to make reusability of code
To start writing a simple code in testNG please check the Link TestNG.
This will help you to understand how to write methods in an efficient and easy way and how they can be re-used. You can easily automate the uploading,downloading,Sharing features by Selenium in TestNG framework.

Mocking Classes for QFTest

At my company we are trying to make tests for a GUI build on JAVA swing using an automation tool called QFTEST.
In order to get better code coverage we came to the conclusion that a mocking specific classes is necessary. My boss has directed me to learn a EasyMock. However, from reading the documentation I came to believe that EasyMock must work with JUNIT and cannot be used as a standalone... Is this correct?
The bottom line:
Is it possible to integrate EasyMock with QFTEST?
If not, do you have another idea for a solution?
Thankyou!
Though I've not used easymock, we have used mockito (very similar) and we have used qftest separately. There should be no reason why you need junit to use either mockito or easymock as these two will work with testng for example. You will just need to decide how you will make your calls to easy mock/mockito as I think you have a choice of jython/groovy to write extended scripts.
Regards,
Mike

Easy method of translating web application. [cake_php]

I'm writing a web-based computer game (mainly cakephp, some js only for ui). I need to setup another instantion in other language, and for this I need translations. I translated whole project line-by-line, but this generates problem during bug fixes, also both versions require separate svn repo. I don't want to use gettext, because i have very limited server resources, and I don't want to do this live, during execution. They are separate instances anyway, so I need rather a parser that generates copy of a template project depending on file woth translations. Otherwise i will have to write it myself. Anybody knows such a program?
Looks like you didn't read the Internationalization & Localization chapter on cakephp manual.

Resources