Re: [Sikuli-driver] [Question #270546]: Comparing texts between 2 versions of my application
Question #270546 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/270546 Status: Answered = Open Sahil Dev is still having a problem: Thank you very much. Is it possible to compare the content of a table using Sikuli functions (or a Python feature as explained by Eugene Maslov? That is: my application poroduces some tables (with rows and columns as output). I want to compare the table content in 2 versions of my application using Sikuli to see if the contents are same. Is it possible? -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #270546]: Comparing texts between 2 versions of my application
Question #270546 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/270546 Eugene Maslov proposed the following answer: Well, compare the tables with Python cell by cell. content1 = open('d:/file1.txt', 'r').readlines() content2 = open('d:/file2.txt', 'r').readlines() different=0 for ln in range(len(content1)): cells1=content1[ln].split() cells2=content2[ln].split() for cell in range(len(cells1)): if cells1[cell]cells2[cell]: different+=1 print cell +str(ln)+:+str(ln)+ is different There is no need to use Sikuli functions for that. Sikuli just conveniently extends the power of Python (or another applicable language), making it able to see the screen and to act like a real user. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #270546]: Comparing texts between 2 versions of my application
Question #270546 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/270546 Status: Open = Answered RaiMan proposed the following answer: again: SikuliX does not have any of these compound features you are looking for. you have to use appropriate tools and/or script/program your needs. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #270546]: Comparing texts between 2 versions of my application
New question #270546 on Sikuli: https://answers.launchpad.net/sikuli/+question/270546 In my application, I generate a text file as the end result. The text file is is a huge file (sometimes several MB , sometimes even a GB). I want to use Sikuli to find out if the contents of the text file in the current version is same as previous version (the previous version text is my expected result). Now, I know Sikuli works based on image recognition approach. Does it mean, I can program / script Sikuli to compare the images of my WHOLE content of the the previous version text file with the content in the current version and report the unmatched pixels/areas? I would say the above is possible. Am I right? have not started using Sikuli but just (firstly) docuemnting my requirements and then will ebgin to prototype if Sikuli meets my requirments. Is the above pssible in Sikuli? -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #270546]: Comparing texts between 2 versions of my application
Question #270546 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/270546 Status: Open = Answered RaiMan proposed the following answer: principally yes, using the image compare feature, but very complex to program (SikuliX only sees, what you see on the screen at one moment). So you would have to scroll through the file with some viewer and take the reference images. The test stuff has to be scrolled the same way with the same viewer attributes, to be able to compare. So I think, if your basic need is to compare text files, the I guess it is easier to use some diff tool. -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #270546]: Comparing texts between 2 versions of my application
Question #270546 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/270546 Eugene Maslov proposed the following answer: The files can be compared with Python features, there is no need to call Sikuli functions for that. content1 = open('d:/file1.txt', 'r').read() content2 = open('d:/file2.txt', 'r').read() if content1==content2: print the same else: print different -- You received this question notification because you are a member of Sikuli Drivers, which is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp