Modified coded modules and Variables used
Posted: Thu Apr 26, 2018 4:42 pm
Ok have a question, we are small shop and im learning the customization of coded modules so every time we created a new coded module test we dont have to keep typing some of the repetative things like Usings or if every test uses Like first line host.local.OpenBrowser , we modify the default for a coded module so we can get to the fun stuff quicker... so in that we always have some of the same var on new tests as we are bulding like the one below to set the test domain etc. now would this cause a problem If i put this in a custom coded module file, as I am not aware of what that number identifier does or if it would affect it if multiple test contain the same one below, could i use the same one across tests to save time and having to add it each time?
not sure if im explaining it correctly. but in short , we use modified coded module files for our default when "adding a new coded module" could i potentially set the same for Variables we use on all our tests and just set it once so we dont have to keep adding it? thanks in advanced.
string _testDomain = "localhost";
[TestVariable("748104c8-60e2-4647-9dc9-10ae1434169f")]
public string testDomain
{
get { return _testDomain; }
set { _testDomain = value; }
}
not sure if im explaining it correctly. but in short , we use modified coded module files for our default when "adding a new coded module" could i potentially set the same for Variables we use on all our tests and just set it once so we dont have to keep adding it? thanks in advanced.
string _testDomain = "localhost";
[TestVariable("748104c8-60e2-4647-9dc9-10ae1434169f")]
public string testDomain
{
get { return _testDomain; }
set { _testDomain = value; }
}