CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Building Interactive UIs with ASP.NET Ajax: Rebinding Client-Side Events After a Partial Page Postback
  • Speed Up Repetitive Insert, Update, and Delete Query Statements
  • Binding Data to Silverlight 4.0 Controls Using ASP.NET MVC Framework 2.0
  • ADO.NET Data Services in the .NET Framework

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > C++ (Non Visual C++ Issues)
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    C++ (Non Visual C++ Issues) Ask or answer C and C++ questions not related to Visual C++. This includes Console programming, Linux programming, or general ANSI C++.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old May 29th, 2009, 09:01 PM
    mikoil mikoil is offline
    Member
     
    Join Date: Jul 2005
    Posts: 185
    mikoil is on a distinguished road (20+)
    Testing tools for my game server - any recommendations?

    Hello gurus!

    I don't know where to ask about it.

    I'm not a professional but I've made some decent game (TCP client/server) which I want to test before I put it up.
    It has it's logic (pretty big one), and some complex data structures, utilizing C++ at it's extreme (I think)..

    At the moment what I do to test the server is simply making the client auto-play (it's a turn-based game), running several clients at once..... but as you can imagine, it's slow, and how many clients can I run concurrently? 10? I don't think it's enough.. Note that I have one PC, even though it's 4GB one, still, the graphics (and maybe Winsock's operations, although I don't think so) eats a LOT of processor power.

    TO THE POINT:

    I know there's this field called "QA", and I assume they got some really neat tools to test a software from the very first op-code to the core of it's bones!
    Tried to look for some, without finding something really helpful.

    So, those "QA" guys probably know how to automate operations, in cycles, which is exactly what I do at the moment, although not so efficiently.

    Please consider that I might have not expressed myself very well or I'm not in the right direction, just because I never went into this... You know, I don't even know what to ask you!

    Thanks for taking the time to read this text..
    Reply With Quote
      #2    
    Old May 30th, 2009, 12:18 AM
    Onbeygir Onbeygir is offline
    Junior Member
     
    Join Date: May 2009
    Posts: 12
    Onbeygir is an unknown quantity at this point (<10)
    Re: Testing tools for my game server - any recommendations?

    id love to see some screenshots of the game
    it sounds fun. sorry for posting without helping anything
    Reply With Quote
      #3    
    Old May 30th, 2009, 01:21 AM
    Kheun Kheun is offline
    Elite Member
     
    Join Date: Oct 2002
    Location: Singapore
    Posts: 3,128
    Kheun is a name known to all (1000+)Kheun is a name known to all (1000+)Kheun is a name known to all (1000+)Kheun is a name known to all (1000+)Kheun is a name known to all (1000+)Kheun is a name known to all (1000+)Kheun is a name known to all (1000+)Kheun is a name known to all (1000+)
    Re: Testing tools for my game server - any recommendations?

    I think you are taking the right path in automating client to stress testing your server. In addition, you can create a console mode for your client to tale commands and avoid rendering graphic. In this way, you should be able to run multiple clients on the same PC without using too much PC power.

    You may also like to explore using software like Virtual PC and VMWare which allows you running your client on multiple OSes (different versions of Windows or Linux) all at the same time.
    __________________
    quoted from C++ Coding Standards:

    KISS (Keep It Simple Software):
    Correct is better than fast. Simple is better than complex. Clear is better than cute. Safe is better than insecure.

    Avoid magic number:
    Programming isn't magic, so don't incant it.
    Reply With Quote
      #4    
    Old May 30th, 2009, 09:08 AM
    mikoil mikoil is offline
    Member
     
    Join Date: Jul 2005
    Posts: 185
    mikoil is on a distinguished road (20+)
    Re: Testing tools for my game server - any recommendations?

    Haha Onbeygir thanks, I'd love to post a screenshot although it cannot be done right now!

    Well Kheun, it makes real sense, what you're saying.
    I thought about it but I'd expect those QA pros to be doing things otherwise, more sophisticated way... I just don't know how

    VMWare & Virtual PC would take CPU power exactly as if the program would run at the "host system", if not even more (virtualization overhead..).

    By the way, since the client is a Flash game then it would be wise to test it on Linux, with VMWare... That's definitely something I'm about to do.
    Reply With Quote
      #5    
    Old May 30th, 2009, 09:33 AM
    Speedo Speedo is offline
    Member +
     
    Join Date: Aug 2007
    Posts: 844
    Speedo  is a jewel in the rough (300+)Speedo  is a jewel in the rough (300+)Speedo  is a jewel in the rough (300+)Speedo  is a jewel in the rough (300+)
    Re: Testing tools for my game server - any recommendations?

    Honestly, why not just involve a few friends and get them to help with the testing? That would also give you the benefit of seeing how the server performs under "real-world" network conditions, rather than just under ideal settings (a LAN).

    I'm sure the "pros" have some tools that help them with automated testing, but I'd expect most of them to probably be either custom-made or big $$$ commercial software. There are certainly things you could do yourself like writing a non-graphical client, but is it really going to be worth the time and effort it will take?
    Reply With Quote
      #6    
    Old May 30th, 2009, 01:37 PM
    mikoil mikoil is offline
    Member
     
    Join Date: Jul 2005
    Posts: 185
    mikoil is on a distinguished road (20+)
    Re: Testing tools for my game server - any recommendations?

    Believe me that through the past several months I've been asking myself the very same questions..

    Well, eventually we'll see, this is all I can say.

    I guess I was hoping that someone will reveal "gold" to me concerning this subject.. well, who knows
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual C++ & C++ Programming > C++ (Non Visual C++ Issues)


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 02:26 AM.



    Acceptable Use Policy

    Internet.com
    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.