How to automate Eclipse using QTP 10 - html

This is first time i was thinking about this scenario. I have few scripts in Selenium webdriver and few script in QTP.
Using Webdriver, I have automated web based HTML5 Application via eclipse Juno
and using QTP, I have automated SAP Purchase request placing order.
Now both become depended module for me, from SAP data's are flowing to web base application.
And I'm planning to automate eclipse via QTP so that it will execute selenium script.
Can someone provide me how to proceed with situation and give me some strategy to proceed.
Thanks in advance
Raj R

Since the Eclipse UI is written in Java you should be able to automate Eclipse using QTP's Java addin.

If it is reasonable possible, I wouldn't record actions on Eclipse from QTP. Are you aware that eclipse has a rich set of runtime options? See if you can create an eclipse .ini file that starts the desired Selenium test. When it works as desired, you can start this file with the SystemUtil.Run statement in QTP.

Related

Selenium IDE vs Selenium builder

I want to know what's the difference between Selenium IDE and Selenium builder.
All I know it's Selenium builder can support webdriver.
But what is a webdriver?
Thanks
From the Selenium IDE website
Selenium IDE is an integrated development environment for Selenium scripts. It is implemented as a Firefox extension, and allows you to record, edit, and debug tests. Selenium IDE includes the entire Selenium Core, allowing you to easily and quickly record and play back tests in the actual environment that they will run in.
On the other hand, Builder is an extension that helps you build Selenium tests more quickly by helping turn your actions into Selenium code.
Finally a webdriver is a web automation framework that allows you to execute your tests against different browsers. Selenium-webdriver is one example, but Watir-webdriver is another. These frameworks spin up a browser instance and mimic user action against the page's elements in order to test webpages and webapps.
'Selenium Web Driver' is a tool for writing automated tests of websites. It aims to mimic the behavior of a real user, and as such interacts with the HTML of the application.

How difficult it is to reverse engeneer code from UWP / Windows Store apps?

I know that apps submitted to Windows Store are compiled using .NET Native. How difficult it is to reverse engineer the source codes from apps downloaded from windows store? Does it make sense to obfuscate the code first?
Even if it gets compiled in native, the behaviour of the program can be read using a native debugger, like http://x64dbg.com/ (in assembler, of course...). The exact original code can't be read.
So in the end it depends on the complexity of your program and the patience/interest of the person doing the reverse engeneering.
if you compile it in native it is not possible to reverse engineer it.
if you compile it in managed, they are open, any decent dev can go to see your code.
hth
-g

Is there a way to setup a Netbeans HTML5 and Web application project?

The new Netbeans 7.3 Beta 2 adds a really nice feature for creating an HTML5 application. It also provides a great way to create a Java Server based Web Application. But there does not appear to be any way, within the Netbeans IDE, to take advantage of both technologies in one project.
Is there a way combine these two type of projects, so there is only one web directory structure with both the HMTL5, js, and web services files?
This is definitely planned for the next release, but it is not yet possible in NetBeans 7.3. You can follow this enhancement request to see progress in this area: http://netbeans.org/bugzilla/show_bug.cgi?id=222236. If you'd like to experiment with this, you can build NetBeans with the patch attached to that issue.

WSO2 JUnit/Integration Testing

I'm in the process of building a Carbon Archive using the new WSO2 Developer Studio. I'm trying to work out how I can wrap the components (Sequences/Proxies etc) in JUnit tests. These tests will need to run as part of a CI build process (Jenkins) in order to detect errors with any modified code. I've done some research and can't seem to find anything that immediately stands out on how to achieve this. I did find this link https://wso2.org/jira/browse/TOOLS-855
which suggests that it hasn't yet been implemented. Can anyone confirm when this will be implemented or if there is any way at present to achieve this?
There is currently no straight forward way to implement this scenario and this feature will be supported in a future version.
One mechanism i can think is that, add a separate Test module as a part of the build which executes after building C-Apps.
So what happens in here is that, first Jenkins produce the CAR file for C-Apps. Then Maven start executing the JUnit test suite. Before the execution of Test Suite, you can configure maven to copy the CAR files to Servers and start up server. Then execute the Test Cases against the started up server.
This way you can deploy the new CAR files in your Carbon Server and execute the tests against the new configuration in the Server.
Thanks and Regards,
Harshana

What are some best practices for using continuous integration (e.g., Hudson) with mod-perl for apache module development?

I am looking into using Hudson to perform continuous integration testing for developing apache modules using mod_perl. Does anyone have any best practices or recommended strategies for utilizing these kinds of CI systems with apache modules?
I believe most CI systems are as simple as just accepting some common test output format, or even as basic as a true or false result from an external script.
You can easily wrap checking out code, starting a server, running tests against the server, stop the server and output in TAP format and either convert to corresponding format, or simply use the TAP output as the result against most CIs out there.
If using Test::Unit, the XML output is compatible with Hudson; check the JUnit option in the post-build section and point it at any XML files produced and you will have pretty nice test reporting.
We do this as well as using Devel::Cover and using the htmlpublisher plugin to archive and publish this.