What is descriptive programming in QTP?
Creating a test without using an object repository is called descriptive programming because you describe objects as part of a script.
eg.
Browser("title:=Google").Page("title:=Google").Link("text:=Advanced Search").Click
Pay attention to :=the names of test objects, this is not an emoticon, it means that the property titlematters Google(like a regular expression).
:=
title
Google
You can also use the object Descriptionthrough Description.Create.
Description
Description.Create
You can see more details here .
qtp scpriting -
, , .
Browser("Browser").Page("Page").WebEdit("Name:=textbox_name","html tag:=INPUT").set "My New value"
http://www.learnqtp.com/descriptive-programming-simplified/
, - > QTP , . - > . - > , -. , Google yahoo, ,
1. script . , . ( "micClass: =....." ) Page ( "micClass: =..." ).. Link ( "micClass: =..." )
Note: We can start Descriptive programming at any time, but once started we can not use Object Repository till the line is finished.
Dheeraj
Mindfire Solutions,
, , script, .
, , . , QTP , .
, QTP, OR ( ). , : http://www.bytetips.com/descriptive-programming-in-qtp/
( "title: = Google" ). ( "title: = Google" ). ( ": = " ). , . , 1 , .
- Description:
Dim oDesc 'Description Object Dim colObject 'Object Collection Set oDesc = Description.Create oDesc( "micclass" ).value = "Link" oDesc( "text" ).value = ".*ma.*" 'Images oDesc( "text" ).regularExpression = False Set colObject = Browser( "Google").Page("Google").ChildObjects( oDesc )
? , . , , , ( ).
, script.
, qtp.It [ โ ]. . : -
, E.g. HTML ID, ... , , script, ()
, , QTP, vbscript - , , .
re. , . Static , / (.. Dim myBUTTON), .
, , , ( ) . , ( Artems) oDesc , , , , , ( / ). , , , . ! , , , Y.
, .
-
Browser("Google").Page("Google").Link("Advanced Search").Click
, (, ), (, Google), , .
- . , , , , , .
Both have pros and cons. Let's say if your phone is dead or not on the network, Google maps (object repository) will no longer work for you. You have to go with your own path.
"Descriptive programming" is incorrect.
He used it very erroneously, as a synonym for Dynamic Object Recognition.
Writing Descriptive Level Programming for qtp
Source: https://habr.com/ru/post/1737680/More articles:jQuery UI Dialog - a modal window temporarily closes a dialog during an action - jqueryhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1737676/seed-a-new-svn-repository-with-a-revision-number&usg=ALkJrhgFBNK7eFEgsr6MD_oHdAnpdVnlYwupdate problem or possible error - c #what is the difference between LINQ and ADO.net - linqMySQL: select words as strings, even som - "new line", separated in one field - splitUsing admin panel with declarative authorization and autology? - ruby-on-railsWhy does my php base class expect an argument when I create it? - phpSet Android Watch List Size - androidSql Server 2000 Stored Procedure Preventing Parallelism or Something Else? - performanceThe type already contains a definition for 'Zehut' - c #All Articles