It is Component Object Model (COM).
1.First try to record any of the web application like google. So that, you will be understanding the syntax of the the script and try to learn basics of the VB script.<br>2.QTP tutorial is more than enough to learn QTP scripting.<br>3.To write scripts in QTP first we have to build Object Repository. So, first add objects to the object repository, then set the properties for the objects.<br><br>Then write script in QTP depends on your requirements.<br><br>4.Framework is following the folder structure for future maintenance of all the scripts. <br><br>Eg: Saving the OR in separate folder and scripts in another folder etc.<br><br> <br><br>
Another major limitation of Netscape as compared to IE is that not all properties of a page can be changed at any time. This is because when the web page is once written to the screen, only position, visibility and clipping can be manipulated dynamically.
The good news is that from the web designing point of view you can now forget completely about debugging all your websites for Netscape 4.x as a very small fraction of the Netscape community still use it. Think of it this way, if you are bent on making the website work perfectly for version 4.x then you cannot use some effects (especially javascript and CSS) that are easily supported by the latest versions of all the major browsers.
For Dreamweaver to not keep throwing up Netscape 4 errors set the browser check settings to show Netscape 6 instead of the default 4.0. To do this click on the Results panel, select the Target Browser Check tab, click on the green arrow to show the list of options - select the Settings option and set Netscape Navigator to version 6.0.
1.First try to record any of the web application like google. So that, you will be understanding the syntax of the the script and try to learn basics of the VB script.<br>2.QTP tutorial is more than enough to learn QTP scripting.<br>3.To write scripts in QTP first we have to build Object Repository. So, first add objects to the object repository, then set the properties for the objects.<br><br>Then write script in QTP depends on your requirements.<br><br>4.Framework is following the folder structure for future maintenance of all the scripts. <br><br>Eg: Saving the OR in separate folder and scripts in another folder etc.<br><br> <br><br>
If u get that errror, please click on the Details Option in the Pop UP message that comes, Then u will know where the error is.
After that Go to Object Repository, and Highlight the particular object,if it highlights , then there may be problem in ur script.Otherwise , Add the Object to the Repository by clicking on the Add Objects Button..
These two major browsers are coming closer to each other regarding the DHTML effects possible towards newer versions. However you will need to remember that IE is more flexible than Netscape and due to small differences something that works really well in IE might not work at all in Netscape. So you need to be really careful and alert when programming for both browsers. One hint you can follow in most cases is that if you get it working in Netscape it should most probably work in IE.After that Go to Object Repository, and Highlight the particular object,if it highlights , then there may be problem in ur script.Otherwise , Add the Object to the Repository by clicking on the Add Objects Button..
Another major limitation of Netscape as compared to IE is that not all properties of a page can be changed at any time. This is because when the web page is once written to the screen, only position, visibility and clipping can be manipulated dynamically.
The good news is that from the web designing point of view you can now forget completely about debugging all your websites for Netscape 4.x as a very small fraction of the Netscape community still use it. Think of it this way, if you are bent on making the website work perfectly for version 4.x then you cannot use some effects (especially javascript and CSS) that are easily supported by the latest versions of all the major browsers.
For Dreamweaver to not keep throwing up Netscape 4 errors set the browser check settings to show Netscape 6 instead of the default 4.0. To do this click on the Results panel, select the Target Browser Check tab, click on the green arrow to show the list of options - select the Settings option and set Netscape Navigator to version 6.0.
To make use of Dlls..CreateObject can be used.
like ;
set obj = CreateObject("mydll")
mydll.customfunctions
like ;
set obj = CreateObject("mydll")
mydll.customfunctions
Micclass - in web instead of class Name micclass used. To access the object of webedit class name then
Set obj=Description.Create
Obj(?miclass?).Value=?WebEdit?
To refer different DLLs.
Set OtherDLL=CreateObject(?Server.DLLName?)
Set obj=Description.Create
Obj(?miclass?).Value=?WebEdit?
To refer different DLLs.
Set OtherDLL=CreateObject(?Server.DLLName?)
Regression testing is not tool dependent.
Firstly there should a regression test stratergy, based on this stratergy you can group functional test cases to form regression test suites.
Then these test suites are automated based on regression group
Firstly there should a regression test stratergy, based on this stratergy you can group functional test cases to form regression test suites.
Then these test suites are automated based on regression group
Regression testing is not depends on tool.once application should be stable and n-number of regression cycle is there then only we should go for QTP and application should not be stable dont go for automation.
Actually in QTP we have an option called virtual object manager , by this we can map the objects (virtual objects) and assign the coordiantes to them and by this we can make it as a standard object.Example
Dim fso, f1
Set fso = CreateObject("Scripting.FileSystemObject")
Set f1 = fso.CreateTextFile("D: estfile.xls", True)
and Then use If condition's
to store the results
If Browser("abc").Page("xyz").Exist Then
f1.writeline("Step1 Login details is pass")
else
f1.writeline("Step1 Login details is Fail")
End If
Dim fso, f1
Set fso = CreateObject("Scripting.FileSystemObject")
Set f1 = fso.CreateTextFile("D: estfile.xls", True)
and Then use If condition's
to store the results
If Browser("abc").Page("xyz").Exist Then
f1.writeline("Step1 Login details is pass")
else
f1.writeline("Step1 Login details is Fail")
End If
append each result info to datatable. in the Final Step of execution export the Datatable excel to some location. it is an easy way to get the results in excel File.
QTP requires more memory. And some knowledge of VB Script programming to create functions in project.
Advantage :
1. Regressoion Testing can done in quick time.
2. A Vareiety of Check point & also customtize it as per your need to make the script more powerful.
3. Also the testing can be divided into a no of tasks so that it can be done faster.
4. Object repository can be stored at server, & used be other user.
Limtation :
1.Can do only functional testing.
2.Cannot perform Performance testing.
1. Regressoion Testing can done in quick time.
2. A Vareiety of Check point & also customtize it as per your need to make the script more powerful.
3. Also the testing can be divided into a no of tasks so that it can be done faster.
4. Object repository can be stored at server, & used be other user.
Limtation :
1.Can do only functional testing.
2.Cannot perform Performance testing.
Using "Call to Existing Action" we can call one action from another action.
Go to Insert ->select Call to Existing Action
Select which action wants to call.
Go to Insert ->select Call to Existing Action
Select which action wants to call.
In 2 ways we can call an action i.e
1) Call to copy of Action.
2) Call to Existing Action.
In the above 2 methods,in calling action a statment will appear as Runaction.Action Name.IterationNumber
Example.Runaction.LaunchApp.Oneiteration.
1) Call to copy of Action.
2) Call to Existing Action.
In the above 2 methods,in calling action a statment will appear as Runaction.Action Name.IterationNumber
Example.Runaction.LaunchApp.Oneiteration.
No comments:
Post a Comment