tvs ramakrishna chowdary


{ City }
< Country > india
* Profession *
User No # 45658
Total Questions Posted # 0
Total Answers Posted # 21

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 19
Users Marked my Answers as Wrong # 13
Questions / { tvs ramakrishna chowdary }
Questions Answers Category Views Company eMail




Answers / { tvs ramakrishna chowdary }

Question { 14288 }

I want to open a Notepad window without recording a

test and I do not want to use SystemUtil.Run command as

well How do I do this?


Answer

what ever Ravi said that is obsolutly 100% correct..

Is This Answer Correct ?    0 Yes 0 No

Question { GE, 7950 }

Username field having some string mistake like"user
naem".what type of testing i prefer to test spell check.


Answer

venkatesh is obsolutely correct....but suresh u need to do
some small change in the code

x="user name:"
y=webEdit("logical name").getroproperty("htm ld")
if (x=y)then
msgbox "correct"
else
msgbox "wrong"
end if

NOTE: But for spelling check this much code not
necessary.simply by seeing we can able to know the
problemm.....isn't write...

Is This Answer Correct ?    0 Yes 2 No


Question { Syntel, 7394 }

i have a window , initial its name is "NEW CUSTOMER"
i have to enter the details of customer in the test object
fields and after saving the window name is automatically
changing with the customer name .
so how to identify that window after saving.
(i am using descriptive programming.)


Answer

hello siva iam not telling that ur answer is wrong..ur
answer is correct...but the question is by using
discriptive prgming..in descriptive prg not at all objects
are available in the OR...so how can we change the constant
value in the respectve property value....

Is This Answer Correct ?    0 Yes 0 No

Question { Syntel, 7394 }

i have a window , initial its name is "NEW CUSTOMER"
i have to enter the details of customer in the test object
fields and after saving the window name is automatically
changing with the customer name .
so how to identify that window after saving.
(i am using descriptive programming.)


Answer

hello below i am giving code as per my knowledge..correct
me if i wrong...
---------------------------------------------------------
browser(xxxx).page("title:=".*customer.*).xxxxxx

above i used .* regular expression

in both ways customer is common only before and after
customer is changing regularly..

Is This Answer Correct ?    0 Yes 0 No

Question { Datamatics, 9653 }

which command u will use to access the application through
descriptive programing?


Answer

we can't access the app thru descriptive prg...but we can
access the objects in the app thru descriptive prog..

ur question is not clear

Is This Answer Correct ?    0 Yes 0 No

Question { TCS, 32516 }

how we do database testing with qtp using descriptive
programming?


Answer

We deal descriptive prgming with objects that are present
in the application. I mean we used to write description of
the objects in the program itself or in the .VBS file which
need to attach to the test to identify the objects present
on the application.rather than having objects information
in the repository...

but database testing totally related with data that present
in the Database...for accessing the info,, from database
table we need query instead of descriptive prgming...

Is This Answer Correct ?    2 Yes 0 No

Question { Thatavarti Technologies, 6952 }

Hi,The question is write a script for the following
scenario.
scenario:in a job portal i entered QTP 3yrs testing then
click search button.then it displays results like
Test lead bangalore (here is a checkbox).
Test lead hyderabad check box
so on...
question is if test lead position in bangalore then
checkbox shld be enabled automatically..


Answer

balaji is obsolutely correct...

Is This Answer Correct ?    1 Yes 0 No

Question { 11273 }

How to export data in excelsheet to qtp without using
datatable.


Answer

sorry ur queston is not proper again post question properly

then i can give answer

Is This Answer Correct ?    0 Yes 2 No

Question { 6455 }

In a web page, one web table is present which is dynamic.
In that table one of the column has links with the same
inner text. write a script so that i need to click the
third link.


Answer

i am not understanding ur question please post question
once again clearly i can give anser or mail to me

my mail id is-->krishnat.qa@gmail.com

Is This Answer Correct ?    0 Yes 0 No

Question { 5078 }

my assignment is,how can i differentiate between readed &
unreaded mails in my inbox ?, since for both readed &
unreaded having same properties for both test objects &run
time objects


Answer

ya its possible by checking the object "webelement" html
tag property value
------------------------------------------------------------
htmal tag="B"
htmal tag="SPAN"
mail info generally as a webelement

set myreadwe=description.create
readwe("html tsg").value="B"
set myunreadwe=description.create
myunreadwe("html tag").value="SPAN")

all these read and unread mail web elements present in the
same frame underhierarchy as follows

cntread=browser(Gmail - Inbox (1) - krishnat.q).page(Gmail -
Inbox (1) - krishnat.q).frame(framname).childobjects
(myreadwe)

cntunread=browser(Gmail - Inbox (1) - krishnat.q).page
(Gmail - Inbox (1) - krishnat.q).frame
(framname).childobjects
(myunreadwe)

msgbox "total no of read mails :"&cntread
msgbox "total no of un read mails :"&cntunread

Is This Answer Correct ?    1 Yes 0 No

Question { 5078 }

my assignment is,how can i differentiate between readed &
unreaded mails in my inbox ?, since for both readed &
unreaded having same properties for both test objects &run
time objects


Answer

ya its possible by checking the object "webelement" html
tag property value
------------------------------------------------------------
htmal tag="B" 'for to count unread mails
htmal tag="SPAN" ' for to count read mails
mail info generally as a webelement

set myunreadwe=description.create
myunreadwe("html tsg").value="B"
set myreadwe=description.create
myreadwe("html tag").value="SPAN")

all these read and unread mail web elements present in the
same frame underhierarchy as follows

cntunread=browser(Gmail - Inbox (1) - krishnat.q).page
(Gmail -
Inbox (1) - krishnat.q).frame(framname).childobjects
(myunreadwe)

cntread=browser(Gmail - Inbox (1) - krishnat.q).page
(Gmail - Inbox (1) - krishnat.q).frame
(framname).childobjects
(myreadwe)

msgbox "total no of read mails :"&cntread
msgbox "total no of un read mails :"&cntunread

Is This Answer Correct ?    0 Yes 0 No

Question { 3220 }

I am using environment variable xml to give credenatials
for login into unix. Is there any way we cam mask the
password in the xml?


Answer

by using vb script we can get the env variable name
-----------------------------------------------------
uname=environment.value("username")
set uname
pwd=environment.value("password")
pwd=crypt.encrypt(pwd)
set pwd

Is This Answer Correct ?    0 Yes 1 No

Question { Polaris, 21734 }

In web page there is five OK buttons available, while
recording i click on 3rd OK button, How QTP identify the 3rd
OK button while running script? Is qtp identify 3rd ok button?


Answer

ur having answer in ur question only..ur telling that 3rd
ok button this 3rd is nuthing but index of that button..
but here small change index nos atart form 0,1,2.....and so
on

ex:browse(browser).page(page).webbutton
("name:=ok",index:=2").click

than it understoods that third ok button


or by Creation time:
----------------------------

ex:browser(browser).page(page).webbutton
("name:=ok","creationtime:=2")

than our qtp understoods that 3rd ok button

Is This Answer Correct ?    2 Yes 2 No

Question { Polaris, 21734 }

In web page there is five OK buttons available, while
recording i click on 3rd OK button, How QTP identify the 3rd
OK button while running script? Is qtp identify 3rd ok button?


Answer

This is again TVS Ramakrishna Chowdary...ordinal dentifier
property(Creation Time)will be available to only Browser
object....not for other objects.....so but by mistache i
posted creaton time for ok button...


Sorry for posting wrong answer...

U use ordinal identifiers either index nos or location...

both are starts from 0,1,2.......

Is This Answer Correct ?    1 Yes 0 No

Question { IBM, 11187 }

How will you set a unique four digit number in an edit
field in QTP?


Answer

we can set 4 digit no in edit box field dynamically
-----------------------------------------------------
let assume password edit box is there
----------------------------------------
str="rama"
no=randomnumber(1000,10000)'here we are generating random
value between 1000,10000

pwd=str&no
password=crypt.encrypt(pwd)
objectheirarchy.edit("password").setsecure pwd

Is This Answer Correct ?    6 Yes 2 No

 [1]   2    Next