Contributions
Re: Dealing with dynamic objects
>Hello Peterson This is completely off topic, but this has happened several times to me with people from southwest Asia, and it bothers me enough that I want to ask, why do you use this form of address? My name is "Kent Peterson". Kent is the personal name, Peterson is the family name. To address a man solely by his family name, without the "Mister", is appropriate in a situation where you are his clear superior in a clear and strict hierarchy, such as the military- it implies superiority. Between two strangers, that form of address is really somewhat insulting - it gets a "just who do you think you are" reaction. Either "Mr. Peterson" (formal) or "Kent" (informal) would be fine (and in fact the internet generally lends itself to informality). It just instantly gets my back up to be talked to that way, and I don't think that's the intended reaction, but as I said it has happened with multiple people from that part of the world. Anyway, thank you both for the advice, you've confirmed what I was pretty sure of already. Going to talk to our devs some more.1.8KViews0likes0Comments- 1.3KViews0likes0Comments
Dealing with dynamic objects
I have several pages needing testing where a set of buttons get dynamically generated (depending on inputs like current date and a preset schedule). The identifying tags for these objects are always unique - the developers tell me this is required from following a .NET standard - and, as far as I can see, there is no way to know which button does what just by looking at the ID tags. In a manual test in this situation, the tester would read the text on the page that is parallel with the button to know which one they wanted to click and where it would lead; since the ID tags are being dynamically generated and are unique, I am having trouble figuring out how to write code that will be able to look at the button objects and know which one it wants to click on in order to get to the particular page that is needed for the next step in the test. The associated text is not always the same either - it's a matter of English comprehension, and I really would prefer to avoid that level of parsing to get past this. Basically I am curious if anyone has any advice in how to approach this problem - even if it's just "give it up, it's not automatable".15KViews0likes4CommentsExporting data to an Excel or other file
I've been looking around and cannot find how to do this. My test generates some data at a certain point that I need to store, preferably in a file and not as a variable, so as to access it later with a different script. However I can't find how to do this - the DDT help files talk a lot about retrieving input data, but not writing output data. I was hoping to find some examples of this before I started mucking about on my own, are there any? I was thinking it might be as simple as inverting the assignments - for example, instead of [jscript] var drv2 = DDT.ExcelDriver(Files.FileNameByName(DriverFile), 'TestDriver', false); TestData = drv2.Value("TestDataCol"); to read in, I would just do drv2.Value("TestDataCol") = TestData; to write out. Will that work? What about creating columns in the spreadsheet as I go? It doesn't have to be a XLS, a simple CSV will work fine too, but I can't find anything in the help on this. Any help would be appreciated.14KViews0likes2Comments