Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
validate the articles without text/textarea checkpoint
#4
Not Solved
Priya -
Let me show you the way, you would need to walk through,
Two parts,
1. GUI - getroproperty should give you the text.store it in a variable say VarGui
2. DB - recordset of the executed query should give you the same text.
You will need to define a " connection string " in order to connect to db. Use the API adodb.connection and adodb.recordset. Granulaize your sql qury so that it would fetch only the text you are going to compare. Store it in a variable. Say VarDb
3. Once you have both the values stored it Should be a cakewalk. Compare both the string which would mean If VarGui=VarDb then pAss else fail. If there is discrepancy in string then use instr or strcmp.
Does it help?
3.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Messages In This Thread
RE: validate the articles without text/textarea checkpoint - by basanth27 - 03-03-2011, 07:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to validate a format of an alphanumeric string PrateepKaraval 2 5,825 11-08-2014, 10:26 AM
Last Post: vinod123
  Read text from text file and save it into a variable in qtp arpan 3 12,213 06-19-2013, 08:34 PM
Last Post: arpan
  How to validate tool tip in a web page? qtplearner88 3 4,201 04-24-2013, 05:19 PM
Last Post: nucleation
  Need to compare two text files - ignoring some text nelly27281 2 4,391 09-09-2012, 12:09 PM
Last Post: freeboynil
Exclamation How to validate color of image object in a web page qtplearner88 9 8,690 06-14-2012, 06:34 PM
Last Post: Shridevi.Salagare

Forum Jump:


Users browsing this thread: 1 Guest(s)