How to remove the spaces in a string Ex: "Welcome to
QTPWorld" ?
Answer Posted / vasudha
Dim str
str="welcome to qtp"
arr=split(str," ")
For i=0 to Ubound(arr)
abc=abc&arr(i)
Next
print abc
Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
Hello Friends , I am the new joinner of this website. I am working with Sapient ,Gurgoan I would like to ask few qurries regarding the QTP Tool of (Testing) Currently working on QTP Tool . I would like to no learn VB Script can u name some Books which i get in market. And a small issue in QTP I had 2 users right i have to login and send the document from this user to second user right. when i am send this doc some contendId number generates right. now i am loging into second user and i have to search for that contentId right i found it now i dont want to accept the document so i had an opption of check out ok i have to click on check out my QTP Code is like this Browser(" ").Page(" ").WebTable(" ").ChildItem (3,5,"Image",0).click Browser(" ").Page(" ").Link("ChecK Out").Click i new this code is perfectly right but when i am run the script i have to click on that particular contentId and click on check out but now the Problem is started the error is the document has been already checked out remeber every time my content id changes means it is the new contentId which is not been used atleast once Please help me out in this issue i am in big trouble
Which keyword is used to declare a variable in the vbscript language?
How to assign a numeric value to a variable?
Which operator can be used to check if two numbers are equal or not in vbscript?
what is event handling?
What are class variables?
i have a problem with this error(this error related edit and
delete button,when i click this button in datagrid..i will
get this error)"Invalid postback or callback argument.
Event validation is enabled using
Is vbscript language a case-sensitive language and what does it mean?
how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.
In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?
How to throw an error in vbscript?
How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.
How are comments handled in the vbscript language?
Explain the operator precedence in vb script?
What is the difference between javascript and vbscript?