Data Driven Framework - Selenium Webdriver - frameworks

I am automating a web application testing using Selenium Webdriver(Java with JUnit) and I am quite familiar with Data Driven Testing. Now I want to build a Data Driven framework and I don't have any resources to start with.
Does anybody have idea how I could start with building framework and what are all the initial setup I need to make.?
Any suggestions would be appreciated. !!

Get start google with TestNG or JUnit then PageFactory and PageObject

You need to create Excel utility for Read and Write data in Excel sheet, Going forward you can manage it through Selenium.
Reference Link:
https://www.guru99.com/data-driven-testing.html
https://www.softwaretestinghelp.com/data-driven-framework-selenium-apache-poi/
http://toolsqa.com/selenium-webdriver/data-driven-testing-excel-poi/

Related

Use protractor for desktop application testing

I have installed application on my desktop.I want to do the automation testing of this application with the use of protractor scripts.Please provide the suggestions.
Depends on what type of application you want to test. ProtractorJS is not the best tool for desktop app testing - since it designed for web-apps.
But if your desktop app built on electronjs - that changes the picture. In this case you can try to use this tutorial - https://github.com/electron/electron/blob/master/docs/tutorial/using-selenium-and-webdriver.md
Protractor provides method .wrapDriver() http://www.protractortest.org/#/api?view=Browser.wrapDriver
So i think you can try to wrap that driver from tutorial into protractor instance and work with it. I never tried that, and unfortunately you should try by your own, since it is not a common use-case of protractor.

using phonegap with gwt in IntelliJ

I want to migrate all my project to one source code using GWT.
The wen is using GWT and using RPC to GAE.
I'm looking for a phonegap-gwt-intelliJ sample project. Something that I can start with.
Thanks
yo
http://funfreelance.com/android-using-intellij-ide-with-phonegap/
enjoy :)
Well, i've done today an Hello World APP with Eclipse/PhoneGap and, as i use to code with PhpStorm ,i found Eclipse not so well and complicated to implement simple things ....(not as fast , complicated way to add simple javascript Autocompletion, you have to add HTML view , PHP view and so one) .... witch IDE are you using (for the people that read this post ) .....

LoadRunner and wicket application

Doing some research with regards to application framework used on the SUT am going to LoadTest using Loadrunner I fond the application is developed using wickets.
I have generated script using web http/html protocol against a wicket
application and there was some calls recorded in the following
format,script is failing at this URL when i ran the script in VUGen.
http://somem/nnnweb/main/ ?
wicket:interface= :1:someSearchForm :someSearchForm :searchInfo: :IActi
vePageBehaviorListener :0:&wicket: ignoreIfNotActiv e=true&random=
0.038901654740178815",
I find out like when i generate the script which has just views(
viewing tabs) is working fine, but when i edit somefileds and submit
the script is generating the above calls ( http://xxx...) and failing
This guy has explained just the same issue here:
http://tech.groups.yahoo.com/group/LoadRunner/message/27295
I hope it is ok to refer other sites in Stackoverflow?
General question. Does loadrunner support testing of wicket application and is TruClient the best choice here? I actually got it to work with TruClient, but as I understand there are drawbacks with memory footprint using TruClient, but maybe it is time to move on to next generation protocol given my project has decided to use wicket framework?

In Jenkins plugin developement, what is the Stapler (org.kohsuke.stapler.Stapler)?

I am trying to create a simple jenkins plug-in that will run a job but Project.doBuild() requires StaplerRequest and StaplerResponse.
What is the Stapler (org.kohsuke.stapler.Stapler), StaplerRequest(org.kohsuke.stapler.StaplerRequest), and StaplerResponse(org.kohsuke.stapler.StaplerResponse)? What do they do and how do they work?
Thanks for any help.
Check out http://stapler.kohsuke.org
Stapler is a library that "staples" your application objects to URLs, making it easier to write web applications. The core idea of Stapler is to automatically assign URLs for your objects, creating an intuitive URL hierarchy.

jUnit testing with Google Web Toolkit

I would like to be able to run a set of unit tests by linking to them in my application (e.g. I want to be able to click on a link and have it run a set of jUnit tests). The problem is that GWT and jUnit don't seem to be designed for this capability -- only at build time can you run the tests it seems.
I would like to be able to include my test code in my application and, from onModuleLoad for example, run a set of tests.
I tried to just instantiate a test object:
StockWatcherTest tester = new StockWatcherTest();
tester.testSimple();
but I get:
No source code is available for type com.google.StockWatcher.client.StockWatcherTest;
even though I include the module specifically.
Would anyone know a way to do this? I just want to be able to display the test results within the browser.
If you are trying to test UI elements in GWT using JUnit, unfortunately you may not do so. JUnit testing is limited to RPC and non-UI client-side testing. See this thread for a great discussion on what you can and cannot do with GWT jUnit testing.
If you are not trying to test UI elements, but are instead trying to inject your RPC code or client-side logic with test values (hence why you want to be able to click on a link and run a set of JUnit tests), then you should follow the following guide from testearly.com: Testing GWT with JUnit. In short, you should make sure that the method you are testing does not include any UI elements and if the method you are testing is asynchronous in nature, you must add a timer.
In 2.0, HTMLUnit was added. You may wish to use this instead of firing up a browser each time you wish to test.