Home » Archived » Test and Performance Tools Platform (TPTP) » Editing Object mine automatically ???
Editing Object mine automatically ??? [message #125233] |
Tue, 04 March 2008 00:39  |
Eclipse User |
|
|
|
Hi,
Is there any of the feature in TPTP, that allows making changes to Object
mine automatically?
Like, we have recorded the AGR test cases with machine name shown in our
product view (recorded product functionality).
Now we want same test cases to run on other machine, but in order to
accomplish these we have to edit object mine reflecting that machine name
manually.
Is there any way like script do this automatable?
Thanks,
Chandresh Gandhi (Skype Id: chandreshgandhi)
|
|
|
Re: Editing Object mine automatically ??? [message #125281 is a reply to message #125233] |
Tue, 04 March 2008 08:33   |
Eclipse User |
|
|
|
Hello, Chandresh,
I have a not so good way to do that. The .testsuite file itself is a zip
file, so you can first unzip it to get a XML file. Then if your original
machine name is very specific (or you can make it very specific?), then
you simply can use some text processing tool to replace that in the XML
file. After that, zip it again to the original .testsuite file.
Jimmy Jin
Chandresh Gandhi wrote:
> Hi,
>
> Is there any of the feature in TPTP, that allows making changes to
> Object mine automatically?
>
> Like, we have recorded the AGR test cases with machine name shown in our
> product view (recorded product functionality).
>
> Now we want same test cases to run on other machine, but in order to
> accomplish these we have to edit object mine reflecting that machine
> name manually.
>
> Is there any way like script do this automatable?
>
> Thanks,
> Chandresh Gandhi (Skype Id: chandreshgandhi)
>
>
|
|
|
Re: Editing Object mine automatically ??? [message #125846 is a reply to message #125233] |
Mon, 10 March 2008 06:35   |
Eclipse User |
|
|
|
Hi Chandresh,
The object mine can be edited in the AGR test suite editor (button right
of the Test Cases tab). For dynamic data, you can change the values in the
Behaviour tab of the AGR test suite editor for a specific invocation of a
test case. There you can assign a static value, variable value, or use a
datapool.
I would not recommend opening the AGR test suite with a decompression
utility for editing.
Paul
"Chandresh Gandhi" <gandhi.chandresh@gmail.com> wrote in message
news:c44b6fced8e0f3b400f082db5dc40419$1@www.eclipse.org...
> Hi,
>
> Is there any of the feature in TPTP, that allows making changes to Object
> mine automatically?
>
> Like, we have recorded the AGR test cases with machine name shown in our
> product view (recorded product functionality).
>
> Now we want same test cases to run on other machine, but in order to
> accomplish these we have to edit object mine reflecting that machine name
> manually.
>
> Is there any way like script do this automatable?
>
> Thanks,
> Chandresh Gandhi (Skype Id: chandreshgandhi)
>
|
|
|
Re: Editing Object mine automatically ??? [message #125923 is a reply to message #125846] |
Mon, 10 March 2008 10:23   |
Eclipse User |
|
|
|
Hello, Paul,
I guess the problem is (correct me if I'm wrong, Chandresh) that we
cannot predict the name of the machine where the script will be run on,
so we cannot edit it manually. Even if we can predict, we then may need
to maintain several copies of the scripts, which use different machine
names. I don't know if there is some way to dynamically change the value
of certain variable, or change the datapool used by the script.
I'm not familiar with using some of generic TPTP features with AGR together.
Regards,
Jimmy Jin
Paul Slauenwhite wrote:
> Hi Chandresh,
> The object mine can be edited in the AGR test suite editor (button right
> of the Test Cases tab). For dynamic data, you can change the values in the
> Behaviour tab of the AGR test suite editor for a specific invocation of a
> test case. There you can assign a static value, variable value, or use a
> datapool.
>
> I would not recommend opening the AGR test suite with a decompression
> utility for editing.
>
> Paul
> "Chandresh Gandhi" <gandhi.chandresh@gmail.com> wrote in message
> news:c44b6fced8e0f3b400f082db5dc40419$1@www.eclipse.org...
>> Hi,
>>
>> Is there any of the feature in TPTP, that allows making changes to Object
>> mine automatically?
>>
>> Like, we have recorded the AGR test cases with machine name shown in our
>> product view (recorded product functionality).
>>
>> Now we want same test cases to run on other machine, but in order to
>> accomplish these we have to edit object mine reflecting that machine name
>> manually.
>>
>> Is there any way like script do this automatable?
>>
>> Thanks,
>> Chandresh Gandhi (Skype Id: chandreshgandhi)
>>
>
>
|
|
|
Re: Editing Object mine automatically ??? [message #125987 is a reply to message #125923] |
Tue, 11 March 2008 06:31   |
Eclipse User |
|
|
|
This value can be verified in a verification point with some Java code that
resolves the machine name.
Paul
"Jimmy Jin" <jimmyjin.jxm@gmail.com> wrote in message
news:fr3ga1$545$1@build.eclipse.org...
> Hello, Paul,
>
> I guess the problem is (correct me if I'm wrong, Chandresh) that we cannot
> predict the name of the machine where the script will be run on, so we
> cannot edit it manually. Even if we can predict, we then may need to
> maintain several copies of the scripts, which use different machine names.
> I don't know if there is some way to dynamically change the value of
> certain variable, or change the datapool used by the script.
>
> I'm not familiar with using some of generic TPTP features with AGR
> together.
>
> Regards,
> Jimmy Jin
>
> Paul Slauenwhite wrote:
>> Hi Chandresh,
>> The object mine can be edited in the AGR test suite editor (button
>> right of the Test Cases tab). For dynamic data, you can change the
>> values in the Behaviour tab of the AGR test suite editor for a specific
>> invocation of a test case. There you can assign a static value, variable
>> value, or use a datapool.
>>
>> I would not recommend opening the AGR test suite with a decompression
>> utility for editing.
>>
>> Paul
>> "Chandresh Gandhi" <gandhi.chandresh@gmail.com> wrote in message
>> news:c44b6fced8e0f3b400f082db5dc40419$1@www.eclipse.org...
>>> Hi,
>>>
>>> Is there any of the feature in TPTP, that allows making changes to
>>> Object mine automatically?
>>>
>>> Like, we have recorded the AGR test cases with machine name shown in our
>>> product view (recorded product functionality).
>>>
>>> Now we want same test cases to run on other machine, but in order to
>>> accomplish these we have to edit object mine reflecting that machine
>>> name manually.
>>>
>>> Is there any way like script do this automatable?
>>>
>>> Thanks,
>>> Chandresh Gandhi (Skype Id: chandreshgandhi)
>>>
>>
|
|
| |
Re: Editing Object mine automatically ??? [message #128901 is a reply to message #127491] |
Wed, 23 April 2008 06:26  |
Eclipse User |
|
|
|
Hi Chandresh,
Using the AGR, there are only two ways that you can link user input;
datapool and custom input (see the Detailed Properties in eh Behaviour tab).
Currently, custom input only supports:
-Project location of the test suite.
-Workspace location of the context workbench.
I could see how hostname would be very useful. Please open a defect to
add hostname to the custom inputs.
So that leave using a datapool for linking user input. However, since
the hostname is not a user input and displayed in a view, you need to set a
verification point on that view and write some Java code in the verification
point method to verify the host name.
Paul
"Chandresh Gandhi" <gandhi.chandresh@gmail.com> wrote in message
news:1da9b400aa45b5ecc4def23ef6d111cc$1@www.eclipse.org...
> Hi,
>
> thanks for your replys ...
>
> here I try to depict my exact problem scenario for better understanding.
>
> It
|
|
|
Goto Forum:
Current Time: Fri Jun 06 15:48:59 EDT 2025
Powered by FUDForum. Page generated in 0.03722 seconds
|