Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9171061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:06:42+00:00 2026-06-17T16:06:42+00:00

I am new to VBScript, currently i have created a new VAPI-XP Test >

  • 0

I am new to VBScript, currently i have created a new VAPI-XP Test > Test Plan ,
After creating the VAPI test , i have added parameters to my test using test parameters tab
Now under Test script (VBSCRIPT) tab i need to get the added parameter

Can any one help me out !! Pls

VBSCRIPT

Sub Test_Main(Debug, CurrentTestSet, CurrentTSTest, CurrentRun)
On Error Resume Next
TDOutput.Clear
return = XTools.run("D:\ACoE RnD Team\Eclipse Workspace\SilkTest\InitScript.bat","Scenario1 TC1 Regression RunAllIterations 0 0 firefox 3.6 WINDOWS") 

I need to bring my test parameters over to Xtools.run in place of Scenario1 , TC1, Regression…

I am unable to use params since its has been deprecated and i ve no idea of using TestParameterFactory object

//Sample vbscript for adding adding parameter from test script but it doesn’t work

Set testParamsFactory = supportParamTest.TestParameterFactory
Set parameter = testParamsFactory.AddItem(Null)
parameter.Name = "name"
parameter.Description = "desc"
parameter.Post

can any one suggest me to get the parameters using CurrentTSTest obj?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T16:06:43+00:00Added an answer on June 17, 2026 at 4:06 pm

    Successfully retrieved the Default_Value param from test parameters tab

    Set SetTestParameter = TestFactory.Item(intTestID)
    Set TestParamsFactory = SetTestParameter.TestParameterFactory
    Set IterateparameterValue = TestParamsFactory.NewList("")
    
    for each IterateParam in gobjIterateparameterValue
         ParamFieldDefaultValue = IterateParam.DefaultValue
         TDOutput.Print (ParamFieldDefaultValue)
     next
    

    It works! Without using CurrentTSTest obj, accessing the parameter tab by just passing the current Test ID (intTestID)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create vbscript which will create new folder 'test' and subfolder 'Output'.There
I'm new to VBScript, and I have a function that allows me to pull
I have never used Powershell (or VBScript) as I am new to IT-Admin and
I'm new to vbscript and Stack Overflow, and could really use some help. Currently
I'm fairly new to vbscript and I'm struggling a little as I'm more familiar
I am new to vbscript and while reading i found some code as Do
I am new to web programming,learning VBScript.I want to display few text boxes in
new on ruby and using windows xp and rails 3, i want to send
New to PHP and MySQL, have heard amazing things about this website from Leo
I'm new to VBscript so there is probably a very simple solution to this.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.