Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Translation Testing (.NET)
#2
Not Solved
This is interesting........let's start by attacking the first part of the problem

1) I am assuming that the text to be compared is being displayed on a webpage. If it is, you can use DOM functions and get all the text that is being displayed on the page. An ex:
If you want to extract text from let's say List, the text would be embedded in the LI tag of the page. We can use the following code to extract the text
Code:
Lsts = Browser("Title:=.*).Page("Title:=.*").object.GetElementsByTagName("LI")
Now Lsts is an array containing all the text embedded in all the LI tags on that page.

2) Now using FSO or filesystemobject you can import the file which has all the text that is supposedly the expected text on the webpage.

3) Doing an instr or strcmp of both 1 and 2 would solve the problem
ex:
Code:
for each Lst in Lsts
            if instr(1,Lst.innertext, ExpectedText,1)>0
               Reporter.ReportEvent micPass
            Else
               Reporter.ReportEvent micFail
            End if
          Next

I just gave a high level example, but this is just an idea if you feel this is ok you can start building upon it.

All the best.
Reply


Messages In This Thread
Translation Testing (.NET) - by MikeZimmermann - 07-17-2008, 11:28 PM
RE: Translation Testing (.NET) - by gammaflare - 07-23-2008, 11:03 PM
RE: Translation Testing (.NET) - by gammaflare - 07-26-2008, 03:32 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP Automation testing steps for .net web applications? Ramadas 0 2,311 10-30-2013, 12:54 PM
Last Post: Ramadas
Question .net testing, Object not found on object repository error, what am i doing wrong? ptreey 6 6,495 04-08-2011, 12:25 PM
Last Post: invertednz
  Testing tool for .net and Kofax gamey06 0 2,031 01-11-2010, 11:26 PM
Last Post: gamey06

Forum Jump:


Users browsing this thread: 1 Guest(s)