Case Statement - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Case Statement (/Thread-Case-Statement) |
Case Statement - adelitza - 09-05-2012 hi. i have a text file and i whant to see if the informantion from it is the same with the one from an excel file.And i whant to use case statment for this. For example: ana: red beth :blue i read line by line the text and i whant to verify if red is the same word for ana as it is in excel and so on. this is whant i did so for, but i don' t know ho to use corectly "Case Statement" Code: "Const forReading = 1 RE: Case Statement - savitripatil - 09-07-2012 Hi, I have a suggestion, when you wanted to compare the data in txt file with excel, why don't you convert the txt file to excel file format and then go for comparison of two excel. Note to convert the txt file to excel you must have proper field delimiters. let me know if it helps. Regards, Patil RE: Case Statement - Ankesh - 09-07-2012 @adelitza If you are asking abt case statement, below is the syntax Code: expression="<Your expression>" **** For more help refer to QTP help file. |