cancel
Showing results for 
Search instead for 
Did you mean: 

Consistency from Script to Script

SOLVED
mschofer
Visitor

Consistency from Script to Script

I am right non somewhat impressed by the product as well as disappointed to the last of real world tips and tools.

Here is a simple little query, How do I maintain consistency from script to script.

 

For example I have a fairly simple script reading from a spread sheet (purely using navigation) and the script works the first few times through and then I came back later and the script is off by a field or two.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Marsha_R
Community Hero

Re: Consistency from Script to Script

Yes, it can be used in keyword tests.  

 

The 101 video in this set may be of some help:

https://academy.smartbear.com/store/507489-testcomplete-101-201-and-301

View solution in original post

6 REPLIES 6
Marsha_R
Community Hero

Re: Consistency from Script to Script

I'm going to guess that you've recorded your tests and are using coordinates instead of object names.  Coordinates can change from test run to test run, so it's recommended that you switch to object names in order to avoid that problem.   

 

If that's not the issue, then it would be helpful if you post a screen shot of your code, tell us where the failure occurs, and under what conditions.  

MarkSchofer
Contributor

Re: Consistency from Script to Script

Thank You. 

Our directive is to to take a non technical approach and use Keyword scripts. Yes I agree with you and like that there may be on alternative. I am new to this tool and I an testing to see if it meets our objectives.  Is this approach only available through scripts are can it be used in keyword tests.

Marsha_R
Community Hero

Re: Consistency from Script to Script

Yes, it can be used in keyword tests.  

 

The 101 video in this set may be of some help:

https://academy.smartbear.com/store/507489-testcomplete-101-201-and-301

View solution in original post

MarkSchofer
Contributor

Re: Consistency from Script to Script

Lets get you a company car.   Thank you very much. 

AlexKaras
Community Hero

Re: Consistency from Script to Script

Hi,

 

reading from a spread sheet

Consider Excel object (and operations under Excel group) if you are reading from Excel spreadsheet.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
Marsha_R
Community Hero

Re: Consistency from Script to Script

I missed the spreadsheet detail.  Here's a video for that too:

 

https://support.smartbear.com/testcomplete/docs/testing-with/working-with-external-data-sources/exce...

 

@AlexKaras and I will share the company car 😁 

New Here?
Join us and watch the welcome video:
Announcements