Advertisement

07.16.2008 at 11:13AM PDT, ID: 23570697
[x]
Attachment Details

C script written in Unix not performing same way in LoadRunner

Asked by superwick in C Programming Language, Miscellaneous Software, Quality Assurance

Tags: LoadRunner

when compiled/run in unix it correctly places 111111 into donation2 when donation has the value $111,111.00. But when run in LoadRunner the value placed into donation2 is 1$111,111.001aejoykeigwtsve1111

i noticed on the first loop it placed 1$111,111.00 into donation2

loop 1 : 1$111,111.00
loop 2 : 1$111,111.001aejoykeigwtsve
loop 3 : 1$111,111.001aejoykeigwtsve1
loop 4: 1$111,111.001aejoykeigwtsve11
loop 5 : 1$111,111.001aejoykeigwtsve111
loop 6 : 1$111,111.001aejoykeigwtsve1111

in my unix acct when compiled/run :

it does

loop 1: 1
loop 2: 11
... and so forth til 111111

i really have no clue why LR is doing this.. anyone know?Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
char donation[];
char donation2[];
char x;
int count, count2, i, count3;
 
int main() {
        //donation = "$100,000";
        strcpy(donation, "$100,000.00");
        count = strlen(donation2);
        count2 = strlen(donation)-3;
        printf("the count of donation2 is %d\n", count);
        printf("the count of donation is %d\n", count2);
 
        for (i=1; i<count2; i++) {
                if (isdigit(donation[i])) {
                        donation2[strlen(donation2)] = donation[i];
                }
        }
 
        printf("donation2 is %s\n", donation2);
        int count3 = atoi(donation2);
        printf("converted d2 : %d\n", count3);
 
}
[+][-]07.16.2008 at 11:22AM PDT, ID: 22018688

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 11:28AM PDT, ID: 22018735

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 11:35AM PDT, ID: 22018794

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 11:37AM PDT, ID: 22018810

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: C Programming Language, Miscellaneous Software, Quality Assurance
Tags: LoadRunner
Sign Up Now!
Solution Provided By: Infinity08
Participating Experts: 3
Solution Grade: A
 
 
[+][-]07.16.2008 at 11:37AM PDT, ID: 22018814

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 11:38AM PDT, ID: 22018825

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 11:39AM PDT, ID: 22018832

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 11:40AM PDT, ID: 22018842

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 12:00PM PDT, ID: 22019014

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 12:03PM PDT, ID: 22019030

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 12:08PM PDT, ID: 22019069

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 12:16PM PDT, ID: 22019146

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 10:41PM PDT, ID: 22022573

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 10:53PM PDT, ID: 22022608

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.17.2008 at 01:17AM PDT, ID: 22023306

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628