ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
hi i have one issue while coding the dates . i want to add 
the date curret to 4 days . can any one helme plz about 
this 

regards 
balaji
 Question Submitted By :: Pbre
I also faced this Question!!     Rank Answer Posted By  
 
  Re: hi i have one issue while coding the dates . i want to add the date curret to 4 days . can any one helme plz about this regards balaji
Answer
# 1
Hi Bala,
this is coding---
public static void main(String args[]) throws Exception 
{     SetTest st = new SetTest();     st.addDaysToDate
("28/04/2009", 4);} private void addDaysToDate(String date, 
int daysToAdd) throws Exception {     Date todayDate = new 
Date();     DateFormat sdf = new SimpleDateFormat
("dd/MM/yyyy");     String strDate = sdf.format
(todayDate);     Date parsedDate = sdf.parse(date);     
System.out.println(strDate);     System.out.println
(parsedDate);      Calendar now = Calendar.getInstance
();     now.setTime(parsedDate);      now.add
(Calendar.DAY_OF_MONTH, daysToAdd);     System.out.println
(now.getTime());}
 
Is This Answer Correct ?    0 Yes 0 No
Kazi
 
  Re: hi i have one issue while coding the dates . i want to add the date curret to 4 days . can any one helme plz about this regards balaji
Answer
# 2
there is one adddate funtion in qtp u can use that function 
for more detail see date and time function in qtp help
please let me know if u still have any doubt
thanks 
rahul pandey
writetorkpandey@gmail.com
 
Is This Answer Correct ?    0 Yes 0 No
Rahul
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
is qtp 9.2 supported for firefox browser3.0?bcoz when i tried to create scripts with the application run on firefox browser 3.0 then qtp 9.2 didn't ct=reate the scripts?  2
describe common problems of test automation?  3
what is Compile Module in QTP? what exactly it contains Functions or Actions?  1
what is the diffrence between script and Language ? (Chandana) Wipro4
how to tell about testing a website in interview using qtp?? what r the points to be covered mainly?  2
Is QTP a compiler or interpreter..? can you we execute a QTP Script file in a another system which does not have QTP installed..?? Virtusa4
Definationions for keyword view and tree view?  1
Can we continue functionality testing without framework?  4
what is diffrense between action and function IBM3
What is the difference between Normal mode and Fast mode ? AZTEC1
How will u find that how many List boxes( and check boxes) are present in one particular window  8
What is the limitation to XML Checkpoints?  1
Basically why we need testing?  5
How comfortable are you in VB scripting?  1
How to create runtime property for an object?  6
I have the following Doubts Please clarify me with examples? 1.Could QTP cover entire application? or part of the application? 2.Shall we rewrite(modify) the Manual testcase to automate? 3.How can I execute my scripts through client mechine which is not having QTP installation 4.Few objects are not being identified by QTP afeter one month. what could be the reason for this (I am using trail version of 15 days) Livetek2
what is the diff between Procedure and function iFlex3
Idid my qtp course in 2007 june in mind Q i for got to use this tool ,i want to mention in my resume about this ,how can i rectify this ,pls give me any idea . Quest2
Tell me about userdefined functions ?  1
suppose i can done the project , that project have 4 modules in that one module they have many links(web pages).in that time i can say i can work on some links? or total module?  4
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com