- QTP - Designing a Framework
- QTP - Frameworks
- QTP - Automation Object Model
- QTP - Descriptive Programming
- QTP - Working with XML
- QTP - Accessing Databases
- QTP - Virtual Objects
- QTP - GUI Objects
- QTP - Test Results
- QTP - Library Files
- QTP - Environment Variables
- QTP - Recovery Scenarios
- QTP - Error Handling
- QTP - Debugging
- QTP - Smart Identification
- QTP - Synchronization
- QTP - Checkpoints
- QTP - DataTables
- QTP - Actions
- QTP - Object Repository
- QTP - Record and Play Back
- QTP - Environment Setup
- QTP - Test Automation
- QTP - Introduction
- QTP - Home
QTP Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
QTP - Working with GUI Objects
在文字执行期间,有多种德国马克目标,与该目标互动。 因此,必须了解关键全球倡议目标的基本方法,我们将能够有效地加以利用。
Working with Text Box
下面是我们在鲁普时代使用的文本箱的方法:
Cpck-Cpcks on the text Box
SetSecure-用于安定地在密码箱中确定案文
WaitProperty-Waits Till成为不动产价值的真实情况
Exist - 核对文本框
GetROProperty(“text”)——《文本框》的价值
GetROProperty(“Visible”)——如果明显可见,回归者的价值就会增加。
Example
Browser("Math Calculator").Sync Set Obj = Browser("Math Calculator").Page("SQR Calc").WebEdit("n") Cpcks on the Text Box Obj.Cpck Verify if the Object Exist - Returns Boolean value a = obj.Exist print a Set the value obj.Set "10000" : wait(2) Get the Runtime Object Property - Value of the Text Box val = obj.GetROProperty("value") print val Get the Run Time Object Property - Visibppty - Returns Boolean Value x = Obj.GetROProperty("visible") print x
Working with Check Box
下面是一些关键方法,可以与检查箱合作。
Cpck-Cpcks on theeck Box. 甚至对外国资产或外国资产进行制衡,但用户不会确信情况如何。
WaitProperty-Waits Till成为不动产价值的真实情况
Exist——检查箱是否存在
GetROProperty(名称) 核对箱名称
GetROProperty(“Visible”)——如果明显可见,回归者的价值就会增加。
Example
To Check the Check Box Set Obj = Browser("Calculator").Page("Gmail").WebCheckBox("PersistentCookie") Obj.Set "ON" To UnCheck the Check Box Obj.Set "OFF" Verifies the Existance of the Check box and returns Boolean Value val = Obj.Exist print val Fetches the Name of the CheckBox a = Obj.GetROProperty("name") print a Verifies the visible property and returns the boolean value. x = Obj.GetROProperty("visible") print x
Working with Radio Button
以下是与布顿电台合作的一些关键方法:
Select(RadioButtonName>- 帮助测试者制作“本国”电台插文
Cpck-Cpcks on the Radio Button. 甚至Button ON电台或外国广播公司,但测试者不能获得地位。
WaitProperty-Waits Till成为不动产价值的真实情况
GetROProperty(名称) 掌握布顿电台的名称
GetROProperty(“Visible”)——如果明显可见,回归者的价值就会增加。
Example
Select the Radio Button by name "YES" Set Obj = Browser("Calculator").Page("Forms").WebRadioGroup("group1") Obj.Select("Yes") Verifies the Existance of the Radio Button and returns Boolean Value val = Obj.Exist print val Returns the Outerhtml of the Radio Button txt = Obj.GetROProperty("outerhtml") print text Returns the boolean value if Radio button is Visible. vis = Obj.GetROProperty("visible") print vis
Working with Combo Box
以下是与Combo Box(Combo Box)合作的主要方法。
Select(Value) 帮助测试员从ComboBox中选择价值
Cpck——物体上的浮标
WaitProperty-Waits Till成为不动产价值的真实情况
Exist——Combo Box 存在的支票
GetROProperty(“Text”)——Combo Box的选定价值
GetROProperty(所有物项”)- 归还 com博箱中的所有物品
GetROProperty(“items=1”)- com博箱中的物品数目
Example
Get the List of all the Items from the ComboBox Set ObjList = Browser("Math Calculator").Page("Statistics").WebList("class") x = ObjList.GetROProperty("all items") print x Get the Number of Items from the Combo Box y = ObjList.GetROProperty("items count") print y Get the text value of the Selected Item z = ObjList.GetROProperty("text") print z
Working with Buttons
以下是与布顿斯合作的一些关键方法:
Cpck - Cpcks on the Button
WaitProperty-Waits Till成为不动产价值的真实情况
Exist——《布顿报》存在情况检查
GetROProperty(“Name”) 掌握布顿的名称
GetROProperty (“Disabled”)——如果能够/可处理,回归会带来一种诱变价值
Example
To Perform a Cpck on the Button Set obj_Button = Browser("Math Calculator").Page("SQR").WebButton("Calc") obj_Button.Cpck To Perform a Middle Cpck on the Button obj_Button.MiddleCpck To check if the button is enabled or disabled.Returns Boolean Value x = obj_Button.GetROProperty("disabled") print x To fetch the Name of the Button y = obj_Button.GetROProperty("name") print y
Working with webTables
如今,网络应用已成为非常常见的,测试者需要了解网络应用如何运作以及如何在网上采取行动。 这一议题将有助于你有效地与网上用户合作。
Sr.No. | Statement & Description |
---|---|
1 | 发言if包括泛加勒比的表述,然后是一次或多次发言。 |
2 | 如果其他则发言包括一比一式发言,然后发言一次或多次。 如果情况是真实的。 发言全文见if。 如果情况是假的。 |
3 | if.elseif...else statement。 如果发言之后有一份或多份Elseif声明,其中含有大毛主义表述,随后是一份可选择的号声明,该声明在所有条件变成假时执行。 |
4 | 发言 ∗∗∗∗ 在另一个网站if或elseif 说明。 |
5 | switch statement 《switch声明》允许对平等宣传者测试一个价值清单。 |
html id——如果表格有贴标签,则最好利用这一财产。
innerText - Heading of the table.
Index-Fetches the Source Index of the table
Example
Browser("Tutorials Point").Sync WebTable Obj = Browser("Tutorials Point").Page("VBScript Decisions").WebTable("Statement") Fetch RowCount x = Obj.RowCount print x Fetch ColumnCount y = Obj.ColumnCount(1) print y Print the Cell Data of the Table For i = 1 To x Step 1 For j = 1 To y Step 1 z = Obj.GetCellData(i,j) print "Row ID : " & i & " Column ID : " & j & " Value : " & z Next Next Fetch the Child Item count of Type Link in a particular Cell z = Obj.ChildItemCount(2,1,"Link") print zAdvertisements