Tag Info

Hot answers tagged

6

I have worked on both, and used QTP extensively before. It works best for teams that have one or two engineers who can create and maintain the test suites, and few more QAs with not so much programming skills can run the tests, and make minor changes. It's record and play (IMO) is better than selenium's. Selenium is open source, so you are saving a lot of ...


5

In the HP > QTP > Dat directory there are XML configuration files for each of the plugins loaded into QTP. The .NET file is called SwfConfig.xml. In this file, you can tell QTP how to interact with the control types it sees. In this case, you can define the following: <Control Type="ControlTypeName" MappedTo="SwfCheckBox"></Control> Note ...


5

Note: Last I worked on QTP was back in 2008. My notes are based on that. The most significant difference felt when I transitioned from QTP to Selenium was the programming / scripting language. QTP only supports(ed) VBScript, hence OO approach to test framework used to be more challenging for me. I still used Page object models. I used to create a text ...


3

A link (A tag) does not respect the "disabled" property as per the HTML spec, so if you have a "disabled" link then your developers have done something special to make it that way. Generally a "disabled" link is either not a link at all (text with styles applied to it such as a blue color and underline) or where the default behavior is overridden via ...


3

I don't think that QTP 10 supports IE9, it doesn't appear in the PAM. As far as I know support for IE9 was added in QTP11 via some patches.


2

Guidelines For Automation Framework Design Introduction A Framework defines a set of guidelines for all phases of test automation: Requirement Analysis, Script Design, Execution, Reporting and maintenance. A framework can be a wrapper around some complex internal architecture which makes it easy to use for the end user. It also enforces a set of standards ...


2

If you are looking for a spy for SAP GUI in particular, there is a integrated script recorder in SAP GUI. You can access it via "Customize Local Layout (Alt+F12)" > "Script Recording and Playback...". I also remember a SapGuiScriptingSpy.exe which I think came from SAP, but I don't remember where you can get it from.


2

Anytime ordinal position values for x,y coordinates or indexes are used in a test script there is a high probability of failure. Not only will the test throw a false positive if the object is moved, but also consider different screen resolutons, and different devices. In general ordinal values for objects is generallly not a good practice in robust test ...


2

I Googled for "agentlib:jvmhook". The first link (http://www.learnqtp.com/forums/Thread-Could-not-create-Java-virtual-machine) suggests that your problem may be related to having installed QTP. Someone in that forum said, "There is a document from HP about how to fix your issue: http://support.openview.hp.com/selfsolve...t/KM543247". I am unable to access ...


2

Take a look at http://msdn.microsoft.com/en-us/library/windows/desktop/ms633494(v=vs.85).aspx, and http://www.pinvoke.net/default.aspx/user32/enumchildwindows.html This is a c# example, but you wrap this in a dll and import into QTP. Also, depending on the window you might be over-engineering a bit. If you top window is the parent, and the window you need ...


1

Programs are great at waiting. If your using web driver you can easily add a wait clause like: public static bool WaitFor(this IWebDriver browser, By byLocator, int maxWait = 5) { for (int i = 0; i < maxWait; i++) { if (browser.IsElementPresent(byLocator)) return true; Thread.Sleep(1000); } return false; } ...


1

Here are some links related to your question: QTP vs Selenium http://stackoverflow.com/questions/4774255/qtp-vs-selenium-compare http://blog.testing-whiz.com/2013/06/comparing-qtp-selenium-and-testingwhiz.html


1

First of all, you will need the QTP Java Add in to automate Java applications. Next, look into the QTP tutorials right here, they are interacting with the Flight application that is delivered with the QTP installation. The tutorial will give you a basic understanding of QTP, but skip the VBScript lessons on this site there are better ones. W3Schools is not ...


1

Actually not. Microsoft Test Manager is a simple T. management tool which allows you to run a Test case and report a bug into TFS, built on the top of Visual studio. It would be probably possible to plug it in, but usually there is nothing like this. There are several test frameworks and automated test tools build on the top of visual studio as Ranorex, so ...


1

Insight objects can contain the image either internally (when created during record or learn) or by supplying an image (this is probably what you're looking for). When supplying an image you need to put in in the test object's ImgSrc property, this can done either by using descriptive programming thus: InsightObject("ImgSrc:=C:\pictureOfImageA.jpg").Click ...


1

The question is too broad, however I will try to answer as best as I can. A framework is a combination of predefined process and components that can be used to write actual automation scripts. Following are the critical features of any automation framework Test GUI Object Repository - Any UI automation will have objects to interact with. These object ...


1

I found a partial solution to your problem. You can change the Key Bindings with Tools>Options>Key Bindings. Unfortunately, you cannot use the Backspace as new shortcut key, because the interface thinks you want to delete the previous character (try it if you want, I wasn't able to do this in QTP 10). So we have to work around this: Close QTP Go to the ...


1

I hope this helps. http://www.qtpworld.com/index.php?cid=77 The site in general is really good and on the left menu you have all the main blocks of QTP. I do have to say though, there are the versions 11 and 11.50 which have some slight changes... Thanks.


1

Having a robust framework is always a challenge for an Automation Engineer. I had worked on a project in which, we added every single object into the repository and finally found the maintenance activity as a Herculean task. Also, maintaining a local OR for every script will add to more chaos. (I hope you agree to this) With the help of an Automation ...


1

I am not QTP expert but one QTP expert told me once that it is best to not use Object Repo as - It makes project heavy when it begins to grow in size. You can not version control object repo You can easily port script from one machine to other if you use Descriptive Programming than Object Repo


1

It really depends on what the underlying technology. For Win32 there is Spy++ that ships with Visual Studio. For applications that properly implement the MSAA api's for accessibility you can use UIAutomation, so the tool for that is UISpy which is part of the Windows SDK. For managed .net applications I cannot recommend Hawkeye enough. If the application is ...


1

There is an open source app you can get from here that works in a similiar manner: http://uiautomationverify.codeplex.com And microsoft has a UISpy tool: http://msdn.microsoft.com/en-us/library/ms727247.aspx


1

Srihari... I'm also relatively new to QC. With regard to querying the QC DB, mostly I retrieve BUG data, and learned primarily through trial and error in the Dashboard module. Initially, I didn't know which columns to include so I just did a query to select * from BUG where bg_bug_id = <some bug ID I had logged> Essentially, my base query on BUG is ...


1

I think you already got two rather lengthy answers. Do we still use TestNG when you develop framework using QTP ? Someone who has exposure to both QTP and Selenium Can clarify my question Similar to Page object Pattern what is best practice that QTP suggests for automation I have had experience in designing tool agnostic Automation Test ...



Only top voted, non community-wiki answers of a minimum length are eligible