| [RELEASE] DE - QTP Pupil Trainer | |
|
|
Author | Message |
---|
BobTheBear admin
Posts : 4102 Join date : 2009-05-15 Location : Scotland!
| Subject: [RELEASE] DE - QTP Pupil Trainer Sun 01 Aug 2010, 21:59 | |
| May help if you read this - CLICK ME !!! - thread for general info on getting QTP running etc.I'm gonna keep this short as the first couple of pages of the last thread cover most things. This script is just my old COM pupil script updated a little and set up for the .DE site. The basics. You will need:- Quick Test Professional (QTP) v9.0 (HINT - torrents!!!)
- MS Excel
- Internet Explorer v7.0 with tabbed browsing switched OFF
I run this on Windows XP SP3. I know QTP v9.0 doesn't seem to like Vista. No idea about W7. It also won't work properly on IE v8.0 and won't work at all with FireFox. It *might* run on newer versions of QTP but no guarantees there. I don't have them, so I can't test it! Install QTP and get it running. QTP is a bit resource heavy. Best to run this on a half decent PC. On a P3 with 1gb of memory or something, it'll run, but it won't be that fast. Download the RAR with the script and spreadsheet template from: HERE <<< CLICKY!!!In the RAR is what looks like a folder called "fights DE". Put that in the "Tests" folder of your QTP install. Store the spreadsheet in your brute folder (wherever that is) and fill it up with your pupils. Passworded pupils are supported. You can pre-populate the spreadsheet with the start level and numer of fights if you know them. If you leave those fields blank the script will scan through your pupils first to get it. MAKE SURE you get the name parts right! Some brutes name is different from the URL name. Make sure you get them correct. (eg. A brute with the screen name "The Brute" would "the-brute" in the URL.) Run QTP. Load the test. (File > Open > Test .... navigate to the "Tests" folder of the QTP install and load the "fights DE" test.) Switch QTP to "Expert View". (Tabs at the bottom of the screen) You should now be looking at the code. Bits you need to fill in:Line 7 - The location of "iexplore.exe". Unless you have a wierd setup, the default should work. Line 8 - The file path to the folder where your "fightsDE.xls" file is stored. Line 9 - Change the value of "lvSTOP" to the level you stop training your pupil. When a pupil hits this level after a fight, it will stop with that pupil. I train to level 4 so thats the default its set to. Lines 19 to 36 (or more) - You opponents. There are 6 slots for level 1. For new pupils. Fill with level 0's. There are 3 slots for all other levels. Remember you fight two levels below so (3,1) (3,2) (3,3) are you three opponents for level 3 pupils so should contain level 1 opponents. Etc etc. If you want to go higher than level 5 training, just add more lines. opp(6,1) = "opponent 1" opp(6,2) = "opponent 2" opp(6,3) = "opponent 3" opp(7,1) = "another opponent" ... and so on for as many as you need. And thats it. If you've done it all correctly, run the test (Clickl the "> Run" button on the QTP screen!), it'll do all the fights and spit out a results folder in the same folder as your "fightDE.xls" file is stored in. Pupilling script will (hopefully) follow shortly ..... | |
|
| |
FacebreakXXX * * * * * *
Posts : 101 Join date : 2009-08-11 Age : 37 Location : Germany
| Subject: Re: [RELEASE] DE - QTP Pupil Trainer Mon 02 Aug 2010, 10:21 | |
| Hi Bob, I spent a lot of time for your new Trainer (I am not talented ) After preparing all of the points I run the QTP. -> the Excel-pupil list opened automatically and the Internet Explorer Screen with the mainpage from meinbrutalo.de started as well. But after that nothing happened. QTP has "hung up" at line 480/481... do you have an idea? | |
|
| |
BobTheBear admin
Posts : 4102 Join date : 2009-05-15 Location : Scotland!
| Subject: Re: [RELEASE] DE - QTP Pupil Trainer Mon 02 Aug 2010, 10:42 | |
| Will have to have a look later tonight. Am at work just now.
The obvious ones to check are:
1. You are using v7.0 of Internet Explorer? 2. Tabbed browsing is off? 3. What O/S are you running and what version of QTP are you using? | |
|
| |
FacebreakXXX * * * * * *
Posts : 101 Join date : 2009-08-11 Age : 37 Location : Germany
| Subject: Re: [RELEASE] DE - QTP Pupil Trainer Mon 02 Aug 2010, 12:29 | |
| 1. Yes, v.7.0 2. now tabbed browsing is off ;-) 3. I use Windows XP and QTP 9.2. After I clicked: "tabbed browsing off" I started QTP again: -> Excel Folder opened, mainpage "MeinBrutalo.de" started but after that IE lost connection: Is line 474 ok? (Internet Explorer cannot display the webpage) And line 481 looks strange, too (A brutal error has been encountered!) Sorry for all of these questions | |
|
| |
Gavy™ * * * * * * * * * *
Posts : 1133 Join date : 2009-08-05 Location : Thousand Islands
| Subject: Re: [RELEASE] DE - QTP Pupil Trainer Mon 02 Aug 2010, 12:44 | |
| did you also put the names of the brutes in the URL name ?! | |
|
| |
BobTheBear admin
Posts : 4102 Join date : 2009-05-15 Location : Scotland!
| Subject: Re: [RELEASE] DE - QTP Pupil Trainer Mon 02 Aug 2010, 13:15 | |
| Yes. On the failed IE page, the URL doesn't look right. There is no brute name there.
The first two colums on the input sheet contain the brute name in 1 and the name as it appears in the URL (they can be different) in 2. | |
|
| |
FacebreakXXX * * * * * *
Posts : 101 Join date : 2009-08-11 Age : 37 Location : Germany
| Subject: Re: [RELEASE] DE - QTP Pupil Trainer Mon 02 Aug 2010, 15:02 | |
| oh man you 2 guys are right :oops: thank you! ok i added the "URL-names" now the first round is over and the script added the levels automatically. after that I clicked "RUN" for training the pupils but I only can see the "mein Brutalo" mainpage and after some seconds a "Run Error": what did I wrong? | |
|
| |
BobTheBear admin
Posts : 4102 Join date : 2009-05-15 Location : Scotland!
| Subject: Re: [RELEASE] DE - QTP Pupil Trainer Mon 02 Aug 2010, 15:36 | |
| Did it open the "vs" fight page at all? Line 313 is it trying to click on the "start fight" button (which has to be visible on the screen ... alter the scaling on IE if it's not). And also, did you populate your opponent names in the scipt? - BobTheBear wrote:
- Lines 19 to 36 (or more) - You opponents.
There are 6 slots for level 1. For new pupils. Fill with level 0's. There are 3 slots for all other levels. Remember you fight two levels below so (3,1) (3,2) (3,3) are you three opponents for level 3 pupils so should contain level 1 opponents.
Etc etc. | |
|
| |
FacebreakXXX * * * * * *
Posts : 101 Join date : 2009-08-11 Age : 37 Location : Germany
| Subject: Re: [RELEASE] DE - QTP Pupil Trainer Mon 02 Aug 2010, 16:06 | |
| yes I populated the opponents. It don't open the "vs" fight page. I click "RUN" and it only rests on the mainpage. | |
|
| |
BobTheBear admin
Posts : 4102 Join date : 2009-05-15 Location : Scotland!
| Subject: Re: [RELEASE] DE - QTP Pupil Trainer Mon 02 Aug 2010, 17:23 | |
| Hmmm.
Wierd thing is, for it to get that far in the first place, it needs to find the fight screen?!?!?
Another thing to check ....
When you start QTP, it pops up a box asking what addins you want enabled. ActiveX and Web should be ticked. Leave the other one blank.
Also, no other browsers open when you run it .... | |
|
| |
FacebreakXXX * * * * * *
Posts : 101 Join date : 2009-08-11 Age : 37 Location : Germany
| Subject: Re: [RELEASE] DE - QTP Pupil Trainer Mon 02 Aug 2010, 18:32 | |
| Yeah Yeah Yeah, it works!
- the hint with the ActiceX and Web Ticker was good! - I overworked the opponents-list (there were a lot of dead ones in the forum!) - the Run Error "Object not visible" meant that the "Fight Button" was out of my screen - I had to choose "full screen" and then it worked... no comment ;-)
your program is really fast! (even with my connection...) sorry for all the inconveniences :oops: THANK YOU! | |
|
| |
BobTheBear admin
Posts : 4102 Join date : 2009-05-15 Location : Scotland!
| Subject: Re: [RELEASE] DE - QTP Pupil Trainer Mon 02 Aug 2010, 18:42 | |
| Cool! Glad you got it working. :) It runs pretty much as fast as the webpages update on the PC it's run on. So if your browser updates quick, it'll run quick. It doesn't use preset delays, it looks for things on screen to know if it's in the right place. - FacebreakXXX wrote:
- - I overworked the opponents-list (there were a lot of dead ones in the forum!)
Yeah. This is an area where there are still bugs. If a pupil doesn't exist, it should keep going, but at the moment I don't think it does. So your list needs to be accurate. Will need to have a look at that ..... | |
|
| |
Mga * * * * *
Posts : 92 Join date : 2010-02-18 Location : MExico
| Subject: Re: [RELEASE] DE - QTP Pupil Trainer Tue 03 Aug 2010, 04:48 | |
| | |
|
| |
Superdry *
Posts : 2 Join date : 2010-11-20
| Subject: Re: [RELEASE] DE - QTP Pupil Trainer Wed 01 Dec 2010, 20:52 | |
| could someone add a new download link for the script? would be great
| |
|
| |
Sponsored content
| Subject: Re: [RELEASE] DE - QTP Pupil Trainer | |
| |
|
| |
| [RELEASE] DE - QTP Pupil Trainer | |
|