1. Is their any automation framework?
1. Framework is following the folder structure for future maintenance of all the scripts.
Eg: Saving the OR in separate folder and scripts in another folder etc.
2. How to schedule tests in QTP?
1. I hope u know that how to schedule any task in general(not hinting at QTP). Create a .vbs file and write a program in it that will call QTP and the scripts. Then the steps u will follow in general to schedule task, follow it but browse and point to the .vbs file created. try this.
2. I dont think we can schedule tests in QTP.
But We can schedule tests in Quality center.
3. how to identify a 'web element' class object while recording and running in 'Event' mode of settings. i'm able to run either a mouse over operation or an event but not both as per the requirement...
1. Add html tag and innertext properties to the web element. Remove all other properties to that object in object repository.
4. What is difference between window(" ") and dialog(" ") in QTP while creating script?
1. Window is a seperate window that appears on clicking on a particular link on which we can perform actions like edit the content etc.This will contain many objects like chkbox,edit box, combo box etc.
Dialog box is used by developers to validate a field.It will contain an alert message and OK or/and Cancel buttons.
5. How do you retrieve the Class name of a Test Object programmatically from within a script?
1. msgbox Browser("QTP : How do you retrieve").Page("QTP : How do you retrieve").Frame("google_ads_frame").Link("Fast Object Db/ODBMS").GetROProperty("micclass")
2. Use GetROProperty() function
6. Difference Between text and Textarea checkpoints in QTP
1. Text checkpoint both can check the whole string which u can do by using standard checkpoint. difference is that if u want to validate that a particular string has to come within a defined area then use text area checkpoint . use text checkpoint when the position of text is critical. assume u have a text box in one screen that displays the name entered in previous screen. u will use text area checkpoint to validate that name appears within the text box. u will use text checkpoint in this example to see that surname appears first(assuming some format specified wherein surname should be first).
2. Text check point is to rerieve entire data from non-editable part.(eg.combo box-items) whereas Textarea check point is to retrieve a particular data from it.
I think this is the right answer.if any comments or my answer is wrong,please reply me.
3. Text checkpoint enables us to check that the textis displayed in a screen , window, or web page , according to specified criteria. it is supported for all environments.
Text area checkpoint enables us to check that a text string appears within a defined areas in windows applications, according to specified criteria. it is supported for standard windows, visual basic and activex environments
4. Text Check Point only validates the text string in the field.
Text area searches the entire length of the fields and validates the text strings. It's a good practice the use Text area check point than the txt checkpoint.
No comments:
Post a Comment