X=10,Y=20 you need to swap the numbers without using a
third variable?
Answer Posted / sandip patil
If X=10 & Y=20
then for swapping just go with following
Y=Y-X i.e. Y=20-10=10 here value of Y=10
X=X+Y i.e. X=10+10=20 Here value of X=20
It is swap
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
Hi All, issue is related to handling pop up script generated in IE, and run on mozilla. In App Under Test, when we get the alert pop ups, we just click ok button. if we need to run the same code on mozilla it will not identify . so we will check browser if browser(*).dialog(IE object).exits browser(*).dialog(IE object).winbutton(OK).click else 'by default mozilla browser(*).dialog(mozilla object).page(*).webbutton(OK).CLICK END IF But my qustion is. Do we write the above piece of code where ever we get such kind of pop ups from the application like alert pop up, confirmation pop up.... OR do we have any other alternative way to do this by using any functions in Recovery Scebarios? If Any of u know idea please do help me in this regard. or send answer to kravimb@gmail.com
Explain features of the latest version of qtp/ uft 12.1?
what difference between runtime object and text object and what property they have. whether they have same properties or different properties.
What is the descriptive programming?
what is error and fault in terms of software quality?
which type of testing process are you following in ur company? how to recognize a qtp page?
Which is the best QTP training institute in Delhi/NCR region and what is the approximate fee for QTP course (Basics and Advanced)
How to customize qtp?
If I change the object name in one action will it be updated in all the actions? Or not?
Explain different recording modes?
Dear All, How to generate Pass or Fail Report in QTP without using Reporter.Report Event Method ? Thanks Balaji
What is quicktest professional?
What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?
suppose in the middle of the project QTP will not work properly, then what do u do? and ur team?
wht type of User defined functions or Java Releated functions do we write in VB scripting