pushkar


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

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

Users Marked my Answers as Correct # 12
Users Marked my Answers as Wrong # 0
Answers / { pushkar }

Question { Bank Of America, 2284 }

In a WebTable 2nd row,3rd column contains one link and that link name is changing dynamically. How you will click the link?


Answer

If name is changed dynamically then index would be used here to identify link. Code:
Set a=Browser("").Page("").webtable("").childitems(2,3,"link",index_value)
a.click

Is This Answer Correct ?    0 Yes 0 No

Question { Bank Of America, 2025 }

What is dictionary object? what is the use of it? How you will display all the items in the dictionary object?


Answer

Dictionary object is similar to array to store variable value with key. To share data in different actions in a test, we can use dictionary object. In DO, we are not restricted to use keys as numeric similar to array.

Fetch all items:

Set obj=createobject("scripting.dictionary")
obj.Add "company","india"
obj.Add "company2","USA"
For each i in obj
msgbox obj.item(i)
Next

Is This Answer Correct ?    0 Yes 0 No


Question { 1809 }

what is runmodes in QTP


Answer

2 run modes:
1) Normal which can be delay execution by milliseconds. Here, you will see execution marker when execution process starts.
2) Fast run mode without any execution delay.

Is This Answer Correct ?    0 Yes 0 No

Question { Cigniti Technologies, 3506 }

In Webtable New rows getting added, we have select the name as Sandeep ,If name column is sandeep then need to check the checkbox ,we don't know the rows and columns ,Can anyone please tell me the answer.


Answer

Set obj=description.Create
obj("micclass").value="webcheckbox"
Set obj2=browser("Browser").Page("Page").childobjects(obj)
rw=browser("Browser").Page("Page").WebTable("Table 1").RowCount
For j=1 to rw
b=browser("Browser").Page("Page").WebTable("Table 1").GetCellData(j,3)
If b="N" Then
obj2(j).set "ON"
End If
next

3= Sandeep column number
try this and let me know. thanks

Is This Answer Correct ?    0 Yes 0 No

Question { Cigniti Technologies, 1895 }

Can anyone please tell me how to select next 5th business date from calendar using QTP/UFT ?


Answer

It depends upon calendar properties & functionality. If it is link then

browser("CRM - Commercial").Page("CRM - Commercial").Link("05_monday").Click

Is This Answer Correct ?    0 Yes 0 No

Question { 1710 }

Deal All,
Recently i face one interview question in one company.
str="test12@#3456"

In This i want to print like special character and numeric ,word in one script

please tell me how to write the code for this

Thanks
Balaji


Answer

a="pushkar12@dh"
b=len(a)
For i=1 to b
c=mid(a,i,1)
If isnumeric(c) Then
d=d&c
elseif asc(c)>64 and asc(c)<123 then
e=e&c
else
f=f&c
end if
Next
msgbox d
msgbox e
msgbox f

Is This Answer Correct ?    5 Yes 0 No

Prev    1    [2]