How can I compare the actual and expected values in Unit testing when they are XML files?

I have created a unit test for a method in VS 2008. My expected value and actual value are XMLs. Therefore though the output is same as I expect it gives an error as I am doing string comparison now. How can I compare these 2 XMLs in expected output and
actual output format in Unit Testing?
mayooran99

In unit test, when you want to validate XML files, you feed them into the class / struct that you want to feed the XML into and compare the values there (You don't just feed it in XMLReader and feed it line by line, right? But if it really is, that's how
you should also test it in unit tests).
In short, how you'd use the XML in your code, that's how you should test it in unit test.

Similar Messages

  • How can I activate the Billing Timer icons in MacFreeLance 3.13? They are "grayed out" and unresponsive. MacXware Support Suite has not provided a solution.

    How can I activate the Billing Timer icons (Go, Pause, Stop)
    in MacFreeLance 3.13? They are "grayed out" and unresponsive. MacXware Support Suite has not provided a solution.

    Lack of support from that company seems to be a non-uncommon problem. But it's not a problem you will be likely to get help with in the Communities, and definitely not here in the "Using Apple Support Communities" forum which is for questions about the Communities themselves. If MacWare can't or won't help you, you may be stuck, though there was an email address posted in this thread:
    http://www.facebook.com/Macware/posts/327848817260562?comment_id=4108331
    that may get you a response.
    Regards.

  • How Can I change the Directory and Name of Coded UI Test Result html file

    I'm Using Visual Studio 2013
    Now I can find the Coded UI test result html file insde the following path
    TestProjectFolder\TestResults\2015_01_22_05_59\In\anotherfolder\MyMachineName\UiTestActionLog.html
    VS2013 enables editing the name structure of this folder only (2015_01_22_05_59). and it should contains a static name+DateTime (Using the Project TestSettings).
    I need to (Programatically)
    Collect all test result html files on one folder with the project name (Change the path of the test result file)
    Put the testcase name on the result file name (for example : TC13505_ValidateScreenComponents_2015_01_22_05_59)
    If possible,Programatically attach the html result file to the test case attachements
    More Details:
    I need to set a custom valus for (ResultsDirectory -
    TestLogsDir -TestResultsDirectory
    - TestName) on the runtime.
    please if any onw know how to do the previous tasks
    by code, please share your knowledge.
    Regards, Ahmed Elgazar Skype:A7medelgazar

    Hi AhmedElgazar,
    Thank you for posting in MSND forum.
    As you said  that you want to collect all test result html files on one folder with the project name by programmatically way to change the path of test result file in coded UI test.
    As far as I know that when we run a coded UI test every time, it is default that there will create a new folder to save the new UITestActionLog.html.
    So we could not change the path of test result file and collect all test result html files on one folder in VS IDE.
    At present, there have no way to collect all test result html files on one folder and change the test result file path.
    In addition, I know that we can change the TestResults folder using mstest.exe in command line.
    Reference:
    https://social.msdn.microsoft.com/Forums/en-US/58d3d2a6-1a45-41ba-9afa-12d087c7c661/how-to-change-the-test-results-path-of-codedui?forum=vstest
    If you still want to this feature, I suggest you can submit this feature request:
    http://visualstudio.uservoice.com/forums/121579-visual-studio. The Visual Studio product team is listening to user voice there. You can send your idea there and people can vote. If
    you submit this suggestion, I hope you could post that link here, I will help you vote it.
    Thanks for your understanding.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Firefox 4: How can I exchange the toolbar and tabs places (to have them as they were in Firefox 3.6)?

    I do not like that the toolbar is now put below the URL and the opened tabs are above it. After years of using the other way around mode I find it crazy to change the places of the two items in Firefox 4. So I would like to come baclk to the old setting.

    http://www.computertechtips.net/64/make-firefox-4-look-like-ff-3-6/

  • How can I make the tabs go away? Every time I reopen, they are back!

    OK--Right now, the tabs are stuck from the day I set up my new iMac. One is stuck on Google search my home page opener, and it always says what the **** because my daughter typed that when the iMac insisted it couldn't find the wireless keyboard after she had just typed the number code using it, and then that message on Google; then it shows Betty Crocker, then a local restaurant, then a neighborhood page on FaceBook. Only then does it add tabs for tjhings I look up or select from email. WHY? It used to erase all tabs. Now, Firefox asks if I want to close, and I say YES, not SAVE. But there they are, over and over, even when I Quit Firefox and wait overnight! I can't find anything under Preferences that will get me back to Zero again. I want all blank tabs

    If you are not on Windows then instead of Tools > Options use:
    *Linux: Edit > Preferences
    *Mac: Firefox > Preferences
    *Windows: Firefox > Options or Tools > Options
    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the files sessionstore.js [2] and sessionstore.bak in the Firefox Profile Folder.
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    See also:
    * [1] http://kb.mozillazine.org/Session_Restore
    * [2] http://kb.mozillazine.org/sessionstore.js

  • HT1209 My Itunes Library and iPhone have fallen out of sync on music over the yearsare - how can I compare my itunes library with my Iphone  to see what songs are missing from my library so I can then bring my Library up to date

    My Itunes Library and iPhone have fallen out of sync on music over the yearsare - how can I compare my itunes library with my Iphone  to see what songs are missing from my library so I can then bring my Library up to date

    Hello Solid Buck,
    Thank you so much for providing the details about the duplicate song issue you are experiencing.  It sounds like you would like to remove the duplicate songs that will not play on your iPhone, but when you connect it to iTunes, iTunes only shows you one copy of the song on your iPhone. 
    In this situation, I recommend deleting the individual songs that do not play directly from your iPhone.  I found the steps to do this on page 61 of the iPhone User Guide (http://manuals.info.apple.com/en_US/iphone_user_guide.pdf):
    Delete a song from iPhone: In Songs, swipe the song, then tap Delete.
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How can i request the actual time code of digital video recorder, i am using RS232 interface for asking actual time code of digital video recording

    how can i request the actual time code of digital video recorder, i am using RS232 interface for asking actual time code of digital video recording

    If you have an RS-232 interface to the digital video recorder, it may be that you can send a command to the video recorder in order to get the time code sent back to your application - you would then read this as a string and then incorporate this data into your program.
    The best source of help will be any documentation you have relating to the serial (RS-232) interface with the digital video recorder. This documentation should have commands that you can send to the recorder and expected response strings that you should get back from the device. This task should be straightforward but can often be frustrating without documentation about the video recorder. This will not be something that you can "guess" - past experience in writing serial communication ap
    plications has shown that a good manual is your best friend.
    Failing this if you have any source code for example programs that have already been written to communicate with the recorder, you might be able to extract the relevant ASCII strings and use them within your application. This is true whether you are using LabVIEW or a text-based language.
    Jeremy

  • How can i compare the contents of two folders ?

    how can i compare the contents of two folders and find out which files are in one but not in the other?? Knowing how to do this would be the best thing ever, especially when dealing with a large number of files. Often, for instance, I'm dealing with a large number of images, processing them, and saving the retouched ones to a new folder, and need to check that they are all there. If there are say three files missing in the second folder (out of say a hundred in total) being able to automate the process of elimination would be very useful. Please help!!!
    B

    I really wish I knew the answer to this. I work between two macs, a G5 and MacBook Pro when I'm on the go. Each time I move from one to the other I have to copy all my files to the computer I'm going to work on, so I end up with the same files being duplicated. It's not a problem if it's not much data but in my case the it can be to 30GB, mostly graphics files, photoshop, motion, final cut pro, etc.
    There's has got to be a way automator can make a comparison between two folders to sort out what's changed and what's remained the same. It would be nice also if this feature could be done globally on the hard disk using spotlight's technology to stop files being duplicated in places you didn't even know about and taking up valuable disk space. I'm not sure how this could be done.
    Any bright ideas Apple?

  • How can I edit the actual album info?  (Get info won't let me)

    How can I edit the actual album information.  I recently loaded CD of duets, the artist name is correct, but doesn't show up on my artist listwithnstead its shown as a compilation by various artists.  When I use "Get Info" the artist name is right on all the tracks but doesn't show the correct name on the actual album  column.  Anybody know how to fix this?
    Thanks

    Questions already been asked and answered,  thanks to Turingtest2 for his wisdom.
    richfromkeswick wrote:
    How can I edit the actual album information.  I recently loaded CD of duets, the artist name is correct, but doesn't show up on my artist listwithnstead its shown as a compilation by various artists.  When I use "Get Info" the artist name is right on all the tracks but doesn't show the correct name on the actual album  column.  Anybody know how to fix this?
    Thanks
    Rich

  • How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?

    How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?  I would like them to open at the size they were previously resized like they used to in previous operating systems.  They currently open at a very small size and the first colum is only a few letters wide necessitating a resize practically every time one wants to use it.  Any help would be appreciated.

    hi Prasanth,
    select werks matnr from ZVSCHDRUN into table it_plant.
    sort it_plant by matnr werks.
    select
            vbeln
            posnr
            matnr
            werks
            erdat
            kbmeng
            vrkme
            from vbap
            into table it_vbap
            for all entries in it_plant
            where matnr = it_plant-matnr and
                  werks = it_plant-werks.
    and again i have to write one more select query for vbup.
    am i right?

  • How can I use the "Copy and paste" tool in order get stamps in the same position in different pages (Acrobat XI for PC)?

    With Acrobat 6.0 I was able to copy a stamp in the same position (I mean "exactly" the same one) of different pages just by using the "copy/past" tool.
    Now I am using Acrobat XI and it seems like it is not possible anymore: I am copying a stamp and I am trying to past it in anoter page, but it appears in the center of the page (or wherever it wants to...).
    Does anyone have a solution?
    Thanks in advance.

    Thank you very much. I'll be waiting for you message.
    Messaggio originale----
    Da: [email protected]
    Data: 26/01/2015 17.56
    A: "Umberto Gangi"<[email protected]>
    Ogg:  How can I use the "Copy and paste" tool in order get stamps in the same position in different pages (Acrobat XI for PC)?
        How can I use the "Copy and paste" tool in order get stamps in the same position in different pages (Acrobat XI for PC)?
        created by Gilad D (try67) in Creating, Editing &amp; Exporting PDFs - View the full discussion
    Well, I was in the same situation so I've developed a tool that allows one to do it. I will send you some additional information about it in a private message.
         If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7132586#7132586 and clicking ‘Correct’ below the answer
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7132586#7132586
         To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, &amp; "Stop Following"
         Start a new discussion in Creating, Editing &amp; Exporting PDFs by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • How can i clear the usernames and passwords history from all login websites?

    how can i clear the usernames and passwords in the log in history of the websites? example when i want to login to my facebook i always type first letter of my e-mail and it comes with the passwords because before i put remember my password, and in other websites so, i just need to delete all this login history and it's not working from the clear everything !!! :S any idea please !! thanks in advance :)

    See:
    http://kb.mozillazine.org/Deleting_autocomplete_entries
    http://kb.mozillazine.org/Password_Manager

  • HT201363 My iPhone, iPad and iPod are all associated with the same Apple ID.  How can I remove the iPod and associate it with a new Apple ID without affecting the data on the other devices (note: there is no data on the iPod I want to keep)?

    My iPhone, iPad and iPod are all associated with the same Apple ID.  How can I remove the iPod and associate it with a new Apple ID without affecting the data on the other devices (note: there is no data on the iPod I want to keep)?

    Very simple.  Turn off Find my iDevice, then  Tap Settings, General, Erase, Erase all content and settings.

  • I've an apple ID used to buy off iTunes and a mobileme account for the calendars and contacts. How can I move the calendars and contacts to the older apple ID and use it for iCloud?

    I've an apple ID used to buy off iTunes and a mobileme account for the calendars and contacts. How can I move the calendars and contacts to the older apple ID and use it for iCloud?

    If you remeber the password to that Apple ID then follow these steps
    1 - Make sure you have an email address that is NOT an Apple ID
    2 - Go to AppleID.Apple.com
    3 - Where it reads Manage Apple ID - Sign in
    Once you are signed in want to make sure the email address you are wanting to use is NOT set up as a "Recovery/Rescue" email for this account.
    [To check this - Main page where you see Primary ID - below do you see the email address you want to use listed towards the bottom? Yes - Delete / No - Good ./. If made any adjustments "Save" Next on the left select "Password & Security" - Answer your security questions you set up "if you have any" then scroll towards the bottom and check to see if you see the email address you want to use. Yes - Delete / No - Good] <-> Also you can change your password on this page as well. Any adjustments made "Save"
    Once this is done go back to the main page where you should read "Primary ID" and change the email address that is showing to the new email address youo want. "Save" Done
    I learned this not to long ago and worked for me. Hope this helps you!

  • How can I change the Country and Credit card Apple ID without loose the app installed ?

    Hi, I move from Brazil to Qatar and keep using my account at Brazil since I have a credit card there and the old address.
    Today Ireceived a message when I was updating my app at my iPad that I should change my payment method that was rejected (???), I try to update and keep the same message... So now maybe better to use address and card from Qatar.
    I could not understand how can I change the country and shop since everything at the address is linked to Brazil.
    Also I'm afraid to lose the installed app...
    Please, a step by step will help a lot, I have a very low computer experience ...

    You won't lose apps that are installed.   You will lose the ability to update them
    Business with the App stores is restricted to those stores in your formal country of residence (your billing address) and a bank supported credit card from that same country.   You can buy and update apps with those details only in that country.
    If you have established residences and bank supported accounts in other countries you can also use those.   You can buy and update apps in those countries using those details.
    You cannot interchange them.   You cannot merge IDs or purchase details.

Maybe you are looking for

  • Error while activating any object

    Hi Everyone, I m have strange problem with bi sever. When ever i try to activate any object in system goes in debugging mode. Can any one tell y dis happening. did i activated some setting ??? /sachinkumar.

  • How to get around credit inactivity?

    I purchased Skype Credit to be used in the event that I lose or break, or need to call it to find it. Today I get an email saying that I need to make a call or send an SMS to keep my credit active. So I need to SPEND the credit I BOUGHT to be able to

  • List of persons selected with PNP

    Hi all, Is it possible to get the list of selected persons using the pnp LDB. Thus before get pernr statement  i want know  the list of all selected persons. Thanks in advance,

  • Recently Played Playlist sorting

    Hello I recently bought a 6th generation ipod nano...On syncing the nano to my PC I found that the Recently Played playlist sorts in alphabetical order by artist on the ipod but sorts by most recent on itunes...Is there a way to change the sort on th

  • Antique Contrast on selected areas of image

    I have done this once before and can not for the life of me remember how I done it. I have an image with the main subject (a car) and the background which I wish to have set to a Antique Contrast type effect.  I think this is what it was called as I