SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    May 2006
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Script Development generate

    Some of 'calls' make automatically by a Record, when a Capture is started are not works fine.

    Can anyone say me what, DO_GetFormValueByName, DO_GetFormActionStatement, DO_VerifyDocTitle, DO_SetValue, ... aren't generated too ?

    For example: A simple script using for a google search about: 'QALoad'

    Script generate:

    /*
    * google_search.c
    *
    * Script Converted on May 17, 2006 at 05:13:58 PM
    * Generated by Compuware QALoad convert module version 4.8.3 build 198
    *
    * This script contains support for the following middlewares:
    * - WWW
    */

    /* Converted using the following options:
    * General:
    * Line Split : 80 characters
    * Sleep Seconds : 1
    * Auto Checkpoints : Yes
    * WWW
    * Form Field Comments : No
    * Anchors as Comments : No
    * Debug Comments : No
    * Doc Title Verification : Yes
    * Compare By : Entire Document Title
    * Baud Rate Emulation : No
    * Dynamic Redirect : Yes
    * Process Subrequests : Yes
    * Dynamic Cookies : Yes
    * Cache : No
    * Persistent Connections : Yes
    * Max Concurrent Connection : 4
    * Max Connection Retries : 4
    * Server Response Timeout : 120
    * HTTP Version Detection : Auto
    * Strip All Cookies From Requests : No
    * ActiveData : Yes
    * IPSpoofing : No
    */

    #define SCRIPT_VER 0x00030804UL

    #include <stdio.h>
    #include "smacro.h"

    #include "do_www.h"

    /* set function to call on abort*/
    void abort_function(PLAYER_INFO *s_info);

    #ifndef NULL
    #define NULL 0
    #endif

    int rhobot_script(s_info)
    PLAYER_INFO *s_info;
    {
    /* Declare Variables */
    int i;

    SET_ABORT_FUNCTION(abort_function);

    DEFINE_TRANS_TYPE("google_search.c");


    // Checkpoints have been included by the convert process
    DefaultCheckpointsOn();

    DO_InitHttp(s_info);
    DO_LogfileWWW(FALSE); /* Logging is off */
    DO_Cache(FALSE); /* Disable cache */
    DO_SetTimeout(120); /* Maximum time to wait for an HTTP Reply */
    DO_SaveReplyType("text/;application/x-javascript"); /* Save replies of these types */

    SYNCHRONIZE();

    BEGIN_TRANSACTION();

    DO_SetMaxBrowserThreads(4);
    DO_SetMaximumRetries(4);
    DO_UsePersistentConnections(TRUE);
    DO_AutomaticSubRequests(TRUE);
    DO_SubRequestFrames(TRUE);
    DO_DynamicCookieHandling(TRUE);
    DO_DynamicRedirectHandling(TRUE);
    DO_HTTPVersion("Auto");



    DO_UseProxy("10.0.1.3:3128");

    /* Clear up some internal storage used for DO_SetValue() */
    DO_HttpCleanup();
    DO_ClearCache();

    END_TRANSACTION();

    DO_FreeHttp();

    REPORT(SUCCESS);
    EXIT();
    return(0);
    }

    void abort_function(PLAYER_INFO *s_info)
    {
    RR__printf("Virtual User %i:ABORTED.", S_task_id);
    DO_FreeHttp();

    EXIT();
    }

    []'s
    Best regards

  2. #2
    Senior Member
    Join Date
    Apr 2003
    Location
    Wisconsin, USA
    Posts
    5,338
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Script Development generate

    Two questions.

    1. How do you know that the script is not working?
    2. Why do you think the script needs to generate the "DO" calls that you are asking about?

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 04:24 AM.

Copyright BetaSoft Inc.