watir-webdriver result not same as manual test - windows

... or when is a click not a click..?
I'm testing SAP Enterprise Portal using cucumber & watir-webdriver.
During manual tests I observe the portal behaving as expected.
During the cucumber tests (same user+pass) the portal behaves differently and my test fail.
To be more specific: there is a bookmark in the portal that has the correct URL during manual testing, yet during automated testing it points to "/irj/portalapps/com.sap.portal.navigation.helperservice/html/child.html". This popup is always blank...
I get this using WinXP+IE7 and Win7+IE8.
Is there any evidence of the webdriver behaving differently to a user?
I was trying to automate testing in SAP Enterprise Portal. The challenge with SAP EP is that the HTML is composed of multiple nested, dynamic <iframes> - sometimes 10+ deep! Due to this I had to abandon cucumber/watir-webdriver and I switched to HP QTP with the SAP EP plugin.
The subsequent comments I made were an attempt at sharing the gem versions - I got the formatting all wrong and they looked like some spam bot was attacking the site... I am considering deleting them, but I'm not sure if this will help.

Related

Integrating UFT 14.0 & Selenium Automation test cases

We have 2 clinical applications one is a patient administration created in Oracle forms and another clinical application which is a Java based application. We are in the process of automating the applications to do end to end testing. we have been able to automate the Oracle forms application part in UFT 14.0 and we have been able to automate the Java side in selenium both of these in isolation of each other.
Is there anyway of integrating UFT & Selenium so that we can complete end to end automation testing, so that when we have completed the UFT testing it then goes onto complete the selenium test cases.
UFT is a very powerful tool and you can surely do end to end testing with it. The only reason to test using selenium is if you are trying to use open source tool. With UFT you can record an play back scripts (end to end scenarios) I dont recommend record and play back as it not dynamic but its a way to start. You can also test backend(databases) with fronend(User interface). There are a lot of Youtube videos that you can check out.
UFT Step by Step tutoriols
UFT youtube link
Hope this will help you start
good luck!!!
Other Option can be, to Create Executable file for the selenium Test Cases and Trigger them from UFT at required stage.

Is there any possibility to automate Siebel( High Interactivity framework) application using QTP or selenium

I want to automate Siebel application which is having Siebel HI framework .I tried using qtp and selenium,but the problem is objects ,tables are not recognizable .
Can anyone help me ?
The Siebel STA module is a separately licensed module, as can be seen in the Bookshelf link provided by Motti. Though most Siebel projects have this included, some don't. Please check and confirm that your project is running with this module included: Siebel Test Automation Interfaces.
If you are doing a PoC and want to verify that it works, then Oracle provides the temporary license codes from the same URL.
In Siebel High Interactive (as opposed to Open UI) the HTML interface is a large number of nested iFrames. Although a very diligent Selenium person may be able to automate some scenario's, this is not the best approach for HI. For HI QTP/UFT and serveral other test automation vendors will be able to help you with this.
In case you have the opportunity to run Open UI, then my advice would be to investigate Selenium once more, as the Open UI HTML interface is a single DOM object and makes this much easier.
UFT supports Siebel HI via it's STA framework so the requirements for testing Siebel HI with UFT are:
Install and activate UFT's Siebel add-in on the testing machine
Install STA on the Siebel server
Access the Siebel application via the automation URL
(http://hostname/callcenter/start.swe?SWECmd=AutoOn)

Been asked to use Selenium to test Windows desktop application UI--how is this possible?

A company I applied to had sent me a "test", which I had to decline, due to it not making a lot of sense: They asked me to use Selenium to test a Win desktop app GUI and produce bug reports in the table form. They claimed that they're using Selenium to test Win desktop applications in their company, but they wouldn't tell how.
I did some research, and my understanding is that Selenium works with web browsers only, as it's been specifically designed for this. How can it connect to Windows desktop app? I just don't see any way possible for this. I found a claim that some integrate it with another open source tool to do this, but this "test" was supposed to take 1 hour of my time and installing some other framework, configuring, integrating with Selenium, etc, etc definitely wouldn't fall into one hour time frame. I had heard from another company too, that they wanted me to use Selenium to automate non-browser stuff if they hired me... Still have no clue about this--is this even possible? -- or is it something simply wrong?
You can't. Selenium can only automate web browsers, and even then, only certain browsers (Chrome, Firefox, Internet Explorer, Opera, and occasionally Safari). It interacts with them at a very deep level, very specific to the browser in question, in ways that don't apply to other Windows applications.
Selenium is meant for GUI tests of web applications and nothing else. But you can include Sikuli in webdriver code and can test the any of the applications either desktop or web applications, since it uses Image recognition.
else if you want to test the desktop application using Selenium thne u need to import Autoit and can test those as well

Testing VXML Applications in a Application Simulator

I am looking for a solution to simulate vxml application in a desktop/web browser.
Challenge
i have few hundreds of unit test cases in every new vxml application development.
it is not possible to always make a test call to test every single unit test cases i have. if i can test vxml application in a simulator it will be more easy to test it..
i am aware of that avaya Dialog designer/AAOD have a feature to test application in their inbuild Application simulator which comes with AAOD/DD Eclipse package but this tool can run AAOD/DD projects in workspace alone.
Please refer : Chapter 16 in Avaya dev guide
AAOD's Tool looks like this
is it possible to customize to use this tool to simulate static VXML / Nuance NDF based VXML application ?
or any other tools available ?
Unit testing of IVR applications is challenging and it is near impossible to hit ever possible path in the call flow for an application of any size. I am not aware if you can customize Avaya's tool for your needs. But there is a product out there that may fit some of your requirements. It is Voiyager by Syntellect. It looks like they have a free trial now if you want to try it out. I saw a demonstration of it at SpeechTEK a few years ago and it was pretty impressive. The only reason I did not pursue it at the time is that it was pretty pricey.
Avaya od/dd is a platform dependent tool(IDE) where you can create (vxml+java), test and debug application in the tool. But code which is created outside(Avaya OD/DD tool) the environment is not possible. Because code generated in avaya OD is java format, while executing in the voice browser it is converted into vxml for that u need to give webLM a license to avaya tool.You can use some ivr automation tools like hammer etc.But you need to pay for the software.
VXML apps are just WARs. The only session information transferred between invocations of pages is the session id. We have used Apache JMeter to create apps.
What you can do it try and see if what you want to do can be done via the web browser, by going to http://<server>/<Application/Start there fill the boxes you require (most of the time just filling the ones marked ANI and DNIS will be enough). If your call can be tested this way you can use the tools for web testing, without using Orchestration Designer.
If your app has a CTI/AES connector you may not be able to do this, because the web server tries to connect to AES upon submitting the first page.
As stated above , there are things that cannot be unit tested .
Nuance NDF and SVF applications come with test pages where you can simulate the call flow ; similar tools exit for grammars .

Automating Firefox and Chrome browsers

I am looking for a way to automate couple of browsers... Firefox and Chrome (for now on just Windows) from an external application/process.
Is there a way to do things along these lines:
Start the browser with a URL
Have the browser load up the page, run script etc.
Inspect the DOM
For reference, IE can be automated using the InternetExplorer.Application object which can be created in a shell script using the following javascript, and then I can walk the DOM API:
var ie = new ActiveXObject('InternetExplorer.Application');
The motivating scenario here is automated testing. I'd like to load up the page containing the test code, and gather results after the test has run.
http://watin.sourceforge.net/
WatiN does exactly that, and I believe they recently added Chrome support
Update 6/22/2011:
Currrently WatiN only works on Firefox 2 and 3, not in Firefiox 4 (and almost certainly not in Firefox 5, which was released today). Also, the time of this answer, Chrome support was supposedly being added, but it looks like that never got fully baked and now is not listed as a suported platform on their home page.
Also worth noting, in my experience WatiN got a lot slower when I upgraded to IE9. I saw this on two different machines, and downgrading to IE8 sped the tests back up on both machines.
I still use WatiN heavily, but now mostly for behavior driven design and functional regression testing, which generally are not browser-specific. Then, manually test in FF and Chrome for all progression testing.
Update 9/22/2015:
Elmue is right, it looks like WatiN is no longer being worked on. We've looking into Selenium for our automated acceptance tests now: http://www.seleniumhq.org
TestR will let you automated IE, FF, and Chrome. I've started working on Edge support but just haven't had the time.
https://github.com/BobbyCannon/TestR
You can use the nuget package.
https://www.nuget.org/packages/TestR/
Here is some examples.
https://docs.epiccoders.com/Page/35/TestR

Resources