Hot answers tagged

8

I do not know what features QC delivers for running automated tests, but this is what I would do to maintain a Selenium test-suite: As a test runner for Selenium just use a unit-test runner in the language you are developing your tests in. Most xUnit-tests runners generate the same result files, which can be parsed by report generators for reporting. To ...


6

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 ...


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 ...


6

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 ...


4

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 ...


4

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.


4

Google freelance websites. Try freelancer.com Elance.com Odesk.com And there are many other sites for such services. Find help on forums like softwaretestingclub.com


3

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 ...


3

Tom: This is expected behavior. You cannot dynamically load Recovery Scenarios and use them at runtime. Once it is associated though (manually or programmatically), the next time you run the script, it will be fired.


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

Yes, selenium is better for web testing. QTP is more expensive, and uses old technologies (VBA), but is better for non-coders and testing desktop applications Now please, please, please close this question before the inevitable argument comes.


2

After a bit of searching, it does not look like there is any QTP support for those controls. You can however develop your own extensibility plugins to work with them. Check out QTP's help files for more info on how to do this.


2

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 ...


2

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


2

QTP does not support parallel runs on different browsers, you can run the same test on different browsers by defining the browser in the data table and then iterate on that.


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

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 ...


2

Brian, There are many websites and forum that offer information for all experience levels. Since you're looking for a website with videos, this is the only one that I know of: http://motevich.blogspot.in/ However, there are other websites as well which may aid you in learning QTP. This is the list of sites from http://www.automationrepository.com/qtp-...


2

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 ...


2

go to Computer>Properties>Advanced system settings From Advanced tab choose Environment Variables From System Variables delete JAVA_OPTIONS, JAVA_TOOL_OPTION and IBM_JAVA_OPTIONS Re-Run Application. Works for me while trying to run JMeter On 6/5/2014: Just to add- if the same environment variables exist in User variables list then delete them as well ...


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

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.


2

You must use Java Add-in for QTP to recognize the java objects.


2

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 ...


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 ...


2

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; } ...


2

@Imen: I know below mentioned reporting techniques. And more important is how you want your reports (Line by line/step by step execution report, class/method level report, etc..?). What's the best appropriate method used by Selenium Testers to generate tests reports? Selenium will support multiple reports generation techniques. Testers will be using ...


2

There are many sites like that: utest.com Amazon's mechanical Turk: https://www.mturk.com/mturk/welcome Freelancer.com elance.com I got them by 15 seconds of googling for title of your question. There are more, but you get the idea. Disclosure and warning: I never used any of them in any way, do your own research (google for reviews) before signing in.


2

If it's just a counter (or another single value) that changes, track it as a variable in your test method and concatinate it. driver.findElement(By.Xpath("fixed path" + counter + "fixed path 2")); If that's not enough, check this thread for some other tricks. It's basically the same question as yours.


2

Seems Version One has an API which should let you build support for any tool. The tools you name are not yet on the Version One integration list, but depending on your requirements it might be easy to implement for you team themselves. From the Version One integrations page: As organizations begin to scale agile VersionOne’s open, web-service API and ...



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