Friday, March 23, 2007

QTP Questions

Q:I have a user interface in the application which has windows with the same labels. So when I make a recovery scenario, how do I distinguish the one with the labels and the one without as I do not want the recovery scenarios to be called on the wrong one?
A:When defining the identification criteria in the pop-up trigger, you can also use the text within the window (or a substring from it) on top of the window title, as the differentiator between the windows.
Q:Can it be confirmed that QualityCenter works with Microsoft SQL Server?
A:Yes, Quality Center supports MS SQL server 2000 Enterprise edition.
Q:What is the best approach for migrating both test cases and defect entries from the home-grown application to QualityCenter?
A:We recommend you use the Word / Excel add-in and import the data into Quality Center.
Q:We're using QTP v8.0 and capturing GUI with formatted numeric fields such as currency, etc. with commas and decimal. QTP does not capture the input (so that I can parameterize this later), but captures the formatted field after entry. How do I make QTP capture my input instead of the formatted field? How do I validate this formatted field that it contains valid input?
A:1. If your numeric fields are edit boxes and QTP record commands like WinEdit.Set "1,234.56" Then just replace Set command with Type command like WinEdit.Type "1234.56"2. In order to check the numeric value of the formatted field use VBS functions to convert from strings to numbers. For example:text = WinEdit.GetROProperty("text") ' returns string "1,234.56"num = CDbl(text) ' returns number 1234.56num1 = CInt(text) ' returns integer number 1235More information is needed about this issue. But it sounds like a Data Table formatting issue where the text is being captured in one format but it shows up in QTP's data table in another format
Q:One of the biggest highlights of the conference has been the concept of employing the BTO strategy while utilizing outsourced resources. How is Quality Center going to handle application security since these different resources may not exist on a common intranet?
A:Since Quality Center utilizes HTTP communication through port 80, it works for both intranet and the internet environments. You are correct that outsourcing adds new security requirements. In addition, Mercury offers Quality Center as a managed service, which has further security requirements. For Quality Center 8.2, we have added support for Secure LDAP. And we will continue to enhance the security capabilities of Quality Center in upcoming releases. We will implement our electronic signature solution for Quality Center, add a more flexible security group structure, and improve integrations with existing security and identity management infrastructure.

Q:I am trying to run tests from command line using QTPlaunch.exe with close option after executing the test. In my driver script execution it will set results file folder and other settings. Once the test is scheduled at the end it will ask for save option, this causes manual interference to accept yes or no. We need to fix this in order to execute the test unattended fashion using QTP command line utilities.
A:We suggest you try restoring the default settings at the end of the test run to alleviate the problem. Note that in general, we recommend that using the command line option for automation be dropped in favor of using the QTP Automation API. If these suggestions do not resolve your issues, please do not hesitate to contact CSO for further assistance.
Q:Is Mercury planning to improve its reporting capability in TD?
A:We believe that a tremendous amount of valuable information is generated during the quality process, and the ability to make use of that information for better decision making and project management is one of the key differentiators of TestDirector for Quality Center. To that end, we do plan to continue to improve the reporting capability of TestDirector as part of Quality Center. With Quality Center 8.2, we have enhanced the Dashboard and updated the Advanced Reports add-in. In upcoming releases, we will continue to enhance the dashboard, standard reports, and advanced reports.

Q:Upgrade of Test Director from 7.x to 8.0; Discuss best approaches and complications and pitfalls and benefits from the upgrade also things to watch out for...
A:We have a "Best Practices" document in the KB about upgrading to TD 8.0. CSO website - Download section or KB, you can search for "Best Practices"


Q:Several QTP scripts may be called in a BPT test. Each one may have different data in a data table. How can the BA in BPT override and control data tables ?
A:The data table is not used when working in BPT. Providing data for these runs should be done only through Quality Center in an interface easily accessible by a BA.A business component is a mini QTP test which has its own data table. Business Process Testing does not have control of data tables used by business components. It controls what Business Components are, how input/output parameters can be passed among the Business Components, and the order of the components. Currently there is no way from QC side to control it.


Q:Can users who prefer descriptive programming in QTP have the ability to SaveAs Descriptive? If this is chosen, the OR values could be saved in the script instead of the logical values.
A:No, this functionality is not available.
Q:Will QTP/BPT work with descriptive programming or only through the object repository?
A:QTP/BPT will work also with descriptive programming, but if you want to utilize the Keyword View for objects (not only operations) you must use an Object Repository.
Q:WinRunner uses TSL which is a derivative of C. QuickTestPro is VBScript. How are you going to be able to port WinRunner scripts to QuickTestPro?
A:Mercury's approach has not been to port scripts, but rather has an integrated platform on which all tests types can work together. This is available today in Quality Center's Test Lab. Business Process Testing will provide another avenue for our testing products to work together.While it is possible to port scripts, it is also possible and generally far easier to call your WinRunner script / function from QuickTest Professional and visa versa. This integration is available today in the Mercury Functional Testing product, which includes full QTP and WR licenses.
Q:QuickTestProfessional with SAP. External Support with Quality Center. Worried about future support.
A:SAP is one of our most strategic environments and we are committed to supporting it. QuickTest Professional SAP add-in 8.2 supports the latest SAP environments, including SAP GUI 6.40 and Enterprise Portal 6. It should be available early next year.If the question is referring to QTSAP integration with TD/QC. We will continue to support this integration with QC. QuickTest Professional with the SAP add-in will work with QC as it does for all add-ins.


Q. What was the new features available in QTP 8.2?
A.
New Keyword View
Updated Keyword View steps
New comment field row
New Documentation Only view
Multiple application areas
New Local parameter type
New Function Definition Generator
Q.Can we merge two Object Repository files into one file ?
Yes, by using QTP Plus Install QTP Plus and go to
Start > Quick Test Plus > Utilities > Repositories Merge utility
Q.What is the Extensions of Script, Repositories Files ?
Script ------ .mts
Action based Object Repositories ----.mtr
Shared Object Repository -------.tsr
Q.How do you automate the Quick Test settings ?
A.Open Test > Settings and before setting up the settings click on “Generate Script” button and save that script and every time before opening the QTP execute the saved Script.
Q.Explain about Update Run in QTP ?
A. Test > Update .When you update a test or component, QuickTest runs through the test or component to update the test object descriptions, the expected checkpoint values, and/or the Active Screen images and values. After you save the test or component, the updated data is used for subsequent runs.


Q.How do you write messages to the report?
A. By using Report Event method we will write messages to the reports.
Q.What is a command to invoke application?
A. By using SystemUtil.Run method or by using InvokeApplication statement
Q.What is the diff between SystemUtil.Run and Invoke ?
A. you should use a SystemUtil.Run statement to run applications or to open filesin their default applications. InvokeApplication statement is used to open the executable files and which is supported primarily for backward compatibility.
Q.How can I improve the working speed of QuickTest ?
A. You can improve the working speed of QuickTest by doing any of the following:
· Do not load unnecessary add-ins in the Add-in Manager when QuickTest starts
· Run your tests in "Fast mode." From the Run tab in the Options dialog box, select the Fast Option
· If you are not using the Active Screen while editing your test, hide the Active Screen while editing your test to improve editing response time.
· Decide if and how much information you want to capture and save in the Active Screen
Decide when you want to capture and save images of the application for the test results.


Q.How do I maintain my test when my application changes?
A. The way to maintain a test when your application changes depends on how much your application changes. This is one of the main reasons you should create a small group of tests rather than one large test for your entire application. When your application changes, you can rerecord part of a test. If the change is not significant, you can manually edit a test to update it.