Hi,
I have structured my TestComplete Project Suite in such a way that each functional area of the UI has a separate Project. My requirements are that:
1) Some of my tests rely on data created in earlier tests. I have overcome this by saving IDs generated into ProjectSuite variables that can then be used by other Projects. When I run a keyword test in Project (1) then it is saving the variable value correctly but if I then attempt to run a keyword test in Project (2) that uses this variable then it is using the default value rather than the one that it has just been assigned. Am I misunderstanding the concept of how this works or is there a way to make the variable value persist between test runs until it gets reassigned?
2) I would like to paramemterise database calls so that I can easily change the server/database name. To do this I have created a new ProjectSuite variable with a default value that I will update as required. However, when I update the database connection strings to use these new varaibles they are not using the default values. If I assign the ProjectSuite variable a value in the script then this is working correctly but it does not seem to be using the default value that I have setup - is this possible?
Cmd.ConnectionString = "Provider=SQLOLEDB;Data Source=" + ProjectSuite.Variables.DatabaseServer + ";Initial Catalog=" + ProjectSuite.Variables.Database + ";Integrated Security=SSPI;"