JStudio SiteWalker Service Board Forum Index JStudio SiteWalker Service Board
Find out / share information about our product, experience and requirements. To serve all user all postings must be written in English language. We are looking for constructive meanings and experience. Disrespectful postings will be deleted immediately.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Learning Sitewalker by automating Galaxywars :)

 
Post new topic   Reply to topic    JStudio SiteWalker Service Board Forum Index -> How To: Specific requirements in practise
View previous topic :: View next topic  
Author Message
chrisdutz



Joined: 27 Jun 2006
Posts: 7

PostPosted: Wed Oct 04, 2006 9:46 am    Post subject: Learning Sitewalker by automating Galaxywars :) Reply with quote

Hi,

I am currently trying to become a Sitewalker krack ... well at the moment I am more a newbe than a crack Wink

In order to learn how to do things I needed a real world application, ideally with events that I cannot predict. Therefore I decided to use the good old Galaxywars Browser-Game as a good Sandbox. Here you have to build your planet and protect your resources from opponents attacks.

In this thread I will post, what I have done. I would be glad to hear comments on how to do it better.

Before you can start:
Create a GW account Smile ( Created one in Universe 6 )

Task #1: Login
1. I created a task directed to the URL "http://galaxywars.sat1.de/login.php?r=6&server=87.106.23.77" the "r"-Parameter tells GW that I want to play Universe 6. the server-parameter that I want to login the Server with the given IP (I know I could have recorded the Browser-Events ... unfortunately the Adds were causing problems (Sitewalkrer couldn'd find the elements) Sad
2. After this the 3 Steps for inserting Username, Password were added same as the Login-Klick.
3. Extracting the session Id
This Id is used for all actions in the current session. Unfortunately I have to extract it from a link as it is never shown without Wink
The parameter is appended to all links wth an "u"-Parameter. So I have to extract this. As I am new to Sitewlker I extracted the "‹bersicht" outer HTML to Excel, because I know how to get a substring here "=LINKS(RECHTS(B1;25);10)" As you can guess ... Sitewalker saves the outer HTML to B1 (Yes I am using a german Excel) Wink I can now read the Session id in my field B2

... To be continuned
Back to top
View user's profile Send private message
chrisdutz



Joined: 27 Jun 2006
Posts: 7

PostPosted: Wed Oct 04, 2006 9:53 am    Post subject: Reply with quote

... Next Step ... extracting the resource levels

As the entire game is based upon gathering resources and doing things with them, it is vital to know how many resources are available. This is why my next step is to extract these. Fortunately this was an easy one Smile

In the Mission Designer view all you have to do is to klick on the resource fields and extract "outer text" to Excel. I additionally decided to strip out all non-numeric digits and convert everything to numbers. As I will be doing all the logic in Excel I don't want to confuse it, as I know how extremely fault-tollerant these MS tools are Wink

I now know the session id to automatically create the urls I will need and I know how many resources I have. The next step will be creating a build automation.
Back to top
View user's profile Send private message
sitewalker
Site Admin


Joined: 09 Feb 2006
Posts: 39

PostPosted: Tue Oct 10, 2006 6:50 am    Post subject: some additional notes Reply with quote

Hi chrisdutz,

thank you for giving a 'tutorial' using JStudio SiteWalker. I will try to add some notes to support a better understanding and to clear some 'hidden' problems.

(1) Task Login: please note that normally would be better to start with a general domain URL without parameters to keep the Task more robust. Parameters (like servers/ session ids etc) will be created automatically or should be set be user gui interaction, e.g. filling login form, selecting server etc. by using & automating the web gui. This keeps you independent from variable parameter values.

(2) If SiteWalker could not find recorded elements please check re-identifier attributes. In most cases this should work when the attributes are activated that supports the search of the element. In some special cases elements are created dynamically by script. If so, you have to ensure to raise the script event handler/ function befor that creates the HTML element searched for.

(3) Extracting session ID: please avoid working with parameters that will change on each session you might run your recorded navigation. Keep automation process as similar to users manually interaction as it could be. I guess, it is not required for users to remember the session id to navigate though the pages... see also (1)

Hope these suggestions might help you to optimize some steps.

best regards,

sitewalker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    JStudio SiteWalker Service Board Forum Index -> How To: Specific requirements in practise All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group