> How do you know if I don't know VB script. You have an obvious mistake in string concatenation in "The user '&NewUser' has", the correct thing to do what you trying to archive, would be "The user " & NewUser & " has" (and it has nothing to do with wildcard). But it is a half of problem, you trying to manipulate with the logical _name_ of the object in the place where you need to play with its physical description. I haven't used checkpoint in QTP, but you trying to use same checkpoint for different objects what can be a good thing, but looking on mistakes you did before, I am not sure, if you understand meaning of that trick. So, I looked on above things and had decided not to write it because there are couple of chapters in QTP help about adding/manipulating objects to Object Repository, and I am not going t rewrite it. And there plenty of explanations in help and in internet about string operations in VBScript, and in particularly about Regular Expressions.
Now tell me, if I "assuming" wrong and you are experienced VBScript programmer. I did not mean to offend you in any way, I honestly think you need to learn the basics. Roman On Thu, Jan 21, 2010 at 7:26 AM, Puneet <[email protected]> wrote: > I appreciate your reponse, but you can help other in the blog then > please don't say anything. How do you know if I don't know VB script. > So stop assuming things. > > On Jan 19, 11:37 pm, Roman Zilber <[email protected]> wrote: >> You need to learn basics of VBScript and read QTP tutorials. There is >> no other way. >> >> >> >> On Tue, Jan 19, 2010 at 8:48 AM, Puneet <[email protected]> wrote: >> > When I add a new user I get the following message below in a window >> > indcating the user has been added. I have modified the script below by >> > adding a wildcard something like &NewUser, but this is not the correct >> > way. Please help. >> >> > SwfWindow("HA - You are currently").SwfWindow("Add User").Dialog("HA - >> > [Acknowledgement]").Static("The user '&NewUser' has").Check CheckPoint >> > (e) >> >> > -- >> > You received this message because you are subscribed to the Google >> > "QTP - HP Quick Test Professional - Automated Software Testing" >> > group. >> > To post to this group, send email to [email protected] >> > To unsubscribe from this group, send email to >> > [email protected] >> > For more options, visit this group at >> >http://groups.google.com/group/MercuryQTP?hl=en- Hide quoted text - >> >> - Show quoted text - > > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en > -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
