QTP

软件測试自学指南---从入门到精通

泪湿孤枕 提交于 2019-12-16 20:32:38
近来,软件測试行业发展迅速,企业越来越重视測试了。越来越多的人增加了測试大军中,非常多人也想通过自学来学习软件測试技术增加这个行业,可是如今软件測试的书籍越来越多,也良莠不齐,并且软件測试涉及的技术也越来越多。本文主要说明的是从事软件測试行业须要必备的知识,以及该怎样学习,主要给大家提供一些比較优秀的书籍,并给出学习的顺序。希望通过阅读本文,读者能够明白该怎样学习測试,并学习哪些知识。因为仅是个人建议,如有错误不妥的地方,敬请提出批评。 一、软件測试基础知识 要想进入測试这个行业,就必需要了解什么是软件測试,该怎样測试? 这部分的学习 目标 : 掌握软件測试的基本概念、软件測试的流程,并能熟练的应用常见的用例设计方法来设计測试用例。掌握常见的測试方法和类型,并知道怎样进行每一个阶段的測试。 以下是推荐的參考书: 1、软件測试(原书第2版) (美)佩腾(Patton,R.) 著,张小松 等译 这本书能够用来作为进入行业的第一本书,本书解说的都是有用的技术,通过阅读本书能够高速的去学会怎样測试软件。个人建议,这本书至少要读3遍以上。 看完这本书,自己能够去找一个项目(能够到开源中国上查找)来測一測,应用一下学的知识,找一找缺陷。在測试这个项目中要体会一下測试的流程,学习怎样搭建測试环境。 2、软件測试的艺术(原书第3版) (美)梅耶 等 第二本就是这本软件測试的“圣经”

QTP/UFT - Adding comments to code in Editor view

為{幸葍}努か 提交于 2019-12-13 09:08:20
问题 How do I add comments in my code via the Editor view for my Actions? I know this is a simple question, but I haven't been able to figure it out, and this seems almost impossible to Google for. I've tried some of the standard commenting types, none of which have worked: // /* */ # -- I know I can add text to the Description attribute for an Action, but I'd like to be able to comment out specific lines in my code as needed. 回答1: Do you mean the expert view where you see the generated code? You

How to start reading from a specifc line in an XML file?

本小妞迷上赌 提交于 2019-12-13 05:49:27
问题 I have an XML file and I need to start reading from a specific line number. As if the previous lines don't exist. For example, if I need to count number of nodes starting from line # 23. This is to be done using VBScript in UFT (QTP). 回答1: You can skip lines in text (line orientated) files by using the SkipLine method. But XML documents are trees of nodes/elements. Whitespace out of elements has no meaning. So it may make sense to ask for the number of child nodes of a specific node (whether

Web Extensibility

↘锁芯ラ 提交于 2019-12-13 03:35:18
问题 I am working with QTP now for some time and heard of web extensibility, I have tried to do a lot of research on this topic but to no avail. Can please through some light on this topic and small demo for this. What all are the prerequisite for working on Web Extensibility. I need to explore on this topic further to get a hold on it and use within my project. thanks a lot in anticipation.. 回答1: The prerequisites for QTP web extensibility are QTP 9.5 or later (with IE) and you can find a

Refresh system variable using vbscript/QTP

谁说胖子不能爱 提交于 2019-12-13 02:58:05
问题 I want to set system variable MQSERVER for connecting to MQ using QTP. Each time this value is changed from QTP, I need to restart QTP to reflect changes. E.g. in the system variables window, MQSERVER = ABCD change the variable using Set objWSH = CreateObject("WScript.Shell") Set objSystemVariables = objWSH.Environment("SYSTEM") objSystemVariables(MQVariableName) = MQVariableValue The variable is set correctly but does not reflect in QTP code when connecting to websphere MQ. Immediately when

Append vbCrLF to UCS-2 Little Endian

谁说胖子不能爱 提交于 2019-12-13 02:55:28
问题 I'm using vbscript via HP-UFT (former QTP). I'm facing with issue which looks pretty simple but I couldn't fix it. I have .CSV files exported from some system and there is no finished CRLF in this file. I need a simple fix to append new line to this file (I know that is possible write-to-another-file workaround) I'm using FileSystemObject like this: Set objFile = objFSO.OpenTextFile(outFile,8)' (outFile,8, true/false/default) objFile.Write "test string" & vbCrLf ' and other different

programmatically add object to qtp local repository

浪尽此生 提交于 2019-12-13 01:33:30
问题 I am working on Visual Relation Identifier (VRI) QTP,it's working fine when i add the source object (see the code) in the object repository.But, in QTP help file it is mentioned that: "The specified object must be an object from the test object repository. It cannot be a test object specified by a programmatic description." The code I am using is: Set rc = VisualRelations.Create Set relation = rc.Add '****(Source Object) relation.relatedobjectpath = "Browser(""Oracle | PeopleSoft Enterprise""

How do I call DotNetFactory from VBScript in a stand-alone .vbs file?

谁说我不能喝 提交于 2019-12-12 12:34:42
问题 I've been exploring options for expanding my QuickTest Professional scripting capabilities, and came across this article this morning, so I decided to experiment a bit. The code below works fine when executed inside the QTP environment, but I could see a use for this outside of the QTP environment as well. Unfortunately, it is causing an error when run from a stand-alone .vbs file Set MyDate = DotNetFactory.CreateInstance("System.DateTime").Now msgbox MyDate.ToShortDateString() The error is

How do I click on a web button that appears multiple times on a webpage?

馋奶兔 提交于 2019-12-12 06:23:24
问题 How do I click on a web button that appears multiple times on a webpage? How do I click all of them? I am testing the "Like" button on a website (Webstagram.com) that is meant for you to view and operate your Instagram page from your desktop. 20 different pictures are displayed on a page and each picture has its own "like" button assigned to it. I can't identify it by "like" and in the outerhtml there are different values for each one. How do I write a script to identify each one? Here is

Automating Date Control using QTP

别来无恙 提交于 2019-12-12 03:08:16
问题 Please help me in automating date control object using QTP. I'm trying to automate date control as it picks the user required date (** can be from previous year too) during run time. But I couldn't achieve it by using the date control object, as that IMAGE object doesn't have any in-built operations to select required. Note: Textbox is disabled and so we cannot enter the date into it directly, so we should select the required date from the calendar object. Thanks! 27-Mar-2015: Updating with