07-06-2013, 11:37 PM
Here is my approach...please add your comments as well. Thanks
1. In QTP AOM how to open a file without giving the full path? is there any way to find a file in the system just by giving its name? [You have to write a vb script to find the file]?
No idea
2. If you are trying to execute Browser("creationtime:=1")…..but there is only one browser with creationtime=0….what will happen explain in detail?
When tried its closing the browser with craetiontiem:=0 though I mentioned Creationtime:=1.
3..What are the factors you consider while choosing the frameworks? if you want to go for DDF can't we use KDF for that?
- I will check the following factors before choosing a framework
Who is the audience going to execute it.
Complexity of the application
Does the application needs to be tested with different sets of data.
No of Test scenarios its needs to cover.
4. When you search in google you get no of links in results page. So write a program to click on last link in results page.
First of all I am not getting how to count number of search pages in results page.
When I spy on those page numbers links I am not finding unique property. So I am not getting how to approach it.
Please give an idea on how to approach it then I will try to write a program.
5. How do you capture the RAM size of each system you are working.
6.Write a script to click on a link in a WebTable….also once clicked on the link how do you come out of the loop?
We have to use flag to come out of the loop when condition met.
7. What are different options if you want to share values between different actions.[without using environment variables]
1. Data tables
8. In Cycle 1 your script passed but in Cycle 2 its failed. How you debug? what could be the different reasons for failure
1. Change in Object Properties
2. New features might be added to the application
3. New changes might not be recognized by QTP
1. In QTP AOM how to open a file without giving the full path? is there any way to find a file in the system just by giving its name? [You have to write a vb script to find the file]?
No idea
2. If you are trying to execute Browser("creationtime:=1")…..but there is only one browser with creationtime=0….what will happen explain in detail?
When tried its closing the browser with craetiontiem:=0 though I mentioned Creationtime:=1.
3..What are the factors you consider while choosing the frameworks? if you want to go for DDF can't we use KDF for that?
- I will check the following factors before choosing a framework
Who is the audience going to execute it.
Complexity of the application
Does the application needs to be tested with different sets of data.
No of Test scenarios its needs to cover.
4. When you search in google you get no of links in results page. So write a program to click on last link in results page.
First of all I am not getting how to count number of search pages in results page.
When I spy on those page numbers links I am not finding unique property. So I am not getting how to approach it.
Please give an idea on how to approach it then I will try to write a program.
5. How do you capture the RAM size of each system you are working.
Code:
Set objWMIService = GetObject("winmgmts:"& "{impersonationLevel=impersonate}!\\"& strComputer & "\root\cimv2")
Set colComputer = objWMIService.ExecQuery("Select * from Win32_ComputerSystem")
For Each objComputer in colComputer
msgbox Round(objComputer.TotalPhysicalMemory/(1024*1024*1024),3)
Next
6.Write a script to click on a link in a WebTable….also once clicked on the link how do you come out of the loop?
We have to use flag to come out of the loop when condition met.
7. What are different options if you want to share values between different actions.[without using environment variables]
1. Data tables
8. In Cycle 1 your script passed but in Cycle 2 its failed. How you debug? what could be the different reasons for failure
1. Change in Object Properties
2. New features might be added to the application
3. New changes might not be recognized by QTP