What is the use of Regular expression?
Answers were Sorted based on User's Feedback
Answer / guest
R.E are used to identify objects or a string with varying
values.
Use while defining the properties of an object,when
creating checkponts with varying values....
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / b.v.rao
During the execution if atall the QTP is unable to identify
the objects due to the regular changes in its properties
values then to overcome this situation the solution
provided by the QTP is regular expression.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / naren
By using RE we can instruct QTP not to consider values of
an object but only consider the format.
ex:if u r testing a date field with different values then
QTP consider only date format not changing dates.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rambabu-hyd&banga
depends on events our application objects (or)windows
lables are varying .To create datadriven test on this type
of objects and window Test Engineers are inserting regular
expression in corresponding gui map entry.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / krishna
If property value have any special character while executing, QTP throw object identification error , To avoid this error we use regular expression concept here double click on that property value , then RE window open, then edit the value name, put the ""before the special character and check the RE checkbox . Then Run the script QTP will identify the object.
| Is This Answer Correct ? | 0 Yes | 0 No |
Hi I am new to QTP. we are planning to implement automation for the application. I am trying to execute the following script: Set ExcelObj=CreateObject ("Excel.Application") ExcelObj.WorkBooks.Add Set NewSheet=ExcelObj.Sheets.Item(1) NewSheet.Name="Order" ExcelObj.Cells(1, 1).Value = "Name" ExcelObj.Cells(1, 2).Value = "Ordernum" ExcelObj.Cells(2, 1).Value = "nam" ExcelObj.Cells(2, 2).Value = "21" ExcelObj.ActiveWorkbook.SaveAs "c:\test1.xls" ExcelObj.Quit Set ExcelObj = Nothing in the above script for the line(ExcelObj.Cells(2, 2).Value = "21") it is inserting the value 21 successfully.this is fine But if i want to insert a variable instead of the constant value then what should be the modification in the script. For example: If user retrives a value throug "GetRoProperty" and wants to insert the value into then how the script changes?
synchronization, wait,wait Property?
What are different types of frame works ?
How to make Non reusable actions into reusable action? is that feature available in QTP
How can we disable popup blocker? (I think it means when we get a pop up messge(its error) how we wil disable that one with out interrupting normal process)
What are the types of Object Repository’s in QTP?
Difference between object identification and smart identification
Are You using any frame work? What is that? Explain about that.
Hi Friends, Iam Beginner in QTP and i want to Try the software QTP. I checked the mercury site for QTP Trial version and i found QTP 9.0. The thing is that it supports windows 2000,Xp but not windows 98.And Iam using Windows 98 onlu and it's not possible for me to upgrade to windows 2000. Pls. guide me how to get the trial version of QTP which supports windows 98 Operating System The version may be 6.5 is ok for me.Thanks in Advance
i have an external excel datasheet where it only contains 3 rows. after qtp executed the code to import the datasheet, the datatable getrowcount method now gives me a different value, lets say 60,000+ instead of only 3. i did not have any values starting from row 4 of my excel file. why is this happening? this also results to the qtp report to load for a very long time.
Hi guys pls any one send me the Qtp Licensed key of version 10.0 pls
if anyone has idea of the interview procedure in covansys, plz send me a mail?